You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mkwsgiinstance -d username_log_repro -u admin:admin
runwsgi ./username_log_repro/etc/zope.ini
# add a `standard_error_message` at root ( this is necessary for error requests to be logged at all in access log - this looks like another independent issue )
curl -d id=standard_error_message 'http://admin:admin@127.0.0.1:8080/manage_addProduct/OFSP/addDTMLMethod'
Make a successful HTTP request and see in the log that username (admin) appears
BUG/PROBLEM REPORT / FEATURE REQUEST
What I did:
Create a zope instance:
Make a successful HTTP request and see in the log that username (
admin
) appearsMake an error HTTP request, the username field is empty:
What I expect to happen:
The username field should be present even for error requests.
What actually happened:
The username field is empty, for error requests. This is not only for "404 not found" requests, but also for server side errors.
What version of Python and Zope/Addons I am using:
This is on current master
I investigated and found that username is set in
environ
byZope/src/ZPublisher/WSGIPublisher.py
Lines 388 to 395 in 59f6870
but this code is not executed if
_publish
gets an exception. I'm making a pull request.The text was updated successfully, but these errors were encountered: