-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
files external unit tests broken #13754
Comments
started to break in https://ci.owncloud.org/job/server-master-linux-externals/498/ |
@DeepDiver1975 404 :( |
@MorrisJobke |
Isn't the setup fully automatic or I need to manually edit some configs ? |
Looking at the error message: we should probably rethrow "MethodNotAllowed" or return false... because "MethodNotAllowed" does not mean that the storage is not available. |
and it seems in some cases the exception is "NotFound" which might be expected. Need to catch that too. |
What a mess... we shouldn't have introduced exceptions that early, or not catch it this way. Still trying to continue patching... |
Fix is here: #13791 |
(not specific to this issue in particular, just writing down my thoughts) The thing I don't like about exception handling in storages is that code needs to be massively duplicated - every storage method needs to handle exceptions that may be thrown by 3rd party code, then either rethrow a useful exception or return false. I wish there was some way we could avoid having hundreds of |
I think in other software usually they would have their own exceptions: Let's continue the discussion in this ticket: #13792 |
Fix is in #13791 |
merged -> close |
Due to the move to exceptions instead of true/false as return value:
cc @icewind1991 @PVince81 Can you fix that? I simply just can fix the tests regarding what is currently implemented and not what is actually wanted. So it's maybe better if you fix the unit tests ;) Thanks
If you have docker installed you can simply run
./autotest-external.sh sqlite
otherwise add the files_external app to theenable_apps-php
and run the./autotest.sh sqlite PATHTOFILE
;)The text was updated successfully, but these errors were encountered: