-
Notifications
You must be signed in to change notification settings - Fork 5
[EOS] PROPFIND with <d:prop><d:getetag/></d:prop> does not show " for folder etags #269
Comments
So there are two scenarios:
For 1, the code path seems to always add double quotes: https://github.com/cs3org/reva/blob/master/internal/http/services/owncloud/ocdav/propfind.go#L297 Still, just reading the code and seeing the results it seems that maybe there could be scenarios where the storage already stores the etag with double quotes, so code path 1 would duplicate the double quotes. But with EOS it seems the etag has no double quotes on the storage so needs them to be added in the OCDAV layer. Needs further research and alignment between the storage implementations. An alternative could be to have the OCDAV layer detect if a double quote is missing and add it automatically, but then there is no guarantee of consistency on the storage layer. Ideal would be to fix the storage layer. |
also to note: @individual-it mentioned that this is blocking many tests, so would be good to solve this with higher priority to avoid having to create workarounds in the tests |
eos does not enclose the etage in |
@butonic that is an issue, cs3org/reva#865 |
@ishank011 has fixed the problem. @butonic @PVince81 please check that no double encoding is done on upper layers (ocdav, ...). |
Missed one place where double encoding could happen. Created another PR for that cs3org/reva#867 |
thanks. @individual-it can you recheck with latest reva ? |
I tried to retest it with my setup in https://github.com/owncloud-docker/compose-playground/tree/master/examples/eos-compose-acceptance-tests
@ishank011 any idea what the issue could be, maybe something went wrong in cs3org/reva#830 ? |
Or are different configurations needed now? |
@individual-it I think so, there are two EOS drivers: |
@individual-it @labkode yes, that looks like it. You need to change the driver name to eoshome and remove the |
@individual-it did you get a chance to recheck this ? |
seems to work with the current master branch of ocis, closing this |
ldapadd -x -D "cn=admin,dc=owncloud,dc=com" -w admin -H ldap://localhost -f ./config/example-ldap-users-groups.ldif
curl -k -u user1:1234 -X PUT https://localhost:9200/remote.php/dav/files/user1/file.txt -d "123" -v
curl -k -u user1:1234 -X MKCOL https://localhost:9200/remote.php/dav/files/user1/upload/ -v
curl -k -u user1:1234 -X PROPFIND https://localhost:9200/remote.php/dav/files/user1 -d '<?xml version="1.0"?><d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:ocs="http://open-collaboration-services.org/ns"> <d:prop><d:getetag/></d:prop></d:propfind>' | xmllint --format -
the etags of the folders don't have
"
around themBut then doing a simple PROPFIND, they do:
curl -k -u user1:1234 -X PROPFIND https://localhost:9200/remote.php/dav/files/user1 | xmllint --format -
The text was updated successfully, but these errors were encountered: