Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350265 - [server][log] ContentLocation from git log returns 405
Summary: [server][log] ContentLocation from git log returns 405
Status: RESOLVED WONTFIX
Alias: None
Product: Orion
Classification: ECD
Component: Git (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-24 10:07 EDT by Tomasz Zarna CLA
Modified: 2015-05-05 16:01 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 Tomasz Zarna CLA 2011-06-24 10:07:29 EDT
Steps:
1. List commits for a repository, GET  http://localhost:8080/gitapi/commit/HEAD/file/q0/?parts=log
2. Pick a commit and get its ContentLocation: http://localhost:8080/gitapi/commit/91e0cd59fcf0be00fb9d2469e4eb06e7620e97c9/file/q0/?parts=body
3. Follow the link with GET
=> 
HTTP ERROR 405
Problem accessing /gitapi/commit/91e0cd59fcf0be00fb9d2469e4eb06e7620e97c9/file/q0/. Reason:
HTTP method GET is not supported by this URL

ContentLocations like that are meant for retrieving content of a file in a commit. The link from 2. points to a folder (repository root) and this is probably the reason it fails.
Comment 1 John Arthorne CLA 2015-05-05 15:48:23 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:


https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html
Comment 2 John Arthorne CLA 2015-05-05 16:01:41 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:


https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html