Commit graph

629 commits

Author SHA1 Message Date
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
abraunegg cc7bcb1be8
Update for new dev release (#548)
* Update for new dev release
2019-06-20 09:28:31 +10:00
abraunegg db07f4eb6c
Release files for 2.3.5 (#546)
* Release files for 2.3.5
2019-06-19 11:54:05 +10:00
Norbert Preining 096120270d
Check for supported version of D compiler
check against minimal needed version of ldc/dmd compilers
only the first three numbers are compared as numbers, everything after
that is string compared

* update configure after changes to configure.ac
* Update .travis-ci.sh
* Update Travis CI to download minimum version of DMD for x32 build testing
2019-06-18 17:39:31 +09:00
abraunegg 10dd0300e3
Update issue #540 fix (#543)
* Update how and when filesize is configured and used before file download
2019-06-18 10:32:27 +10:00
abraunegg 97ee66e9c0
Update USAGE.md
* Fix HREF link for Office365.md
2019-06-18 04:27:12 +10:00
abraunegg 749c52651a
Update USAGE.md (#544)
* Clarify Shared Folder support
2019-06-18 04:23:08 +10:00
abraunegg 687080d435
Size check should only be used if configured (Issue #540) (#541)
* Size check should only be used if configured
* Rather than make 2 x calls to OneDrive service, driveItem already has the size value to check
* Add a try block when query for file details
2019-06-17 10:16:27 +10:00
Norbert Preining 3d7843b237 fix broken autoconf code for --enable-XXX options (#539)
* fix broken autoconf code for --enable-XXX options

Currently, using --disable-XXX is not working, because the
arguments of AC_ARG_ENABLE are only for presence versus absence,
not for positive versus negative. Fix this by properly using
AS_IF on the value set.

* autoreconf after changes to .ac file
2019-06-16 09:25:45 +10:00
Norbert Preining f1211a20d1 get rid of forced root necessity during installation (#538)
Remove the creation of /var/log/onedrive directory. The default is
not to log, and fall back to logging to home directory. It is
the obligation of the system administrator to create these
directory. Furthermore, we don't know whether the group "users"
is actually present.

Remove the owner/group specification from the directory creation.
We install the actual service files without owner/group specs
anyway.

Update USAGE.md to document this.
2019-06-16 05:54:07 +10:00
abraunegg bbf35f12ea
Handle a directory in the sync_dir when no permission to access (Issue #532) (#536)
* Handle a directory in the sync_dir when no permission to access
* Log the error during sync rather that only in verbose mode
2019-06-15 09:23:32 +10:00
abraunegg 56f63439e8
Update to v2.3.5-dev (#531)
* Update to v2.3.5-dev
2019-06-13 16:52:39 +10:00
abraunegg 2f90ee2f92
Update files for release 2.3.4 (#530)
* Update files for release 2.3.4
2019-06-13 09:52:44 +10:00
Norbert Preining 4aa8c1e267 Fix building on docker hub and older install programs (#529)
* Work around broken install
* Create docs dir with mkdir
2019-06-13 06:25:24 +10:00
Norbert Preining 33de495ec4 Update gitignore (#528)
* Update gitignore
2019-06-13 06:01:19 +10:00
Norbert Preining 284e272e8f Install doc files without sub-directory (#527)
* Install doc files without sub-directory
2019-06-12 19:31:42 +10:00
abraunegg 7cf2912d2d
Rework directory layout and refactor MD files for readability (#523)
* Move lots of stuff into contrib directory to clean up root folder
* Update autoconf files for new location of some files
* Refactor README split and move to docs directory
* Update INSTALL.md
* Update Makefile.in
* Install docs from new location
* Uninstall docs correctly
* Update Dockerfile
* Fix up Dockerfile spacing
* Move systemd stuff to contrib
* Move docker specific stuff to contrib/docker, update docs
* Fix Alpine and Stretch docker files
* Update configure after changed file locations
* Update INSTALL.md to include pkg-config as requirement
* Move also entrypoint.sh to contrib/docker
* Update 'min-notif-changes' to 'min-notify-changes' which was missed in PR #467
* Update to add --sync-root-files to usage.md and man page
* Update usage.md to include --auth-files ARG details
2019-06-11 18:40:05 +10:00
Norbert Preining aa2e2245f0 Support file based authorization (Issue: #524) (#525)
* support file based authorization
* remove generated files after authentication
2019-06-11 17:12:36 +10:00
abraunegg e4ab9e7316
Update Dockerfile (#522)
* Update Dockerfile to correctly build on Docker Hub
2019-06-10 20:12:39 +10:00
Norbert Preining 76dfb910ca
fix docker entrypoint failures when gid is defined but not uid (#521) 2019-06-09 11:27:00 +09:00
luukvbaal ef6af8e5bc implement skip_size (Issue #213) (#517)
* Implement skip_size feature request (@luukvbaal)
2019-06-08 06:37:41 +10:00
abraunegg c617185c14
Update missing cTag patch (Issue #512) (#515)
* Update original patch to check for eTag in response to use, if not found set to empty value.
* Add cTag response validation for all cTag response use 'in-case' the cTag response is dropped from other responses
2019-06-03 10:43:16 +10:00
abraunegg 8d4a35e34d
Handle OneDrive API response when cTag key is missing (Issue #512) (#513)
* Handle response from OneDrive where cTag JSON elements are missing when uploading a locally modified file
* Update bug_report.md to fix up spelling errors
2019-05-30 12:41:26 +10:00
abraunegg bac9ab41ae
Enhance error message for curl CA SSL issue (Issue #507) (#508)
* Enhance error message when unable to connect to Microsoft OneDrive service when the CA SSL certificate has issues
2019-05-24 19:17:08 +10:00
abraunegg 239085f1fc
Check timestamp to ensure that latest timestamp is used when comparing OneDrive changes (Issue #505) (#506)
* If OneDrive presents a change to download and the file already exists, check the local modified timestamp to ensure that the local file is not technically newer than the file we are going to download
2019-05-23 05:38:32 +10:00
abraunegg a989fbfedf Update README.md
* Update minimum DMD version needed to compile, to ensure the DMD  compiler support HTTP/2 operations
2019-05-18 04:44:36 +10:00
abraunegg 20eda60fdf
Catch a curl timeout exception (#499)
* Catch a curl timeout exception
* If we hit a curl exception, log that we hit this, as the handling of the exception in 'some' instances may actually not log an error as to 'why'
2019-05-13 09:10:19 -04:00
abraunegg f779881ff9
Check to ensure that file downloaded and is present locally before setting times (Issue #496)
* Check to see if the file was actually downloaded before attempting to set the times on the file.
* If file is not local, download failed
2019-05-13 08:22:15 -04:00
abraunegg 3e35e20cc5
Update sync.d (#493)
* Add an encoding validation check before any path length checks are performed as if the path contains any invalid UTF-8 sequences, the path walk to establish valid path length will fail
2019-05-13 07:52:49 -04:00
abraunegg 0280625898
Update Makefile for RHEL/CentOS 7 systemd locations & fix uninstall of unit files (Issue #495) (#496)
* Add check for RHEL/CentOS system as there is no user unit dir on those platforms
* Install unit files to correct location on RHEL/CentOS
* Fix up unit file removal on all platforms
2019-05-11 01:51:36 +10:00
abraunegg caec1cb8cb
Implement --sync-root-files when using a sync_list file (Issue #491) (#492)
* Implement --sync-root-files to sync all files in the OneDrive root when using a sync_list file that would normally exclude these files from being synced
2019-05-09 21:18:49 +10:00
abraunegg bac5d6f1a9
Fix dry run reports "Deleting item from one drive" for remotely created file (Issue #489) (#490)
* Fix --dry-run logging output for faking downloading new files
2019-05-09 19:52:39 +10:00
abraunegg af43b77100
Better handling for initialisation errors (Issue #483) (#484)
* Better handle initialisation issues when OneDrive / MS Graph is experiencing problems that generate 401 & 5xx error codes
2019-05-05 21:06:55 +10:00
abraunegg fbad4b4835
Fix 'Local files not deleted' when using bad 'skip_file' entry (#480)
* Add a check for bad 'skip_file' entry that prevents incorrect searching of local changes (mainly deletes) from being synced
2019-04-25 11:00:23 +10:00
Norbert Preining daec620c1a remove Makefile (#477)
* remove Makefile
* update configure.ac and configure to 2.3.4dev
2019-04-24 10:23:25 +10:00
abraunegg 2c7fec1cf1
Update Makefile (#475)
* Update default Makefile with systemd service file changes introduced by #287 when not calling ./configure
2019-04-24 09:13:05 +10:00
Norbert Preining c8e47a47ff autoconf based build system (#287)
* Add autoconf based build system
2019-04-17 11:06:24 +10:00
abraunegg 3b533894a2
Update release files for 2.3.3 (#471)
* Update release files for 2.3.3
2019-04-16 12:18:26 +10:00
abraunegg ea26e4d830
Add logging as to why resume upload failed (Issue #468) (#470)
* Log 'why' the resume upload failed
* Remove the 'resume_upload' as it is invalid & contains bad data
2019-04-15 10:56:11 +10:00
abraunegg c6923cdf29
Update 'resume_upload' handling in the event of bad OneDrive response (Issue #468) (#469)
* Add JSON response checks in the event OneDrive sends malformed data
2019-04-15 08:10:48 +10:00