[Spacewalk-list] Proxy Not Handling Web Errors Correctly

JDFire jdfire at cox.net
Thu Jan 13 16:26:31 UTC 2011


Hello Miroslav,

My appologies. I thought I attached it. I have done some more checking an it seems it does the error for files that exists. Below you will find the error. 

Exception reported from <hostname_removed>
Time: Thu Jan 13 09:16:03 2011
Exception type exceptions.ValueError
Exception while handling function handler
Request object information:
URI: /index.html
Remote Host: 127.0.0.1
Server Name: <hostname_removed>:0
Headers passed in:
Accept-Encoding: identity
Cache-Control: max-age=31557600
Connection: keep-alive
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7
Via: 1.1 <hostname_removed>:8080 (squid/2.6.STABLE21)
X-Forwarded-For: 127.0.0.1
X-RHN-IP-Path: 172.20.172.83
X-RHN-Proxy-Auth: 1000010002::1294165571.08:21600.0:TnD4vAyzz5UZqZyZf19vPQ==:<hostname_removed>
X-RHN-Proxy-Version: 5.4.0
X-RHN-Transport-Capability: follow-redirects=3
Extra information about this error:
Unhandled exception type

Exception Handler Information
Traceback (most recent call last):
File "/usr/share/rhn/proxy/apacheServer.py", line 64, in __call__
ret = f(req)
File "/usr/share/rhn/proxy/apacheHandler.py", line 348, in handler
ret = handlerObj.handler()
File "/usr/share/rhn/proxy/redirect/rhnRedirect.py", line 92, in handler
status = self._serverCommo(self.req.read()) # part 2
File "/usr/share/rhn/proxy/rhnShared.py", line 216, in _serverCommo
return self._handleServerResponse(status)
File "/usr/share/rhn/proxy/redirect/rhnRedirect.py", line 136, in _handleServerResponse
redirectStatus = self.__redirectToNextLocation()
File "/usr/share/rhn/proxy/redirect/rhnRedirect.py", line 221, in __redirectToNextLocation
redirectStatus = self.__redirectToNextLocationNoRetry(loopProtection)
File "/usr/share/rhn/proxy/redirect/rhnRedirect.py", line 298, in __redirectToNextLocationNoRetry
uri += redirectLocation[redirectLocation.index('?'):]
ValueError: substring not found

Local variables by frame
Frame __redirectToNextLocationNoRetry in /usr/share/rhn/proxy/redirect/rhnRedirect.py at line 298
loopProtection = <type 'bool'> False
redirectLocation = <type 'str'> /rhn/Login.do
self = <type 'instance'> <proxy.redirect.rhnRedirect.RedirectHandler instance at 0x2b1e55043d40>
uri = <type 'str'> /rhn/Login.do
host = <type 'str'>
scheme = <type 'str'>
port = <type 'NoneType'> None

Frame __redirectToNextLocation in /usr/share/rhn/proxy/redirect/rhnRedirect.py at line 221
loopProtection = <type 'bool'> False
self = <type 'instance'> <proxy.redirect.rhnRedirect.RedirectHandler instance at 0x2b1e55043d40>
retriesLeft = <type 'int'> 3

Frame _handleServerResponse in /usr/share/rhn/proxy/redirect/rhnRedirect.py at line 136
status = <type 'int'> 302
self = <type 'instance'> <proxy.redirect.rhnRedirect.RedirectHandler instance at 0x2b1e55043d40>
m = <type 'NoneType'> None
relogin = <type '_sre.SRE_Pattern'> <_sre.SRE_Pattern object at 0x2b1e598eefa0>
headers = <type 'instance'> Date: Thu, 13 Jan 2011 16:16:03 GMT
Server: Apache
Location: /rhn/Login.do
Content-Length: 281
Content-Type: text/html; charset=iso-8859-1

location = <type 'list'> ['/rhn/Login.do']
headerKey = <type 'str'> server

Frame _serverCommo in /usr/share/rhn/proxy/rhnShared.py at line 216
status = <type 'int'> 302
headers = <type 'instance'> Date: Thu, 13 Jan 2011 16:16:03 GMT
Server: Apache
Location: /rhn/Login.do
Content-Length: 281
Content-Type: text/html; charset=iso-8859-1

