Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plone 6: WebDAV _data is broken #162

Open
Rudd-O opened this issue Dec 21, 2021 · 5 comments
Open

Plone 6: WebDAV _data is broken #162

Rudd-O opened this issue Dec 21, 2021 · 5 comments

Comments

@Rudd-O
Copy link

Rudd-O commented Dec 21, 2021

As per https://github.com/plone/plone.dexterity/blob/master/docs/WebDAV.txt , any request on folderish/_data should return RFC822 formatted properties of the object in question.

This is not the case in Plone 6 alpha -- instead, the HTML of the rendered view page is returned.

Another noteworthy thing: files downloaded using DAV clients are not returned in RFC822 format -- the raw data is returned instead (much like Zope does when objects are retrieved using DAV clients). Admittedly this is nicer and I would have written code to disable the RFC822 thing anyway, but you should know that in plone 6, there is a difference in behavior from the documented one.

@Rudd-O
Copy link
Author

Rudd-O commented Dec 21, 2021

Interestingly enough, I added some printfs() in plone/dexterity/browser/traversal.py, and I can verify that DexterityPublishTraverse.publishTraverse() is in fact being called.

I thought you might want to know all of this, given we are so close to releasing Plone 6, and we probably should not release it with this bug.

@Rudd-O
Copy link
Author

Rudd-O commented Dec 21, 2021

Note that caching being on or off does not affect the not-as-documented behavior of the Dexterity publisher.

I am using the latest Plone alpha.

@Rudd-O
Copy link
Author

Rudd-O commented Dec 21, 2021

>>> import plone.dexterity.bbb
>>> plone.dexterity.bbb.HAS_WEBDAV
True

@Rudd-O
Copy link
Author

Rudd-O commented Dec 21, 2021

OK, I have done the following changes to my configuration (of course, through buildout):

# added to zope.conf
webdav-source-port 8081

and I now attempt to request the _data file -- and this works fine!

Perhaps webdav.txt needs to be amended with this information.

_data should also not be served at all, especially not as rendered HTML view, if WebDAV is not enabled via webdav-source-port.

@aadarsh-nagrath
Copy link
Member

Hm.... maybe there is a bug in Plone 6 alpha where the Dexterity publisher does not return RFC822 formatted properties of the object in question, as documented in the WebDAV.txt file. Instead, the HTML of the rendered view page is returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants