Bug 235281 - Return 404 instead of 500 on unknown xml.
Return 404 instead of 500 on unknown xml.
Product: Red Hat Network
Classification: Red Hat
Component: RHN/Backend (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bryan Kearney
John Sanda
Depends On:
Blocks: 239809
  Show dependency treegraph
Reported: 2007-04-04 16:02 EDT by James Bowes
Modified: 2013-01-10 04:52 EST (History)
2 users (show)

See Also:
Fixed In Version: 5.0.2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-07-25 11:14:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description James Bowes 2007-04-04 16:02:22 EDT
If someone requests a url we don't know about under our xmlrpc hierarchy, RHN
will raise an unhandled exception and 500. Instead, we should catch the
exception and return 404.
Comment 1 James Bowes 2007-05-22 13:25:26 EDT
RHN wasn't returning 500 already. The fix as implemented simply logs an
unknownXML error, rather than sending a traceback email.
Comment 2 James Bowes 2007-06-19 10:45:42 EDT
To test:
 - install the content management tools
 - run 'rhn-manage-channel-internal
--server=http://xmlrpc.rhn.webqa.redhat.com/XMLRPC --list --label rhel-5'
 - You'll get an error on the client, but not that no traceback email is sent
 - if debugging is turned up to 4 or higher, a message will be logged in rhn.log
Comment 3 John Sanda 2007-06-22 10:34:34 EDT
Here is what I see when I run the command in Comment 2:

[jsanda@espresso ~]$ rhn-manage-channel-internal
--server=http://xmlrpc.rhn.webqa.redhat.com/XMLRPC --list --label rhel-5
Red Hat Network username: jsanda_qa
Red Hat Network password:
While running 'channel.lookupChannel': caught
<type 'instance'> : Invalid request received (class xmlrpc.channel is not
defined (function = lookupChannel)).
Comment 4 John Sanda 2007-06-22 11:00:44 EDT
Did not find any traceback emails that were sent.

Verified in webqa.
Comment 5 John Sanda 2007-07-23 14:00:22 EDT
Verified in stage.
Comment 6 James Bowes 2007-07-25 11:14:42 EDT
rhn502 released.

Note You need to log in before you can comment on or make changes to this bug.