meaningful error message for WebDAV upload of forbidden content

Bug #143946 reported by Plone Forge
2
Affects Status Importance Assigned to Milestone
Zope 2
Fix Released
Medium
Unassigned

Bug Description

When a user uses WebDAV, they login first and get Unauthorized errors if they fail.

If they've successfully logged in, and upload a bunch of files, they may
succeed on the .html files, and if there is a forbidden content type in the batch, such as .js, they also get an Unauthorized error which is confusing.

The patch changes Zope-2.9.8-final/lib/python/webdav/NullResource.py
to raise a more detailed Forbidden error in this kind of case.

Tags: bug zope
Revision history for this message
Plone Forge (ploneforge) wrote :
Revision history for this message
Jens Vagelpohl (dataflake-deactivatedaccount-deactivatedaccount) wrote :

I have not changed the previous Unauthorized to a Forbidden as suggested by the patch due to backwards compatibility concerns with applications that might expect the 401 instead of the 403. The message changes are now checked in:

Zope 2.12 branch: http://svn.zope.org/?rev=113513&view=rev

Zope trunk: http://svn.zope.org/?rev=113514&view=rev

Changed in zope2:
status: New → Fix Committed
assignee: nobody → Jens Vagelpohl (jens-dataflake)
Changed in zope2:
milestone: none → 2.12.8
Changed in zope2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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