Red Hat Bugzilla – Bug 838862
add events to application dose not check the domain name in the URL via REST api
Last modified: 2015-05-14 20:51:40 EDT
Description of problem:
Using REST api to add events to application, whatever the domain name is, it will add the event successfully.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.create a domain.
# rhc domain create -n bmengdev
2.create an app.
3.add event to this app via rest api where the domain name is non-exist one.
# curl -k -H 'Accept: application/xml' --user firstname.lastname@example.org:123123 https://localhost/broker/rest/domains/whateverhere/applications/ruby19/events/ -XPOST -d event=remove-alias -d alias=test.com
the event can be added to the app successfully.
it should return error message like, "domain does not exist"
Seems the change does not merge into devenv_1884, will check it in the next build.
Checked on devenv-stage_233, this issue has been fixed.
It returns "Domain not found" for a wrong domain name when adding events to application.