bug in collector #777 patch

Bug #143558 reported by Victor Safronovich
2
Affects Status Importance Assigned to Milestone
Zope 2
Invalid
Medium
Unassigned

Bug Description

bug in HTTPRequest._filterPasswordFields function

when key is not string type, k has not attribute 'lower',

for example key is tuple instance.

the bug appears when do str(REQUEST) and REQUEST.form or REQUEST.other has keys of types not equals to string.

Tags: bug zope
Revision history for this message
Victor Safronovich (suvit) wrote :

Uploaded: diff

the solution is make a str(k).lower() instead of k.lower().

upload a patch

Revision history for this message
Tres Seaver (tseaver) wrote :

I can't see a real usecase for putting non-string keys into the
request (Unicode will work fine here).

Can you supply and example of the application code which triggers
this problem?

Revision history for this message
Tres Seaver (tseaver) wrote :

Without follow up: marking 'incomplete'.

Changed in zope2:
status: New → Incomplete
Revision history for this message
Hanno Schlichting (hannosch) wrote :

The ticket has expired.

Changed in zope2:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

Bug watches keep track of this bug in other bug trackers.