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

Bug 360643

Summary: [server] GET on ContentLocation on Tag returns error 500
Product: [ECD] Orion Reporter: Malgorzata Janczarska <malgorzata.tomczyk>
Component: GitAssignee: Tomasz Zarna <tomasz.zarna>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.3   
Target Milestone: 0.3 RC2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

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