3058: file not found in repository

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.
david
#1 david
Is there anything interesting in the reviewboard log file?
  • +NeedInfo
#2 chzh.s******@gmai***** (Google Code) (Is this you? Claim this profile.)
Do you mean the apache log?
#3 chzh.s******@gmai***** (Google Code) (Is this you? Claim this profile.)
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?
#4 chzh.s******@gmai***** (Google Code) (Is this you? Claim this profile.)
And even we set in Raw file URL mask https and the url to fetch is still
http.
david
#5 david
What is the raw file URL mask setting?
#7 chzh.s******@gmai***** (Google Code) (Is this you? Claim this profile.)
We set in the field
https://myServerAddress/?p=path/projName.git;a=blob_plain;f=
<filename>;h=<version>.
#8 chzh.s******@gmai***** (Google Code) (Is this you? Claim this profile.)
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.
david
#9 david
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.
#10 chzh.s******@gmai***** (Google Code) (Is this you? Claim this profile.)
Through using username and password we have solved the problem.thx
#11 chzh.s******@gmai***** (Google Code) (Is this you? Claim this profile.)
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?
david
#12 david
You can replicate that command (replacing the refs with the ones you care about), but the most important part is to use --full-index with your git diff command. We do recommend using rbt post over creating your diffs manually, though.
  • -NeedInfo
    +SetupIssue