-
Notifications
You must be signed in to change notification settings - Fork 132
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
[feature/shortcut-uploads] Shortcut uploads and error handling improvements #930
Conversation
- add "Wait for upload to finish" option to SaveFileIntentHandler (implementation of the functionality still pending)
- FileProviderServiceSource: - add additional logging - add new method for reporting local modifications - OCFileProviderServiceSession: - plug error handling hole - add support for new method for reporting local modifications - SaveFileIntentHandler: - refactor and partial rewrite to support new option to wait for completion - add support for import and update through the FP for almost immediate return with the file being uploaded in the background - fix provideAccountOptionsCollection implementation
|
- rewrite OCItemTracker helper to support additional features: - report core errors (withErrorHandler, on by default) - delay item tracking until the core's connection status is online or a timeout is met (waitOnlineTimeout, off by default) - OCIssue extension to simplify identification and access to authentication errors from OCIssues and Error Intents: big refactoring and expansion - CreateFolder: add "wait for completion" option, report authentication errors, wait (with timeout) for core to become online - DeletePath: report authentication errors, wait (with timeout) for core to become online - GetDirectoryListing: add missing return of requested core, report authentication errors - GetFileInfo: report authentication errors, wait (with timeout) for core to become online - GetFile: allow time for the core to find newly added files, report authentication errors, wait (with timeout) for core to become online - PathExists: report authentication errors, wait (with timeout) for core to become online - SaveFile: report authentication errors, wait (with timeout) for core to become online (pending cleanup) - fix typo in localization: "The given path does not exists" -> "The given path does not exist." ownCloud: - adopt improvements from ownCloudAppShared
…- do not wait for timeout before starting item tracking in that case - SaveFile Intent: clean up code, streamline error reporting, report authentication errors
… is not online and a download therefore not possible
QA checks:
|
(2)Kind of regression Checking the In case you select that option and then, a Is this a new behaviour? should we address to a new ticket? |
(3)Also, kind of regression.
The following error message is displayed. Is this the expected behaviour?: In case the executed shortcut is a "Save File", the displayed error is Expected: a correct no-connection message (feasible?) Commit |
- fix finding (1) from #930: wrong error message trying to create a folder in an account with invalid token
…ing, remove multiple implementations in extensions/categories
@jesmrec Regarding the findings: (1)Thanks! I could reproduce and fix this in acf2f3d. (2)Save File has only accepted a single file in the past, too, because it is defined that way: We could expand it to accept and upload more than one file, but this would be outside the scope of this PR IMO. Please file an issue. |
- add support for differentiated network unavailable error reporting - add .isNetworkConnectionError NSError/Error glue code
(1) and (3) are fixed with (2) addressed to #947 |
This is approved on my side. You can check above the QA checks |
@jesmrec Thanks! |
Description
Update to Shortcuts support:
OCItemTracker
Screenshots
Error when authentication fails
Types of changes
QA
QA Checks: #930 (comment)