self = <type 'instance'> <proxy.redirect.rhnRedirect.RedirectHandler instance at 0x2b1e55043d40>
bodyFd = <type 'instance'> <rhn.connections.HTTPResponse instance at 0x2b1e5975ca28>
data = <type 'str'>

Frame handler in /usr/share/rhn/proxy/redirect/rhnRedirect.py at line 92
self = <type 'instance'> <proxy.redirect.rhnRedirect.RedirectHandler instance at 0x2b1e55043d40>
_oto = <type 'instance'> {'via': '1.1 <hostname_removed>:8080 (squid/2.6.STABLE21)', 'accept-encoding': 'identity', 'x-forwarded-for': '172.20.172.83', 'x-rhn-proxy-version': '5.4.0', 'connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7', 'x-rhn-ip-path': '172.20.172.83', 'host': '127.0.0.1', 'x-rhn-transport-capability': 'follow-redirects=3', 'cache-control': 'max-age=31557600', 'x-rhn-proxy-auth': '1000010002::1294165571.08:21600.0:TnD4vAyzz5UZqZyZf19vPQ==:<hostname_removed>'}

Frame handler in /usr/share/rhn/proxy/apacheHandler.py at line 350
handlerObj = <type 'instance'> <proxy.redirect.rhnRedirect.RedirectHandler instance at 0x2b1e55043d40>
self = <type 'instance'> <proxy.apacheHandler.apacheHandler instance at 0x2b1e563e1128>
req = <type 'mp_request'> <mp_request object at 0x2b1e53029050>
ret = <type 'int'> 0
rhnRedirect = <type 'module'> <module 'proxy.redirect.rhnRedirect' from '/usr/share/rhn/proxy/redirect/rhnRedirect.pyc'>

Frame __call__ in /usr/share/rhn/proxy/apacheServer.py at line 69
self = <type 'instance'> <proxy.apacheServer.HandlerWrap instance at 0x2b1e5503f098>
req = <type 'mp_request'> <mp_request object at 0x2b1e53029050>
f = <type 'instancemethod'> <bound method apacheHandler.handler of <proxy.apacheHandler.apacheHandler instance at 0x2b1e563e1128>>

Frame HandlerDispatch in /usr/lib64/python2.4/site-packages/mod_python/apache.py at line 299
req = <type 'mp_request'> <mp_request object at 0x2b1e53029050>
config = <type 'mp_table'> {'PythonPath': 'sys.path+['/usr/share/rhn']'}
self = <type 'instance'> <mod_python.apache.CallBack instance at 0x2b1e53021bd8>
object = <type 'instance'> <proxy.apacheServer.HandlerWrap instance at 0x2b1e5503f098>
l = <type 'list'> ['proxy.apacheServer', 'Handler']
module = <type 'module'> <module 'proxy.apacheServer' from '/usr/share/rhn/proxy/apacheServer.pyc'>
hlist = <type 'mp_hlist'> {'handler:'proxy.apacheServer::Handler','directory':'^/*/','silent':0}
object_str = <type 'str'> Handler
debug = <type 'int'> 0
module_name = <type 'str'> proxy.apacheServer
pathstring = <type 'str'> sys.path+['/usr/share/rhn']
result = <type 'int'> 500


Environment for PID=14491 on exception:
LANG = C
PATH = /sbin:/usr/sbin:/bin:/usr/bin
PWD = /
SHLVL = 2
TERM = xterm
_ = /usr/sbin/httpd

On Jan 13, 2011, at 1:41 AM, Miroslav Suchý <msuchy at redhat.com> wrote:

> On 01/13/2011 04:55 AM, JDFire wrote:
>> Hello List,
>> 
>> I have about three proxy servers that were vulnerability scanned. During the scan I received a bunch of traceback errors where the scan was looking for nonexistent pages. When I go to the page the scan was requesting manually I receive a 500 internal server error instead of a 404 error message. Is there any way to either turn off the email alert of these type of errors or could their be an actual bug that needs to be resolved? I would really appreciate any assistance you may provide. Thank you for your time and have a great day!
> 
> Unless you post those Tracebacks or relevant lines from
> /var/log/httpd/*error_log or /var/log/rhn/*log there is nothing we can
> say about it.
> 
> -- 
> Miroslav Suchy
> Red Hat Satellite Engineering
> 
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20110113/1b346f80/attachment.htm>


More information about the Spacewalk-list mailing list