Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 347632

Summary: [server][git]405 error for getting commit log and remote log for repository in subfolder
Product: [ECD] Orion Reporter: Malgorzata Janczarska <malgorzata.tomczyk>
Component: ClientAssignee: Tomasz Zarna <tomasz.zarna>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.2   
Target Milestone: 0.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 347766    
Bug Blocks:    

Description Malgorzata Janczarska CLA 2011-05-30 07:19:59 EDT
If you have a repository not directly in the project, but in its subfolder and you do GET on locations returned in metadata in Git.CloneLocation or Git.CommitLocation (with ?page=1), you get:
405 HTTP method GET is not supported by this URL.
Comment 1 Tomasz Zarna CLA 2011-05-30 07:24:34 EDT
(In reply to comment #0)
> locations returned in metadata in Git.CloneLocation or Git.CommitLocation (with ?page=1)

What are they?
Comment 2 Malgorzata Janczarska CLA 2011-05-30 07:32:37 EDT
(In reply to comment #1)
> (In reply to comment #0)
> > locations returned in metadata in Git.CloneLocation or Git.CommitLocation
> (with ?page=1)
> 
> What are they?
My repository is situated in /file/f/github_readonly and the git section returned by GET /file/f?depth=1:
"Git": {
      "CloneLocation": "/git/clone/file/f/github_readonly/",
      "CommitLocation": "/git/commit/HEAD/file/f/github_readonly/",
      "DefaultRemoteBranchLocation": "/git/remote/origin/master/file/f/github_readonly/",
      "DiffLocation": "/git/diff/Default/file/f/github_readonly/",
      "IndexLocation": "/git/index/file/f/github_readonly/",
      "RemoteLocation": "/git/remote/file/f/github_readonly/",
      "StatusLocation": "/git/status/file/f/github_readonly/",
      "TagLocation": "/git/tag/file/f/github_readonly/"
    },
Comment 3 Tomasz Zarna CLA 2011-05-30 08:22:23 EDT
Git.CloneLocation is fine. I've fixed Git.CommitLocation though. See http://git.eclipse.org/c/e4/org.eclipse.orion.server.git/commit/?id=0bb29cb11459eb5d97e5d91b890924450c860d8d.
Comment 4 Tomasz Zarna CLA 2011-05-30 08:26:00 EDT
Sorry, it's a bad fix, GitStatusTest#testFileLogFromStatus to fail. I'm on it.