Bug 811145
Summary: | [REST API] Error message is not clear when trying to query applications for a non-existing domain | ||
---|---|---|---|
Product: | OKD | Reporter: | Johnny Liu <jialiu> |
Component: | Pod | Assignee: | Lili Nader <lnader> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 1.x | CC: | lnader, mfisher, rmillner |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-04-27 20:46:46 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Johnny Liu
2012-04-10 09:33:15 UTC
I cannot reproduce this in the latest build. So it must have been fixed. However, as a result of the fix to bug https://bugzilla.redhat.com/show_bug.cgi?id=814379 The error message returned will not have the domain name in it since it may be part of an injection attack. Verified this bug on devenv_1738, and PASS. $ curl -k -X GET -H 'Accept: application/xml' --user jialiu:214214 https://ec2-184-73-43-155.compute-1.amazonaws.com/broker/rest/domains/jialiu/applications <?xml version="1.0" encoding="UTF-8"?> <response> <messages> <message> <text>Domain not found.</text> <exit-code>127</exit-code> <severity>error</severity> <field nil="true"></field> </message> </messages> <data> <datum nil="true"></datum> </data> <supported-api-versions> <supported-api-version>1.0</supported-api-version> </supported-api-versions> <type nil="true"></type> <version>1.0</version> <status>not_found</status> </response> |