Commit graph

432 commits

Author SHA1 Message Date
abraunegg 487cfab8d1
update release files for 2.2.1 (#271)
* Update release files for 2.2.1
2018-12-04 13:29:43 +11:00
adudek 026809d4d1 Docker buildfiles for onedrive service (#262)
* Separate install options for binary (make install.noservice) only and binary
* Docker build files and usage documentation
2018-12-04 11:59:03 +11:00
Norbert Preining b10e641fe9 allow starting offline in monitor mode (#266)
* SyncEngine: allow for multiple calls to init by saving the state
* Factor out syncengine initialization code so that it can be reused
* Don't exit in monitor when started offline
* Always call initSyncEngine during regular syncs, this will call the SyncEngine init routine which caches the state, thus a quasi no-op.
* Add forgotten http.shutdown
2018-12-04 11:15:44 +11:00
abraunegg 29808c905c
Implement --get-O365-drive-id to get correct SharePoint Shared Library (Issue #248) (#260)
* Implement --get-O365-drive-id to return the correct drive_id of a SharePoint Shared Library to use for syncing that repository
2018-12-04 10:59:23 +11:00
Norbert Preining 56b63acede Make DOCDIR and MANDIR in the same way configurable as PREFIX etc 2018-12-04 08:40:05 +09:00
abraunegg 33dc260fd2
Update Makefile (#269)
Update Makefile based on 3a14a21cae

**Credit:** Zamir SUN sztsian@gmail.com
2018-12-04 07:28:16 +11:00
abraunegg cdb11326b9
Fix unreachable statements (#268)
* Add warning flag to compiler
* Fix unreachable statements

**Credit:** Zamir SUN <sztsian@gmail.com>
2018-12-04 06:29:18 +11:00
Norbert Preining 9817104ca1 continue in monitor mode when sync timed out (#265)
* update handling of connection timeouts in monitor mode & allow application continue rather than exit
2018-12-03 13:41:31 +11:00
Norbert Preining c24e4b0b1e adjust timeout values for libcurl (issue #256) (#261)
This change adjusts the two core timeout parameters of libcurl operation
- dataTimeout: changed from 3600sec to 300sec
  this timeout controls the max time when there is no data incoming
  (actually below CURLOPT_LOW_SPEED_LIMIT)
- operationTimeout: added 3600sec
  this timeout controls the maximally allowed connection timeout
2018-12-02 11:30:50 +11:00
Norbert Preining 90df7e4c9c Installation of doc files, addition of man page (#255)
* install documentation files into $PREFIX/share/doc/onedrive/
* add man page and install it, ignore generated version
* remove installed doc/man on uninstall
* remove generated man page on make clean
2018-12-02 07:41:01 +11:00
Norbert Preining 0d05274f32 Fix renaming of files sync issues (#252)
* issue #249 do not safeRename the target if it is in sync
* issue #249 only remove actual path if the associated ids agree
2018-11-29 21:31:44 +11:00
Norbert Preining 11138602ed gracefully handle connection errors in monitor mode (#253)
* gracefully handle connection errors, resolve issue #234
2018-11-29 20:48:24 +11:00
abraunegg 859b5510a0
update files for 2.2.0 release (#247)
* update files for 2.2.0 release
2018-11-24 08:00:09 +11:00
abraunegg a26a69ce9f
Change logging to a separate logfile is no longer the default (#239)
* Change '--download' to '--download-only' to align with '--upload-only'
* Enable logging to a separate file only if the '--enable-logging' flag is passed through at client run time
* Implement configuration option for logfile location, if logging is enabled
2018-11-24 07:13:16 +11:00
abraunegg c5ee62efd8
Sync with shared folders/drives for onedrive business (#206)
* Refactor PR104 for latest code base to enable client use with SharePoint libraries
* Implement '--disable-upload-validation' as SharePoint modifies files when uploaded
* Enable '--disable-upload-validation' by default if account type is documentLibrary - as most likely this is a SharePoint repository
2018-11-24 06:26:30 +11:00
abraunegg 23e79d39e1 Update sync.d
* Update exit codes on sync.init() to -1
2018-11-22 07:11:14 +11:00
abraunegg cbd3ecbf71
Resolve unable to create folders on shared OneDrive accounts (Issue #217) (#244)
* Update logic to use remote item details for folder creation
* Backport sync.d changes from PR #246 to this PR before merge
2018-11-22 07:03:04 +11:00
abraunegg fc162b94e2
Resolve database assertion failure due to authentication HTTP/1.1 400 Bad Request (#246)
* Enhance initialisation error handling to catch 4xx errors
2018-11-21 18:54:08 +11:00
abraunegg eaedfac34a
Update onedrive.d for additional debug logging (#238)
* In case the user does not use the --verbose tag, if we are doing --https-debug we want this printed to the console
2018-11-18 07:05:01 +11:00
abraunegg aeee9c8d16
Update bug_report.md 2018-11-17 06:53:42 +11:00
abraunegg e70722862c
update files for 2.1.6 release (#235)
* update files for 2.1.6 release
2018-11-15 06:43:58 +11:00
abraunegg f785396643
Update HTTP/2 handling for session uploads (#233)
* Remove HTTP 1.1 downgrade for session uploads
* Handle HTTP/2 0 (zero) response code for successful session data upload
* Add debugging for actual server response, not curl interpreted response when using --debug-https
2018-11-15 06:08:55 +11:00
Popa21 df7ff4f7b7 Add PKGBUILD for makepkg (#231)
* This PKGBUILD file for makepkg automatically clones the current version of the master branch, builds it and creates a pacman package
2018-11-15 05:50:16 +11:00
abraunegg 8a98bf3e30
Add handling for HTTP Code 302 generated by HTTP/2 calls (#229)
* Update initial Curl 7.62.0 fix with a better solution which handles the redirect's given by HTTP/2 connections (credit @Popa21)
* Use HTTP/1.1 for session uploads otherwise the response when using HTTP/2 generates a 'JSONValue is not an object' error
2018-11-12 06:01:57 +11:00
abraunegg 7f5b5d981b
release 2.1.5 updates (#228)
* release 2.1.5 updates
2018-11-11 12:01:39 +11:00
abraunegg 86ea576144
Handle HTTP request returned status code 412 (Precondition Failed) for session uploads (#227)
* Handle HTTP request returned status code 412 (Precondition Failed) for session uploads to OneDrive Personal Accounts
* Fix Failed to remove file /root/.config/onedrive/resume_upload: No such file or directory if there is a session upload error and the resume file does not get created
* Handle response codes when using 2 different systems using --upload-only but the same OneDrive account and uploading the same filename to the same location
2018-11-11 11:15:48 +11:00
abraunegg 11e477f045
Resolve files will not download when using curl 7.62.0 (http2 issue) (#225)
* Force connections to use HTTP 1.1 as Curl 7.62.0 defaults to using http2 if h2 support is built in which causes issues
2018-11-11 06:38:41 +11:00
abraunegg eb2cbfd0a8
Resolve 'Key not found: path' when syncing from some shared folders (#211)
* Add a check to validate if the parentReference object has a path object
* Fix spelling error - trough -> through
* Only upload changes on remote folder if the item is in the database - dont assert if false
2018-10-30 06:20:52 +11:00
abraunegg 76ac8d3a24
Update default config file - Issue #208 (#210)
* Ensure default config is aligned to code defaults
2018-10-25 13:09:56 +11:00
abraunegg 79d86e0cb9
Update Makefile - replace 'cp -raf' with 'install -D -m 644' (#202)
* Update makefile - remove 'cp -raf' & chmod and replace with 'install -D -m 644' for service file installation
2018-10-17 18:18:33 +11:00
abraunegg 1c23d01007
Update README.md 2018-10-14 20:32:11 +11:00
abraunegg 9680127409
Update .travis-ci.sh 2018-10-13 05:29:49 +11:00
abraunegg d9e10799ce
Update README.md 2018-10-13 05:27:49 +11:00
abraunegg ba453d3ef1 Version bump gentoo ebuild
* Update gentoo ebuild
2018-10-10 19:39:22 +11:00
abraunegg 06534b1ea4
Update CHANGELOG.md 2018-10-10 19:34:34 +11:00
abraunegg 53b72e0d9d
Resolve syncing of Shared Folders due to OneDrive API change - Issue #144 (#191)
* Update handling of shared folders and items which was previously broken to a OneDrive API change
* Extract syncFolderName from either local or remote folder - not just local folder.
2018-10-10 19:31:21 +11:00
abraunegg a571f78ed3
Update README.md 2018-10-10 07:50:46 +11:00
abraunegg 45b824448a
Update README.md
* Add upgrading details to remove items.sqlite3 if encountering errors
2018-10-09 10:22:25 +11:00
abraunegg d1d3c8a150
Update Makefile to resolve incorrect systemd installation location(s) Issue #188 (#189)
* Update makefile to fix systemd install locations
* Update makefile to fix systemd uninstall locations
2018-10-07 13:10:41 +11:00
Jesse Harris 3ef1ceaa28 Version bump gentoo ebuild (#187)
* Update gentoo ebuild
2018-10-06 18:10:54 +10:00
abraunegg 8c9280d6ac
Update CHANGELOG.md
Updated for 2.1.3 release
2018-10-04 12:08:23 +10:00
abraunegg 74b9163b06
Resolve Key not found: expirationDateTime on session resume (Issue #174) (#176)
* Handle an invalid response on session resume when a 4xx / 5xx response is generated from the OneDrive service
2018-10-04 09:38:23 +10:00
abraunegg 14b2de8f4c
Resolve crash with strange filename (Issue #151) (#178)
* Update file handling to look for HTML ASCII codes which will cause uploads to fail
2018-10-04 09:33:39 +10:00
abraunegg 31fc6a4d4f
Validate filename length before download to conform with Linux FS limits #142 (#180)
* Validate filename length before download to conform with Linux FS limits
2018-10-04 09:31:28 +10:00
abraunegg 2648612acd
Update makefile & documentation (#172)
* Update makefile & documentation to provide details on how to run the onedrive service via systemd as a non-root user
2018-10-04 09:26:14 +10:00
abraunegg 8323d05230
Update Travis CI building to test build on ARM64 (Issue #95) (#177)
* Update to build on ARM64 
* Update documentation regarding building on ARM64 platforms
2018-10-04 09:22:49 +10:00
abraunegg 583075fb87
Update README.md
Clarify when to use --resync
2018-10-03 09:52:14 +10:00
abraunegg a6336e70b3
Resolve Key not found: driveType (Issue #152) (#166)
* Add try & catch in the case of a 504 error being generated to upload the file. Currently, if a 504 is generated, it is handled gracefully, but further files to upload are stopped
* Update where ever there is a 404 try block, add a if statement to capture if a 5xx error is returned as well
2018-09-25 05:25:40 +10:00
Marcus Ball 3a4c71d7ee Fix incorrectly nested configDir in X11 systems (Issue #181) (#182)
* Fix incorrectly nested configDir in X11 systems
2018-09-21 05:45:06 +10:00
abraunegg 53cbc8ff5e
Update README.md 2018-09-13 08:52:24 +10:00