Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3625 by [email protected]: Can't create a repository via REST API 2.0
https://code.google.com/p/reviewboard/issues/detail?id=3625
What version are you running?
2.0.6
What's the URL of the page containing the problem?
POST /api/repositories/
What steps will reproduce the problem?
1. try to create a repository via REST API 2.0 with already used path
```curl -X POST -H 'Cookie: rbsessionid=<session-cookie>'
-F 'name=testrepo' -F 'tool=Git'
-F '[email protected]:organization/repository.git'
https://review.localhost/api/repositories/```
What is the expected output? What do you see instead?
an error message like in GUI "A repository with this path already exists"
but I receive 500 Internal Server Error response, and in logs I can see:
File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.6-py2.6.egg/reviewboard/webapi/resources/repository.py",
line 358, in create
e.params['field']: e.message,
AttributeError: 'ValidationError' object has no attribute 'params'
What operating system are you using? What browser?
irrelevant
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.