Commit graph

1069 commits

Author SHA1 Message Date
Yuan Liu 1e2827ad1c
Add Real-Time syncing of remote updates via webhooks (#1718)
* Add Real-Time syncing of remote updates via webhooks

Co-authored-by: abraunegg <alex.braunegg@gmail.com>
2021-11-24 06:54:28 +11:00
abraunegg 2f47beab60
Fix overwriting local files with older versions from OneDrive when items.sqlite3 does not exist and --resync is not used (#1717)
* Resolve issue where --resync is not used and items.sqlite3 is not available at application startup, local files, whilst potentially newer, will not be preserved thus leading to a potential data loss scenario
2021-11-24 06:44:45 +11:00
abraunegg ac2e07526a
Revert PR #1626 (#1716)
Revert PR #1626 due to deprecation function that needs to be resolved before PR can be merged again
2021-11-23 11:14:29 +11:00
abraunegg 2901534171
Add --disable-download-validation (#1686)
* Add --disable-download-validation to allow downloading files from OneDrive where SharePoint and the OneDrive API mis-represents the values in the API as compared to the actual HTTP server response sent to the client. In the API JSON response we get a "size" value of X, but the HTTP Server Content Length reports a size of Y. When this occurs, the download will report as failed. This was seen as part understanding the cause of https://github.com/abraunegg/onedrive/discussions/1667
2021-11-23 07:34:16 +11:00
Winston R. Milling 5d7e4532ef
Add --auth-response option and expose through entrypoint.sh (#1628)
* This allows for the use of the `--auth-files` switch in the docker environment.

Co-authored-by: abraunegg <alex.braunegg@gmail.com>
2021-11-23 07:08:04 +11:00
Yuan Liu bfeeae91de
Add Real-Time syncing of remote updates via webhooks (#1626)
* Add Real-Time syncing of remote updates via webhooks

Co-authored-by: abraunegg <alex.braunegg@gmail.com>
2021-11-23 07:06:13 +11:00
abraunegg 540c2369f3
Fix error 'Key not found: remaining' with Business Shared Folders (#1713)
* Fix an API regression where the 'remaining' value for some API responses is no longer present in the 'quota'  JSON response
2021-11-22 17:42:29 +11:00
abraunegg b0a1baeaf4
Update advanced-usage.md for OneDrive online folder redirection (#1706)
* Update advanced-usage.md to include high level steps for OneDrive online folder redirection
2021-11-17 17:43:44 +11:00
abraunegg cceb3cccdd
Do not re-auth on --logout (#1705)
* When issuing a --logout, do not perform a reauthentication of the application
2021-11-17 06:05:11 +11:00
abraunegg 6febb13408
Catch unhandled API response errors when listing OneDrive Business Shared Folders (#1704)
* When listing OneDrive Business Shared Folders, try the API query and catch any API error response, rather than blindly attempting the API query
2021-11-17 05:51:30 +11:00
abraunegg 2f660ff7b0
Catch unhandled API response errors when querying OneDrive Business Shared Folders (#1703)
* When syncing OneDrive Business Shared Folders, try the API query and catch any API error response, rather than blindly attempting the API query
2021-11-16 19:48:44 +11:00
Kleckkinator 4d25e68c65
Added operation_timeout as a new configuration (#1685)
* Added operation_timeout as a new configuration
2021-11-10 07:46:41 +11:00
abraunegg afc5acbe96
Update documentation for Debian 11 (#1684)
* Update documentation for Debian 11
2021-11-10 07:11:22 +11:00
abraunegg f3f04be2dc
Always prompt for credentials on authentication (#1673)
* Ensure that each time the authentication URL is used, we prompt for credentials, rather than using any cached credentials in the browser
2021-11-02 06:58:12 +11:00
tanaga9 413d703084
Fix docker run example (#1664)
Fix docker run example using correct assignment method for UID | GID
2021-10-31 07:47:43 +11:00
abraunegg d99bd5a6ea
Update README.md
* Add missing current features
2021-10-10 12:53:15 +11:00
abraunegg b7fdff8e2a
Update USAGE.md (#1653)
* Update Advanced Configuration of the OneDrive Free Client notes in usage.md
2021-10-10 09:49:30 +11:00
abraunegg 0bd9fe03ea
Update advanced-usage.md
* Add how to configure the client for use when 'sync_dir' is a mounted directory and to implement sync safeguards for if|when the mount location disappears
2021-10-10 09:33:54 +11:00
abraunegg 43932e604a
Update Docker.md
* Reorder sections of document for better readability
2021-10-07 08:13:00 +11:00
Carlos H Brandt 77a351360c
Use 'id' for UID/GID in example (#1649)
* Use 'id' for UID/GID in example
2021-10-06 19:17:33 +11:00
abraunegg b7781419ce
Update ubuntu-package-install.md
Same core dump issue exists for Ubuntu 21.04 when using Ubuntu packages ... even though a newer LDC version is being used, libllvm11 remains the same which is causing the issue. Building from source, using the LDC package, no core dump occurs - thus, this is 100% a packaging process issue.
2021-10-02 17:34:51 +10:00
abraunegg 350fae1fa7
Update ubuntu-package-install.md 2021-09-28 05:14:57 +10:00
abraunegg a73c911a74
Update ubuntu-package-install.md
* Update known issues portion of document
2021-08-22 10:56:49 +10:00
abraunegg 23e5af814f
Update INSTALL.md
* Update documentation
2021-08-20 09:08:45 +10:00
abraunegg 107c187602
Update INSTALL.md
* Update document with some clarifications based off #1604
2021-08-19 11:30:09 +10:00
Weiwu Zhang 30e66c0ed0
Replace embedded image references in documentation with unicode characters (#1603)
Replace embedded image references with unicode characters, otherwise the images are clickable and mislead users into clicking, thinking that they can download the corresponding package
2021-08-18 14:20:50 +10:00
abraunegg 7857a5057f
Update INSTALL.md
* Explicitly add details re process to upgrade client
2021-07-31 10:26:11 +10:00
anntnzrb 7120aee869
Added service instructions for runit init system (#1589)
* Added service instructions for runit init system
2021-07-28 09:29:05 +10:00
abraunegg 2b32c3a497
Add new document for Debian and Ubuntu package installs via OpenSuSE Build Service (#1588)
* Add new document to detail package installation on Debian and Ubuntu platforms via OpenSuSE Build Service
* Depreciate recommending Ubuntu PPA due to dependency on Debian packages
2021-07-26 14:41:54 +10:00
abraunegg 606ee52ad2
Fix edge case with OneDrive Personal Shared Folders (#1586)
* In a `--resync --upload-only --single-directory 'dir'` scenario, and where the root 'dir' for --single-directory is a 'shared folder' we will not have the 'tie' DB entry created because of using --upload-only because we do not download the folder structure from OneDrive. As a result, query of the folder will fail and file uploads will fail.

Simulate the 'tie' DB record only when --resync --upload-only --single-directory 'dir' is being used, and if that folder is 'remote' and if we are using a 'personal' account.

The 'impact' of this however is, because of `--resync --upload-only` being used, local files are not in the local DB cache anymore, thus are treated as *new* files, thus, will be attempted to be re-uploaded.
2021-07-22 08:17:02 +10:00
abraunegg 8a20275dd2
Fix getPathDetailsByDriveId query when using --dry-run and a nested path with --single-directory (#1583)
* Fix getPathDetailsByDriveId query when using --dry-run and a nested path with --single-directory
* Fix fake response generation to use generated values for all account types to avoid DB lookup failures when using --dry-run for Personal account types
2021-07-20 13:27:35 +10:00
abraunegg 87393e639b
Update DMD version to 2.097.0 for Docker container builds (#1584)
* Update DMD version to 2.097.0 for Docker container builds
2021-07-20 05:23:18 +10:00
abraunegg 398e790a5a
Update INSTALL.md
* Update Void Linux package URL
2021-07-19 09:19:24 +10:00
Roger Erens f99f284791
Fix a typo (#1580)
The removed sentence seems to be more appropriate for the '--dry-run' section. But that section already says the same in slightly different words.
Nota bene your -> you're in the removed sentence.
2021-07-17 07:30:24 +10:00
abraunegg 3a1899cbd2
Release 2.4.14 Dev Prep (#1581)
* Release 2.4.14 Dev Prep
2021-07-17 07:28:32 +10:00
abraunegg b08690f1ac
Release files for 2.4.13 (#1569)
* Release files for 2.4.13
2021-07-14 05:34:45 +10:00
nrandon 72905b951f
Fix Alpine Docker lock to 3.13 (#1568)
This issue relates to a build issue on the official docker build
system where Alpine Linux 3.14 will not currently build so fix
the Alpine version to 3.13.

Make sure build and runtime image used in building the docker
container are the same Alpine version to remove runtime issues.
2021-07-14 05:13:00 +10:00
abraunegg 6d92bc8210
Fix that Business Shared Folders with parentheses are ignored (#1560)
* Fix issue where matching a OneDrive Business Shared Folder that contains '()' is not matched correctly
2021-07-13 18:31:48 +10:00
abraunegg 4b56a6103e
Fix Docker Alpine build failing due to filesystem permissions issue (#1564)
* Fix Docker Alpine build failing due to filesystem permissions issue
2021-07-12 08:06:11 +10:00
abraunegg 1fbe1d34a7
Fix application crash due to a conversion overflow when calculating file offset for session uploads (#1558)
* Fix an unhandled application crash when calculating the required offset for a file fragment size when resuming a session upload
2021-07-12 05:59:32 +10:00
abraunegg 34f7a379f6
Fix Docker build process to source GOSU keys from updated GPG key location (#1562)
* Fix Docker build process to source GOSU keys from updated GPG key location
2021-07-11 13:21:36 +10:00
c-maia 7171b83f5b
Fix error message when deleting a large number of files (#1559)
"delete" word appears twice in the error message. This commit removes the extra "delete".
2021-07-11 07:37:57 +10:00
abraunegg 54a6575709
Fix application crash due to invalid UTF-8 sequence in the pathname for the application configuration (#1551)
* Catch a Invalid UTF-8 handling error when attempting to initialise the application. This is caused by the 'path' to the application configuration (typically ~/.config/onedrive) contains a bad UTF-8 character thus cannot be read / initialised
2021-07-07 06:26:52 +10:00
abraunegg fc5d7f9327
Fix application crash and incorrect handling of --single-directory when syncing a OneDrive Business Shared Folder due to using 'Add Shortcut to My Files' (#1542)
* When syncing OneDrive Business Shared Folders and using --single-directory, select correct driveId and itemId for the remote directory that needs to be synced
* Normally, the 'remoteItem' field will contain 'fileSystemInfo' however, if the user uses the 'Add Shortcut ..' option in OneDrive WebUI to create a 'link', this object, whilst remote, does not have 'fileSystemInfo' in the expected place, this leading to a application crash
2021-07-06 18:11:53 +10:00
abraunegg e236c7cf12
Handle OneDrive API Bad Request response when querying if file exists (#1535)
* Add exception handling for when the API returns a 400 error when attempting to query a path on OneDrive. If the path generates a 'bad request' response, this needs to be correctly handled.
2021-07-01 06:18:48 +10:00
abraunegg 65d289d2cd
Update known-issues.md
* Update 'Application 'stops' running without any visible reason' item with additional issues and some further debugging which can be done
2021-06-29 17:58:05 +10:00
abraunegg 13b37094f7
Update INSTALL.md
* Fix typo
2021-06-18 07:15:32 +10:00
abraunegg 6201938750
Update lock.yml
Run lock once a day, 19 mins after midnight, rather than every hour to avoid service abuse
2021-06-15 07:03:30 +10:00
Yannis Milo 1d4a206683
Update Docker.md (#1514)
"-it" must be added to the command line in order to be able to paste the link to the response uri. Without adding "-it' in the command line parameters, docker just exists.
2021-06-11 04:14:57 +10:00
abraunegg 761cf3eb87
Support DMD 2.097.0 as compiler (#1505)
* Support DMD 2.097.0 as compiler and resolve deprecation messages
2021-06-07 08:26:36 +10:00