{"action":"created","issue":{"url":"https://api.github.com/repos/zopefoundation/Zope/issues/25","repository_url":"https://api.github.com/repos/zopefoundation/Zope","labels_url":"https://api.github.com/repos/zopefoundation/Zope/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/zopefoundation/Zope/issues/25/comments","events_url":"https://api.github.com/repos/zopefoundation/Zope/issues/25/events","html_url":"https://github.com/zopefoundation/Zope/issues/25","id":68609529,"number":25,"title":"HEAD requests raise AttributeError on browser views","user":{"login":"gforcada","id":1155680,"avatar_url":"https://avatars.githubusercontent.com/u/1155680?v=3","gravatar_id":"","url":"https://api.github.com/users/gforcada","html_url":"https://github.com/gforcada","followers_url":"https://api.github.com/users/gforcada/followers","following_url":"https://api.github.com/users/gforcada/following{/other_user}","gists_url":"https://api.github.com/users/gforcada/gists{/gist_id}","starred_url":"https://api.github.com/users/gforcada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gforcada/subscriptions","organizations_url":"https://api.github.com/users/gforcada/orgs","repos_url":"https://api.github.com/users/gforcada/repos","events_url":"https://api.github.com/users/gforcada/events{/privacy}","received_events_url":"https://api.github.com/users/gforcada/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-04-15T08:11:00Z","updated_at":"2016-09-06T13:55:48Z","closed_at":"2016-09-06T13:55:48Z","body":"I keep seeing on our server logs errors like the following:\r\n\r\n    Traceback (innermost last):\r\n      Module ZPublisher.Publish, line 127, in publish\r\n      Module ZPublisher.BaseRequest, line 384, in traverse\r\n    AttributeError: @@RSS\r\n\r\nAnd indeed, a request like `curl -I https://www.freitag.de/@@RSS` gives an error (modulo when Varnish caches something).\r\n\r\nThe problem seems to be that ZPublisher.BaseRequest [assumes](https://github.com/zopefoundation/Zope/blob/master/src/ZPublisher/BaseRequest.py#L385) that everything that is not GET, POST or PURGE will be a webDAV request and thus tries to find an object, which a view of course is not.\r\n\r\nThis happens on Zope 2.13.22 but master has the same code on traverse so I guess it applies also there."},"comment":{"url":"https://api.github.com/repos/zopefoundation/Zope/issues/comments/244957648","html_url":"https://github.com/zopefoundation/Zope/issues/25#issuecomment-244957648","issue_url":"https://api.github.com/repos/zopefoundation/Zope/issues/25","id":244957648,"user":{"login":"hannosch","id":483109,"avatar_url":"https://avatars.githubusercontent.com/u/483109?v=3","gravatar_id":"","url":"https://api.github.com/users/hannosch","html_url":"https://github.com/hannosch","followers_url":"https://api.github.com/users/hannosch/followers","following_url":"https://api.github.com/users/hannosch/following{/other_user}","gists_url":"https://api.github.com/users/hannosch/gists{/gist_id}","starred_url":"https://api.github.com/users/hannosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannosch/subscriptions","organizations_url":"https://api.github.com/users/hannosch/orgs","repos_url":"https://api.github.com/users/hannosch/repos","events_url":"https://api.github.com/users/hannosch/events{/privacy}","received_events_url":"https://api.github.com/users/hannosch/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T13:55:48Z","updated_at":"2016-09-06T13:55:48Z","body":"I think there is no easy solution to this for Zope 2.13. For Zope 4 I \"fixed\" this by separating out the old webdav capable publisher from the WSGI publisher. If you run Zope 4 using the WSGI publisher, webdav and FTP logic including the bit in BaseRequest get disabled, and a HEAD request on a view succeeds."}}
{"actor":{"display_login":"hannosch"}}