Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347748 - [server][git] 405 while opening git log and git remote for repo in subfolder
Summary: [server][git] 405 while opening git log and git remote for repo in subfolder
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: Tomasz Zarna CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 347766
Blocks:
  Show dependency tree
 
Reported: 2011-05-31 05:36 EDT by Malgorzata Janczarska CLA
Modified: 2011-09-01 11:41 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Malgorzata Janczarska CLA 2011-05-31 05:36:59 EDT
1. Go to navigator and create folder "test"
2. Create folder "test1" inside folder "test"
3. Go to "Repositories"
4. Click "Clone Repository"
5. Type a valid URL in "Repository URL" (I used my github repo)
6. Click "Choose target location"
7. Select "Existing directory"
8. In directory picker choose folder "test1" created in point 2 (a subfolder of "test")
9. Choose OK
10. wait for cloning to finish
11. Go back to navigator
12. From context menu to folder "test1"  created in point 2 (a subfolder of "test") choose "Git Log" or "Git Remote"
13. Open firebug console
==BUG: 405 error is reported

in my version the error is reported from POST http://localhost:8080/git/commit/dcc0c64b9c50a2f3456de06350e97250eeaa7264/file/n/test2/, where "/file/n/test2/" is a repository folder path.
It is reported by client function "getLog(gitCommitURI, commitName, onLoad)".

Loading git log on repository that is situated in top folder works fine.
Comment 1 Tomasz Zarna CLA 2011-05-31 07:05:35 EDT
(In reply to comment #0)

> in my version the error is reported from POST
> http://localhost:8080/git/commit/dcc0c64b9c50a2f3456de06350e97250eeaa7264/file/n/test2/,
> where "/file/n/test2/" is a repository folder path.

Should I read "/file/n/test2/" as "/file/n/test1/"? You haven't mentioned creating "test2" in the steps above.
Comment 2 Malgorzata Janczarska CLA 2011-05-31 07:14:54 EDT
Sorry, I gave you an example directly from my workspace. Matching scenario it would be /file/n/test1, where /file/n/ is a location of project "test" and /file/n/test1 is a location of its subdirectory "test1"

(In reply to comment #1)
> (In reply to comment #0)
> 
> > in my version the error is reported from POST
> > http://localhost:8080/git/commit/dcc0c64b9c50a2f3456de06350e97250eeaa7264/file/n/test2/,
> > where "/file/n/test2/" is a repository folder path.
> 
> Should I read "/file/n/test2/" as "/file/n/test1/"? You haven't mentioned
> creating "test2" in the steps above.
Comment 3 Tomasz Zarna CLA 2011-06-01 16:35:45 EDT
This should be fixed now along with bug 347766. Gosia, please verify.