Issue Type: Bug Bug
Affects Versions: 0.6.0
Assignee: Unassigned
Components: UnifiedPush-server
Created: 09/Aug/13 8:21 AM
Description:

When:

Registering an application with already existing name via POST /rest/applications

Expect:

HTTP 409 or similar code

Current behaviour is strange, as it registers AppName again with different id:

executing twice following pseudo code:

HTTPResponse result = request.POST("$

{rootUrl}

/rest/applications", json

{ name "myApp"; description "MyApp Description"}

)

results into:

2013-08-09 14:10:57,024 INFO net.grinder.engine.process.JUnitThreadContextInitializer: http://agpushmedium-arqtest.rhcloud.com/rest/applications -> 201 Created,

{"id":"8ad3ffc0405d0229014062fc9bef001a","name":"myApp","description":"MyApp Description","pushApplicationID":"48d6c74e-fc39-49e5-8744-0c752af4f8f9","masterSecret":"48a7b499-a3c4-4e91-9b7f-7e9eb7a3a9ad","developer":"admin","androidVariants":[],"simplePushVariants":[],"iosvariants":[]}

.

2013-08-09 14:10:57,325 INFO net.grinder.engine.process.JUnitThreadContextInitializer: http://agpushmedium-arqtest.rhcloud.com/rest/applications -> 201 Created,

{"id":"8ad3ffc0405d0229014062fc9d63001b","name":"myApp","description":"MyApp Description","pushApplicationID":"9c325435-963f-416e-bb4c-ad0014681562","masterSecret":"c1554c69-31d2-496d-b9c3-51f05a6c2844","developer":"admin","androidVariants":[],"simplePushVariants":[],"iosvariants":[]}

.

Project: AeroGear Push
Priority: Major Major
Reporter: Karel Piwko
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira