Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360643 - [server] GET on ContentLocation on Tag returns error 500
Summary: [server] GET on ContentLocation on Tag returns error 500
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Git (show other bugs)
Version: 0.3   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.3 RC2   Edit
Assignee: Tomasz Zarna CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-12 06:18 EDT by Malgorzata Janczarska CLA
Modified: 2011-10-12 09:34 EDT (History)
0 users

See Also:


Attachments
mylyn/context/zip (100.01 KB, application/octet-stream)
2011-10-12 09:34 EDT, Tomasz Zarna CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Malgorzata Janczarska CLA 2011-10-12 06:18:25 EDT
Doing a GET on ContentLocation of a tag returns error 500:
{

    "HttpCode": 500,
    "DetailedMessage": "One of setGitDir or setWorkTree must be called.",
    "Message": "Failed to handle tag request for tag1/file/a/",
    "Severity": "Error",
    "Code": 0

}

I think it should return information about a tag (Name, FullName etc). Also tag representation doesn't have a Location. I think we should rather support Location than ContentLocation. Other entities in Orion support Location and ContentLocation if exists contains some extra information.
Comment 1 Tomasz Zarna CLA 2011-10-12 09:34:30 EDT
Fixed with ecb930fb898c084babf4f9cbaed22aa3d360a3e1.
Comment 2 Tomasz Zarna CLA 2011-10-12 09:34:47 EDT
Created attachment 205035 [details]
mylyn/context/zip