3058: file not found in repository
- SetupIssue
- Review Board
chzh.s******@gmai***** (Google Code) (Is this you? Claim this profile.) | |
Aug. 20, 2013 | |
3059 |
What version are you running? 1.7.11 What's the URL of the page containing the problem? when upload diff and uss post-review to upload What steps will reproduce the problem? 1.create request and upload diff 2.or use post-review ----repository-url= directly What is the expected output? What do you see instead? The diff file cannot be uplaoded. And when using post-review debug to create review something wrong happened.And the code is this: >>> Got API Error 207 (HTTP code 400): The file was not found in the repository >>> Error data: {u'stat': u'fail', u'file': u'build.xml', u'err': {u'msg': u'The file was not found in the repository', u'code': 207}, u'revision': u'03f8ea08a8667200fd40e7c8c3efe749e05fe59b'} When checking the remote git server,the file is exising.And using the Raw File Path setted in review board we can get the file successfully(replace the version and file name). Error uploading diff Your review request still exists, but the diff is not attached. What operating system are you using? What browser? Ubuntu,firefox Please provide any additional information below.
Do you mean the apache log?
I checked the log and found our git server using https but the Raw file URL mask using http to fetch the file.So we cannot fetch the file. the log is that: Fetching file from http://... And we can fetch the file from https://... How can I solve this question?
And even we set in Raw file URL mask https and the url to fetch is still http.
We set in the field https://myServerAddress/?p=path/projName.git;a=blob_plain;f= <filename>;h=<version>.
Now I found that when visit github https could success.But for my personal git server it didn't work.And the error msg is this: HTTP error code 401 when fetching file from http://...: HTTP Error 401: Authorization Required Does it mean we should provide username and password? And from where could we set this config? In the username and password fields? Ordinary if we want to visit the git server we should first provide our username and password.
What this sounds like is that the gitweb server requires authentication. You can encode these in the URL as https://username:password@myServerAddress/ This URL setting is secret except for people who are admins on the server.
Through using username and password we have solved the problem.thx
And I have another question.The diff file generated through git diff cannot be uploaded successfully.And when checking the debug code we found the code git diff --no-color --full-index --no-ext-diff --ignore-submodules --no-renames 6aa7c85eb35432341385460690fea7296223d380..refs/heads/master -M. And how do I get the serial number in git diff or how to use git diff to upload diff file?