-
Notifications
You must be signed in to change notification settings - Fork 113
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
Format adler checksum header as expected by the sync client #2513
base: master
Are you sure you want to change the base?
Conversation
@phil-davis The tests fail with
But the desktop client expects the header to be And reports the error |
@phil-davis there is a mismatch between the testsuite and the client expectations. The interesting part from the build is:
The tests can be found in core: https://github.com/owncloud/core/search?q=ADLER32%3A1ecd03df The oc10 code produces uppercase: https://github.com/owncloud/core/blob/817f54f53d64249166feaa0eb9231c50ca1ed7e0/lib/private/Files/Storage/Wrapper/Checksum.php#L42 The client uses a case insensitive match in https://github.com/owncloud/client/blob/15fc9d017fcdcc4cc95728c16a2dd171d0395b85/src/common/checksums.cpp#L153 now there are two places where we return the checksum:
So both places always return uppercase in oc10. AFAICT the desktop client only uses the constant checkSumAdlerC with @dragotin @TheOneRing please help me out understanding if the client actually would pick up a
|
There was an issue in desktop clients < 2.7.6 fixed in owncloud/client#8371 . |
@ishank011 I think we should stick to the oc10 Uppercase for all hashing algorithms. The desktop client 2.7.6 is case insensitive. |
@butonic We won't be able to support older clients with ocis then. @SamuAlfageme I'm not sure what the upgrade timeline looks like from our end? If oc10 always sends the header in uppercase, how do clients older than 2.7.6 work with it? I guess you don't run tests with Adler? |
We can easily change the acceptance test expectations. If all known current clients (desktop, Android, iOS etc) that do any processing of IMO, we should do the same in oC10 so that all implementations respond with the same |
At the moment we only support the latest releases of the Desktop client, older clients don't support ocis properly. |
This is the key point. Clients process this attribute as case insensitive. Artificial tests (the ones failing) do not honour this and change the semantics to case sensitive, meaning that they are not testing anything useful. Conclusion: the tests needs to be adapted to be case insensitive to ensure client behaviours are properly taken into account. @phil-davis can we adapt the tests please to be case insensitive please? |
No description provided.