Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349587 - [server][config] Creating an option with key ".b" leaves the repository unstable
Summary: [server][config] Creating an option with key ".b" leaves the repository unstable
Status: CLOSED WONTFIX
Alias: None
Product: Orion
Classification: ECD
Component: Git (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-16 11:53 EDT by Tomasz Zarna CLA
Modified: 2011-07-26 05:32 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-16 11:53:49 EDT
Steps:
1. Start Orion server
2. With a REST client of your choice add a new option, for curl I used:
curl --basic --user test:test -H "Orion-Version: 1.0" -X POST -d "{'Key':'.b', 'Value':'c'}" http://localhost:8080/gitapi/config/clone/file/d2/ -v
3. The new option has been created (201)
4. config file got a new section like this:
[]
 b = c

which is kind of ok, because doing the same thing in the console (git config ".b" c) would let to the same result. However, the repository is now broken, e.g. try to get status (git status).

We could consider blocking such requests.