Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343408 - [server][git] GET /git/clone/something should return 404
Summary: [server][git] GET /git/clone/something should return 404
Status: VERIFIED 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:
Blocks:
 
Reported: 2011-04-20 09:45 EDT by Malgorzata Janczarska CLA
Modified: 2011-09-01 11:42 EDT (History)
0 users

See Also:


Attachments
mylyn/context/zip (55.06 KB, application/octet-stream)
2011-04-22 05:47 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-04-20 09:45:13 EDT
1. GET /git/clone/something
2. GET /git/clone -> in response we get repository "something"
{
    "ContentLocation": "something",
    "Id": "something",
    "Location": "http://localhost:8080/git/clone/something"
  }
Comment 1 Tomasz Zarna CLA 2011-04-21 04:42:39 EDT
There is no way for a GET request to create a clone, but the response is wrong. It should say 404.
Comment 2 Malgorzata Janczarska CLA 2011-04-21 05:58:52 EDT
(In reply to comment #1)
> There is no way for a GET request to create a clone, but the response is wrong.
> It should say 404.

Did you try to do the GET to /git/clone/something. Maybe it doesn't create a clone but for sure it ads an item to clones list that is return by GET /git/clone.
Comment 3 Tomasz Zarna CLA 2011-04-22 05:47:55 EDT
Created attachment 193908 [details]
mylyn/context/zip