Commit graph

668 commits

Author SHA1 Message Date
abraunegg ba80dbb4c3
Release files for 2.3.9 (#634)
* Release files for 2.3.9
2019-09-01 06:48:20 +10:00
abraunegg 5cd860a398
Fix handling of 5xx responses from OneDrive when uploading via a session (Issue #632) (#631)
* Fix handling of 5xx responses from OneDrive when performing a session upload
* Switch to same checks when doing non session upload so that OneDrive exceptions are thrown correctly
* Remove a 'throw e' when curl times out
* Remove a needless 'throw e' when a session upload cannot be found
* Set the upload failed flag when OneDrive errors on session uploads
2019-08-31 05:27:49 +10:00
abraunegg 219fce2109
Add readme badges (#629)
* Add readme badges
2019-08-27 13:23:18 +10:00
abraunegg eb04ad5ffa
Remove redundant logging output (#627)
* Remove redundant logging output
2019-08-24 17:28:16 +10:00
abraunegg ad0daf2df5
Detect the need for --resync when config changes (#617)
* Detect the need for --resync when config changes either via config file or cli override
2019-08-24 17:18:58 +10:00
abraunegg bc3853bc4f
Add additional JSON object validation (#623)
* Add additional JSON object validation for queries made against OneDrive where a JSON response is expected and where that response is to be used and expected to be valid
2019-08-24 16:26:08 +10:00
abraunegg 488f756ecd
Fix unhandled error exceptions that cause application to exit / crash when uploading files (Issue #624) (#625)
* Remove 'else throw e' which causes the application to exit / crash and replace with what the actual error message is from OneDrive
* Make logging of unhandled errors consistent
* Add extra error handling when uploading files for errors received from OneDrive or file system errors
* Flag that the upload failed if there is an exception error raised
* Update logging output for when an error occurs to indicate that the file was skipped
* Log the OneDrive response as log.vlog rather than log.error as it is now being handled correctly
* Throw an exception for 50x errors so that it gets caught correctly
* Clean up logging when exception is generated
2019-08-24 15:54:48 +10:00
abraunegg af07dea6f9
Change minimum version of LDC to v1.12.0 (#626)
* Minimum version of LDC is v1.12.0
2019-08-22 20:14:09 +10:00
abraunegg 437fe4d9e4
Remove double logging output for a OneDrive 412 error (#622)
* Remove this logging output as it creates a double entry
2019-08-22 20:07:33 +10:00
abraunegg 893e235151
Catch a 403 Forbidden exception when querying Sharepoint Library Names (#620)
* Catch a 403 Forbidden exception when attempting to query for an Office 365 Shared Library Name
* Validate that the returned response is a valid JSON object
* Update scopes as per https://github.com/OneDrive/onedrive-api-docs/issues/1119
* Update that if a 403 error is received, what is the right course of action to take
2019-08-09 18:14:10 +10:00
abraunegg 92c4c81bf8
Update for 2.3.9-dev (#618)
* Update for 2.3.9-dev
2019-08-07 07:52:14 +10:00
abraunegg 2ef503f9e3
Release files for 2.3.8 (#614)
* Release files for 2.3.8
2019-08-04 09:04:28 +10:00
abraunegg 4e97f8810d
Implement --get-file-link (#612)
* Implement --get-file-link which will return the weburl of a file which has been synced to OneDrive
2019-08-02 18:43:31 +10:00
abraunegg a59490a79e
Update README.md
* Update readme to include details about file validation which was added
2019-08-02 05:55:43 +10:00
abraunegg 100e644ae0
Catch error when creating sync dir fails (#608)
* Catch error when creating the sync dir fails - we cant run if this is not created or present
2019-07-31 07:20:26 +10:00
abraunegg 8f71043f23
Add a check to handle moving items out of sync scope & delete locally if true (#604)
* Add a check to handle moving items out of sync scope & delete locally if true
2019-07-30 07:02:24 +10:00
abraunegg 3171318503
Resolve file / folder upload issues (Issue #598) (#602)
* Without this throw, uploadLastModifiedTime fails to catch that the 412 error was returned, thus, the retry with a null cTag / eTag is not performed which leads to 'OneDrive response missing required 'id' element' being generated.
* Fix 'Unexpected character '<'. (Line 1:1)' when OneDrive has an exception error
* Validate that the response from OneDrive is a valid JSON object
2019-07-27 05:24:59 +10:00
abraunegg f111eab71a
Update onedrive_service.sh
* Enable logging for init.d service - as without this - there is zero information about what the service is actually doing
2019-07-23 17:44:14 +10:00
abraunegg 79f4b22f3e
Add back CentOS 6 install & uninstall to Makefile (#601)
* Re-implement PR #353 which somehow got lost along the way
* Update CentOS 6 build instructions
2019-07-23 17:31:47 +10:00
abraunegg 21e504751b
Update USAGE.md
Logically - show config before testing config !
2019-07-20 06:58:16 +10:00
abraunegg b63be18f35
Update USAGE.md
Clarify that entries for skip_dir are relative to sync_dir
2019-07-20 06:49:24 +10:00
abraunegg b41c5eb05d
Update Sharepoint modified file handling for files > 4Mb in size (#594)
* Update Sharepoint modified file handling for files > 4Mb in size
2019-07-17 05:11:38 +10:00
Masaru Nagaku b23390c880 Add date tag on docker.hub (#584)
* Add date tag on docker.hub
2019-07-14 08:37:24 +10:00
naui11 3f5d82c63e Update USAGE.md (#588)
Add selinux configuration details for a sync folder outside of the home folder
2019-07-14 08:08:48 +10:00
abraunegg 56644c4cbf
Update Sharepoint Document Library modified file handling (#590)
* Update Sharepoint Document Library handling for .txt & .csv files
* Use replace function for modified Sharepoint Document Library files rather than delete and upload as new file, preserving file history
2019-07-14 07:12:27 +10:00
abraunegg 66764f279d
Add explicit check for hashes being returned from OneDrive (Issue #591) (#592)
* Add explicit check for hashes to be returned in cases where OneDrive API fails to provide them despite requested to do so
* Add comparison with sha1 if OneDrive provides that rather than quickXor
2019-07-13 15:42:35 +10:00
naui11 170198c557 Update INSTALL.md (#589)
* Use dnf for Fedora
2019-07-13 05:09:47 +10:00
abraunegg 68c6c5d75d
Fix hidden directories in 'root' from having prefix removed (#586)
* Fix hidden directories in 'root' from having prefix removed
2019-07-12 13:12:26 +10:00
Masaru Nagaku c16ba1ba2f Fix docker build error on stretch (#582)
* Fix docker build error on stretch
2019-07-12 05:43:06 +10:00
Masaru Nagaku 4d62bd53d5 Fix entrypoint.sh to work with "sudo docker run" (#581)
* Fix entrypoint.sh to work with "sudo docker run"
2019-07-11 05:10:34 +10:00
Cauan 54f0ccdca6 Update entrypoint.sh (#579)
* Included the flag "-m" to create the home directory when creating the user.
2019-07-11 04:08:15 +10:00
Norbert Preining ab7e321726 Remove -d shorthand for --download-only (#577)
* Remove -d shorthand for --download-only to avoid confusion with other GNU applications where -d stands for 'debug'
2019-07-10 13:23:44 +10:00
abraunegg 705f78bec8
Update INSTALL.md
* sudo is needed for mock - revalidated steps
2019-07-09 09:45:30 +10:00
abraunegg c8a08689ce
Update INSTALL.md
* Update CentOS 6 commands to rebuild sqlite
2019-07-09 07:08:03 +10:00
abraunegg 64d91b844a
Update LDC to v1.16.0 (#574)
* Update LDC to v1.16.0 for Travis CI testing
2019-07-08 18:09:46 +10:00
abraunegg 712a101069
Update bug_report.md
* Update bug report due to http/2 downgrade by default
2019-07-08 05:58:33 +10:00
Matthew Fallon f39621c2da Change unauthorized-api exit code to 3 (Issue #567) (#572)
* Changes unauthorized-api exit code to 3
* Systemd will not restart on exit code 3
2019-07-06 08:01:04 +10:00
abraunegg 80675aa8b4
Fix unable to download all files (Issue #563) (#568)
* Update logging output for better clarity
* Update logging output from vdebug -> error for errors
* Remove restrictive checks on fileDetails - if missing, continue, not return
* Add debug lines for if / when this is missing
2019-07-05 16:17:06 +10:00
abraunegg 920ea5905c
Update for 2.3.8-dev (#570)
* Update for 2.3.8-dev
2019-07-05 15:50:25 +10:00
abraunegg ed19175e2c
Release files for 2.3.7 (#566)
* Release files for 2.3.7
2019-07-03 19:14:07 +10:00
abraunegg 1d02b3cb7a
Fix not all files being downloaded due to query failure & false DB update (#564)
* If query for file details or file object generates an error, we return, but we also need to flag that downloadFailed = true so that item is not added to the database which may cause validation issues leading to thinking that the file was downloaded but then deleted
2019-07-03 18:33:51 +10:00
abraunegg 366f7a33d1
Update to 2.3.7-dev (#565)
* Update to 2.3.7-dev
2019-07-03 16:32:18 +10:00
abraunegg 1b233ae48a
Update release files for 2.3.6 (#562)
* Update release files for 2.3.6
2019-07-03 08:42:45 +10:00
abraunegg 4a4611ccea
Update fix for Issue #555 (#559)
* Update fix for #555 as try | catch block for session creation appears to miss error response codes
* Update how JSONValue object is determined to be valid
* Add error logging when response is not a valid JSON object
2019-06-30 10:12:25 +10:00
abraunegg 2f3804a3c0
Add download size & hash check (Issue #558) (#560)
* Check if the file that was downloaded to local disk equals the reported size & reported hash of the file on OneDrive. If sizes do not match, report an error and remove the local file as it is most likely corrupt.
2019-06-28 13:13:32 +10:00
abraunegg 15a2749382
Handle OneDrive error response on creating upload session (#556)
* Add a try block when attempting to create the upload session and handle if there is an error response from OneDrive
* Should return a JSONValue regardless of error
2019-06-27 18:40:18 +10:00
Milan Aleks 14fb1ca637 Fixed some spelling/grammatical errors (#557)
* Fixed some spelling/grammatical errors (@SniffingTiger)
2019-06-27 18:16:24 +10:00
Norbert Preining 7588774efb Fix building without git available (#554)
The current code requires git even if there is not .git directory.
Switch to piping the output of git directly to the version file,
which makes sure that it is not called during if evaluation.

Report and patch thanks to Sebastian Graf (sgraf812)
2019-06-23 07:57:40 +10:00
abraunegg d939d38c4f
Implement HTTP/2 downgrade by default (#549)
* Implement HTTP/2 downgrade by default to increase application stability when using curl >= 7.62
2019-06-21 01:11:29 +10:00
abraunegg bb2986b222
Add object check for json value (#551)
* Add explicit check that variable is a valid object
* Add default handling if query throws an error
2019-06-21 00:45:04 +10:00