Commit graph

528 commits

Author SHA1 Message Date
abraunegg a9ba0204c5
Update release files for 2.2.6 (#411)
* Update release files for 2.2.6
2019-03-12 17:37:00 +11:00
abraunegg 4c3b959bf6
Resolve unhandled application crash when invalid auth response is used (Issue #399) (#410)
* Add a http 400 response error handler
* If the response uri generates a 400 error, the JSON response will not contain the access_token. Request to re-authenticate
2019-03-12 11:50:21 +11:00
abraunegg e849eb3de4
Resolve Key not found: nextExpectedRanges (Issue #408) (#409)
* Dont 'assume' that the key value pairs exist. Check if they do before attempting to use them
2019-03-12 11:49:15 +11:00
abraunegg 98624267c5
Implement --dry-run (#337)
* Implement new feature --dry-run
2019-03-11 17:57:47 +11:00
abraunegg 3f08e271af
Update util.d - reduce local FS read overheads (#407)
* Try and read 1 byte of the file rather than 10MB for each 'new' file to be uploaded to validate local file permissions
2019-03-11 17:56:26 +11:00
abraunegg efaaaadce2
Rework function uploadCreateDir (#397)
* Ensure that on query failure, default root and drive id is used
2019-03-08 08:40:29 +11:00
abraunegg b0dac7bf42
Update README.md - Add proxy configuration information (#403)
* Add first time run command
* Add how to access OneDrive service through a proxy
2019-03-08 08:35:11 +11:00
abraunegg ba834368ca
Implement --check-for-nosync to ignore folder when special file present (Issue #163) (#390)
* Implement a capability to ignore a folder when a special file (.nosync) is present
2019-03-03 05:58:36 +11:00
abraunegg 2d54f3e4d1
Update README.md (#396)
* Add details on how to change the authorisation of the client if the OneDrive account password is changed
2019-03-02 10:51:51 +11:00
Norbert Preining 09f328e63f configurable logging intervals in monitor mode (Issue: #378) (#391)
* Configurable interval of logging in monitor mode (Issue: #378)
2019-02-27 07:21:23 +11:00
Norbert Preining b668ecef71 Create new upload session on reinit (Issue: #379) (#392)
* By moving the UploadSession creation from the constructor to the init function we guarantee that a re-initialization also starts a new UploadSession.
2019-02-27 06:49:23 +11:00
Cauan 97193107ee Update entrypoint.sh (#387)
* Update entrypoint.sh to accept command line arguments
2019-02-24 17:20:50 +11:00
abraunegg 7a47df7a38
Implement --skip-dot-files (#386)
* Implement new CLI option --skip-dot-files to skip .files and .folders if option is used
2019-02-24 17:19:45 +11:00
Norbert Preining 0d3b891177 don't annoy with notifs when offline and cannot act on changes (#385)
* Don't annoy with notifs when offline and cannot act on changes
2019-02-21 19:51:15 +11:00
abraunegg 808e0254e4
Update README.md (#384)
* Update readme to add details about updating the 'config' file to remove the '.*' from skip_file if present
2019-02-21 17:49:26 +11:00
abraunegg 4e12496dfe
Update README.Office365.md
* switch bash to text for codeblocks
2019-02-20 07:29:37 +11:00
Jack Thomasson 460596dd36 Add smaller footprint Docker container builds using Alpine and Debian Stretch (#369)
* Add additional Docker container builds utilising a smaller OS footprint
* Resolve compiling with LDC on Alpine as musl lacks some standard interfaces
2019-02-17 06:13:19 +11:00
abraunegg 51615bff0b
Rework PR #373 to reduce needless logging in monitor mode (#376)
* Rework PR #373 to reduce needless logging in monitor mode
2019-02-15 07:03:15 +11:00
abraunegg 442e3dee16
Update README.md with newer Debian i386 build dependencies (#374)
* Update Debian i386 build dependencies
2019-02-13 12:08:09 +11:00
abraunegg ff822a9ab9
Update handling of incomplete OneDrive JSON responses (#375)
* Re-order handling of response JSON to ensure that 'id' key element is always checked for.
* Print errors when there is an issue with saveItem & articulate why
2019-02-13 05:54:06 +11:00
abraunegg b15948ed6a
Update README.md
Add minimum versions of DMD or LDC required to compile
2019-02-09 12:39:56 +11:00
Norbert Preining 493520ad71 Merge branch 'ngaro-docker' 2019-01-30 17:43:09 +09:00
Norbert Preining 1f955c82be
deal with unavailable dbus server (Issue: #365)
If the dbus server cannot be started or is not available, calling a notification
would result in an exception. During initialization check that we can get the
server information, and disable notifications if this is not possible.

Note: we change dnotify.d from the originally distributed version to include
a check for availability function.
2019-01-30 17:34:07 +09:00
Norbert Preining 8b8cf9c777
only use notifications/pkg-config if env var is defined and non-0 (#366) 2019-01-29 09:37:51 +09:00
Norbert Preining 1c6fd5df39 notification on incoming changes (#355)
* When notifications are enabled, display the number of OneDrive changes to process if any are found
* Add 'config' option 'min_notif_changes' for minimum number of changes to notify on, default = 5
* Update readme, manual page for new option
2019-01-29 04:54:03 +11:00
abraunegg 61c40c6cb1
Update changelog (#364)
* Fix codacy issues with changelog
2019-01-28 10:44:27 +11:00
Nikolas Garofil a61009bae1 New attempt to make codacy happy with bash install.sh 2019-01-26 02:21:29 +01:00
Nikolas Garofil 04c1346578 clarify local image with better tag 2019-01-26 02:07:08 +01:00
Nikolas Garofil 8d1818d5a2 Make codacy happy by running install.sh slightly different 2019-01-26 01:22:07 +01:00
Norbert Preining ebef1d88f3
fix codacy issues with Dockerfile 2019-01-26 09:02:37 +09:00
Nikolas Garofil 5d3d46b39b Merge in norbusan's Dockerfile-changes from PR 361 2019-01-25 15:18:00 +01:00
Nikolas Garofil 7719371cdd Merge in CaulyKan's documentation changes from PR 358 2019-01-25 15:03:40 +01:00
Nikolas Garofil b437b9607f Don't clone gitrep again for docker 2019-01-24 18:18:48 +01:00
Norbert Preining 10475c9d2c more codacy issues 2019-01-24 08:54:48 +09:00
Norbert Preining 27cc2c7922 fix codacy issues with Dockerfile 2019-01-23 23:07:58 +09:00
Cauly Kan 54f0279a5c fix wrong build instructions 2019-01-23 12:46:41 +08:00
Cauly Kan 1172432390 fix format issues in docker/readme.md 2019-01-23 09:20:52 +08:00
Cauly 14c36d6c91
format long lines and fix build script 2019-01-22 16:37:47 +08:00
Norbert Preining 16da1b4994
treat mv of new file as upload of mv target (Issue: #357) 2019-01-22 15:14:53 +09:00
Cauly af2ee9e540
typo fixes 2019-01-22 11:40:19 +08:00
Cauly 5372d8a9fa
add detailed instructions for docker README.md 2019-01-22 09:34:44 +08:00
Cauly 76803dc3d1
add detailed instructions for docker README.md 2019-01-22 09:31:57 +08:00
abraunegg 7532c9d8cc
Update handling of --get-O365-drive-id for multi matching (#354)
* Update handling of --get-O365-drive-id to print out all 'site names' that match the explicit search entry rather than just the last match
* Add webUrl for site to output so that the 'right' site drive_id can be identified
* Update O365 readme with updated output
2019-01-19 13:01:41 +11:00
abraunegg c27ff936fb
Resolve build warning & support CentOS 6.x for installation (Issue #350) (#353)
* Support install on CentOS / RHEL 6.x
* Support uninstall on CentOS / RHEL 6.x
* Add /usr/local/bin/ to search path when starting init.d service
* Fix dmd-2.084.0 deprecation warning: loop index implicitly converted from size_t to int
* Update readme based on CentOS 6 / RHEL 6 additional dependencies
* Resolve warnings about "bashisms" in init.d script (Issue #349) - fixed here as we are updating the init file already, rather than have multiple PR's
2019-01-19 13:01:01 +11:00
abraunegg 83cc2e419b
Add business retention policy handler (Issue #338)
* When OneDrive Business is configured with Retention Policies, attempts to delete a 'non empty' folder results in an an error response. Correctly handle the error response to print a warning message that OneDrive content must be manually deleted. 

**Note:** A future version of this client will handle the removal of 'non empty' folders when Retention Policies are enabled.
2019-01-19 12:59:39 +11:00
abraunegg 6959fe86ae
Update release files for 2.2.5 (#345)
* Update release files for 2.2.5
2019-01-17 05:45:26 +11:00
abraunegg c91dcc3e49
Add handling for JSON response error when OneDrive API returns a 404 due to API regression (#340)
* Update sync.d to handle OneDrive API Regression & provide details on workaround
2019-01-16 20:14:55 +11:00
abraunegg 77b32b6a5e
Update lock.yml
Change lockbot from 7 to 30 days
2019-01-16 07:24:58 +11:00
abraunegg 1d902a5beb
Handle Item not found exception when unable to query OneDrive 'root' for changes (#336)
* Add a 404 error handler when OneDrive cannot query what changes are available for a particular 'root' folder id
* Add additional verbose debug logging to assist in the future
* Change to not throw an exception when OneDrive cannot query what changes are available for a particular 'root' folder - rather display some meaningful details instead of crashing the application
* As we know the actual 'items.sqlite3' location, display that as the file to remove rather than a 'generic' message as this is more helpful
2019-01-11 05:31:10 +11:00
Norbert Preining d527b7ef26
Makefile: support building with ldc2 and usage of pkg-config for lib finding (#334)
* ldc2 support
the pragma versions passed to the compiler need an additional `-d`
prefix in case of ldc2. Add it if the compiler component looks like
ldc2.

* pkg-config support
By passing `PKGCONFIG=1` to the make call libraries are searched via
`pkg-config` instead of hard-coded values.
2019-01-07 11:03:47 +09:00