Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347632 - [server][git]405 error for getting commit log and remote log for repository in subfolder
Summary: [server][git]405 error for getting commit log and remote log for repository i...
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-30 07:19 EDT by Malgorzata Janczarska CLA
Modified: 2011-09-01 11:41 EDT (History)
0 users

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-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.