Commit graph

1,635 commits

Author SHA1 Message Date
abraunegg
b5bbf4f292
Release files for 2.5.9 (#3517) v2.5.9
* Release files for 2.5.9
2025-11-06 11:00:35 +11:00
abraunegg
7bb509c749
Fix Bug #3512: Unexpected deletion of empty nested folders during first sync with 'sync_list' (#3513)
* Fix unexpected deletion of empty nested folders during first sync with sync_list
* Add missing line breaks in usage.md
2025-11-06 10:39:44 +11:00
abraunegg
40cba66c31
Fix Bug #3514: Fix very high CPU & Memory utilization with 2.5.8 when using --upload-only (#3515)
* When using --upload-only , the inbuilt WebSocket process is disabled and not used, thus, there is a spinlock that needs to be taken care of when using --upload-only
2025-11-06 05:09:26 +11:00
abraunegg
529fb4d85e
Release files for 2.5.8 (#3511) v2.5.8
* Release files for 2.5.8
2025-11-05 11:35:04 +11:00
abraunegg
3082e7a4bd
Update Documentation (#3510)
* Update Documentation
2025-11-05 10:35:42 +11:00
abraunegg
2fdc3a6591
Handle WebSocket 'echo' of local change (#3509)
* When using WebSockets to listen for remote change, a local change will trigger an 'echo' of that local change, which we need to debounce if this signal is received within a short window
2025-11-04 14:27:23 +11:00
abraunegg
8cfbffa24a
Fix the fetching of maximum open files to be more POSIX compliant (#3508)
* Fix the fetching of maximum open files to be more POSIX compliant
2025-11-04 10:09:56 +11:00
abraunegg
40e0ca4462
Implement Desktop Manager Integration for GNOME and KDE (#3500)
Implement full “Display Manager Integration” support for both GNOME and KDE desktop environments. This new feature allows the OneDrive Client for Linux to detect the active desktop session and automatically:

* Register the configured sync_dir as a “special place” or sidebar entry within the file manager (Nautilus on GNOME; Dolphin on KDE).
* Apply a custom “onedrive” folder icon to the synchronisation directory when the installed icon theme supports it.
* Cleanly install and uninstall required resources (icons, bookmarks, file manager integration) via the Makefile’s install and uninstall targets, thereby supporting system-wide installations, packaging workflows, and per-user installs.
* Introduce a new configuration option display_manager_integration (boolean) to enable or disable this integration behaviour at runtime.
* Update documentation and usage guidance to clearly explain what “Display Manager Integration” means, what this client implements (sidebar entry + icon) and what features remain out-of-scope (context menus, overlay badges, tray icons).
* Ensure safe, idempotent integration logic for both GNOME and KDE (bookmark manipulation, icon theme detection, cache refresh) with fallbacks and minimal dependencies.

With this merge, users installing via make install or system packages will benefit from enhanced desktop usability: the OneDrive folder appears visibly and intuitively within their standard file manager sidebar, making access and identification simpler. At the same time, the core sync engine remains focused on reliable file synchronisation, with the desktop integration layer remaining optional and disabled by default unless explicitly enabled via configuration.
2025-11-03 14:26:49 +11:00
abraunegg
defada7daf
Update Documentation for v2.5.8 (#3507)
* Update Documentation for v2.5.8 release
2025-11-03 10:31:14 +11:00
abraunegg
382437922a
Fix Bug #3501: When using --dry-run use tracked renamed directories (#3503)
* When using --dry-run use tracked renamed directories to avoid falsely indicating local data is new and uploading as new data
* Ensure comparison of renamed paths is consistent
2025-11-01 04:42:59 +11:00
abraunegg
bd94f821b7
Fix Bug #3501: If using 'sync_list' only add new JSON items early (#3505)
* When using 'sync_list' and renaming online entries, only update the local database if the provided JSON is not in the database already to allow applyPotentiallyChangedItem() to operate as expected
2025-10-31 09:32:37 +11:00
abraunegg
1e48e42363
Implement FR #3491: Add ONEDRIVE_THREADS Docker option (#3494)
* Add Docker environment variable 'ONEDRIVE_THREADS' to control the value for the number of worker threads used for parallel upload and download operations.
2025-10-28 05:55:08 +11:00
abraunegg
e1cf452ad9
Update ubuntu-package-install.md (#3496)
* Update Step 1 to be clearer
2025-10-25 12:11:16 +11:00
abraunegg
89aed84bb2
Update checkJSONAgainstClientSideFiltering() to avoid multiple calls to computeItemPath() (#3489)
* Update checkJSONAgainstClientSideFiltering() to avoid multiple calls to computeItemPath()
2025-10-24 08:30:27 +11:00
Eduard Abdullin
5458660faf
Add support for AlmaLinux (#3485)
* Add support for AlmaLinux

---------------------
Signed-off-by: eabdullin <ed.abdullin.1@gmail.com>
2025-10-23 05:58:21 +11:00
abraunegg
6aa9d88799
Update how the file path is computed when there are 'skip_dir' entries (#3484)
* Update how the file path is computed when there are 'skip_dir' entries, so that the client is passing in a valid file path for 'skip_dir' evaluation
2025-10-20 10:29:58 +11:00
abraunegg
c7a96a6640
Fix Bug #3475: Fix Shared Folder data being deleted due to 'skip_dir' entry of '.*' (#3476)
* Add missing element of shared folder DB tie values to idsFaked when using --dry-run
* Ensure that bad entries of '.*' are not added for 'skip_dir' to align to 'skip_file'
* Update application messaging on what configuration option to use to skip .files and .folders
2025-10-20 10:22:34 +11:00
Daniel
a2d1a7cd49
Fix Bug #3479: Fix missing user information when syncing shared files (#3483)
* fix: database inconsistency due to unassigned variable

* fix: more debug logging, setting sharedByFolderName to Email as fallback

---------

Co-authored-by: Daniel Schiffner <d.schiffner@dipf.de>
Co-authored-by: abraunegg <alex.braunegg@gmail.com>
2025-10-19 06:28:09 +11:00
abraunegg
c15a9e7b29
Fix Bug #3478: Fix application crash after deleting file locally (#3481)
* Fix application crash after deleting file locally by removing a TOCTTOU (Time-of-check to time-of-use) race condition when deleting a file.
* Improve inotify removal messaging when exiting application to avoid confusion
2025-10-18 06:06:12 +11:00
abraunegg
46ec991995
Fix WebSocket connection failure on libcurl 8.12.x by forcing HTTP/1.1 and disabling ALPN/NPN (#3482)
Newer libcurl releases (8.12.x and above) default to HTTP/2 via ALPN, causing the WebSocket RFC6455 handshake to fail with "code:3, message: Bad request".

This change forces HTTP/1.1 and disables ALPN/NPN on WebSocket connections, restoring correct 101 Switching Protocols behaviour.
2025-10-17 20:50:20 +11:00
abraunegg
2f339c5663
Implement FR #3435: Add option to remove source folders (#3473)
* Add option to remove source folders when using --upload-only --remove-source-files
* Parental path will only be removed if path is empty - that is, no other folders or files present
2025-10-14 06:47:51 +11:00
abraunegg
42f7ad95e8
Update readme.md (#3470)
* Re-order feature functionality
2025-10-11 08:42:00 +11:00
Aleix Mariné-Tena
d9e00ee63c
Update docker.md (#3467)
* Document the correct ways to customise runtime behaviour

---------

Co-authored-by: abraunegg <alex.braunegg@gmail.com>
2025-10-10 14:34:14 +11:00
Emily Mabrey
f27874a05a
Fix config example for max_curl_idle (#3469)
* Fix incorrect example for max_curl_idle using monitor_fullscan_frequency
2025-10-10 14:16:48 +11:00
abraunegg
35e10ea8e6
Fix Bug #3463: Force DNS Timeout when forcing a libcurl fresh connection (#3468)
* Force DNS Timeout when forcing a libcurl fresh connection which will force DNS resolution as stale cache internally in curl is not being released
* Fix that 'online' state is correctly set if Internet access is not available at startup when using --monitor
2025-10-10 13:55:31 +11:00
abraunegg
18d267912e
Implement FR #3364: Add --download-file feature (#3459)
* Add feature request --download-file to download a single file based on the online path
2025-10-07 18:07:05 +11:00
abraunegg
10048d8bca
Implement FR #2360: Add websocket notification support (#3413)
* Implement FR #2360: Add websocket notification support
2025-10-05 07:09:27 +11:00
abraunegg
566e4feeb0
Implement FR #3416: Dotfiles in sync_list should be synced even when skip_dotfiles = "true" (#3456)
* Add feature request to sync dotfiles in sync_list should be synced even when skip_dotfiles = "true"
2025-10-04 19:55:59 +10:00
abraunegg
f4cb8ca0aa
Update Client Architecture Documentation: Add details around how the client processes the online state (#3458)
* Add new sections to documentation around how the client processes the online state
2025-10-04 07:35:08 +10:00
abraunegg
5d11ea64ed
Fix Bug #3452: 'use_intune_sso' and 'use_device_auth' cannot be used together (#3453)
* Add operational conflict as 'use_intune_sso' and 'use_device_auth' cannot be used together
2025-09-29 17:28:51 +10:00
abraunegg
4f501b4aaf
Fix Bug #3451: Ensure driveId target is cached (#3454)
* Ensure that the driveId of a modified file that is to be uploaded to, exists in the cached array
2025-09-29 17:03:14 +10:00
abraunegg
0e76dc4ef8
Release files for 2.5.7 (#3447) v2.5.7
* Release files for 2.5.7
2025-09-23 10:15:08 +10:00
abraunegg
8711b9bc92
Update Debian Docker Build (#3446)
* Update Debian Docker Build - force to 'bookworm' for Debian 12
2025-09-23 08:14:09 +10:00
Andreas Dieckmann
bd80f62e65
Update documentation regarding own app registrations in Entra ID (#3436)
Added link to instructions for configuring app registration in national-cloud-deployments.md.

Co-authored-by: abraunegg <alex.braunegg@gmail.com>
2025-09-23 07:38:31 +10:00
abraunegg
0e1ac90840
Update safeBackup() function (#3445)
* Update safeBackup() function to ensure that the 'safeBackup' path addition is only added once
* Ensure that 'directories' are not renamed
2025-09-23 05:46:58 +10:00
abraunegg
b4179d1f27
Add Debian 13 details (#3424)
* Add Debian 13 details
2025-08-12 11:43:16 +10:00
abraunegg
7bc4266e05
Fix Bug #3414: Fix SharePoint Shared Library DB Tie creation (#3419)
* Fix SharePoint Shared Library DB Tie creation
2025-08-11 06:34:14 +10:00
abraunegg
37ba8ccb8e
Remove OpenSSL Test (#3420)
* Remove OpenSSL Test
2025-08-10 14:01:21 +10:00
abraunegg
52894d039c
Fix the computePath() to track the parental path anchor (#3417)
* Fix the computePath() to track the parental path anchor when a Shared Folder is relocated with a deeper path
2025-08-09 10:32:56 +10:00
abraunegg
5ee95b8e5c
Fix Bug #3410: Fix infinite loop after a failed network connection due to changed curl messaging (#3412)
* Curl 8.14.1 (or maybe earlier) has changed output messaging when curl exceptions are raised. This has caused the curl exception handling / retry handling to fail due to unable to match error log output.
* Add an exception fallback to ensure retry interval is enforced in case of unknown CurlException event
* Update calculateBackoff() function to prevent integer overflow
2025-08-06 05:23:36 +10:00
abraunegg
ed4880f9a6
Fix Bug #3407: Fix the support of relocated shared folders for OneDrive Personal (#3411)
* OneDrive Personal and Business supports the relocation of Shared Folder links to other folders. Fix the support of relocated shared folders for OneDrive Personal
2025-08-05 14:25:34 +10:00
abraunegg
bb71cc7e66
Fix Bug #3404: Fix crash when a file is created and deleted quickly (#3405)
* If the file is a very short lived file, and exists when an initial exists() check is done, but then is removed shortly thereafter, we need to catch this as a filesystem exception
2025-08-02 11:50:18 +10:00
abraunegg
5f14530745
Fix resumable downloads so that the curl engine offset point is reset post successful download (#3406)
* Ensure that post successful download, the resumable offset point is reset to avoid `HTTP request returned status code 416 (Requested Range Not Satisfiable)` if the offset point is not reset and curl engine reused for another download
2025-08-02 11:15:23 +10:00
abraunegg
b6fa6f8fe4
Fix issue of trying to create the root folder online (#3403)
* Fix issue of trying to create the root folder online (which is denoted by a '.') as this will never be possible.
2025-08-02 07:22:32 +10:00
abraunegg
298e8896b3
Update Debian Dockerfile to use upstream gosu (#3402)
* Update Debian Dockerfile to use upstream gosu version rather than Debian provided version
2025-08-01 12:08:44 +10:00
abraunegg
1321ae6306
Implement FR #2576: Implement resumable downloads (#3354)
* Implement resumable downloads (FR #2576) by using a state JSON file to track download progress and resuming the download from that offset, post validation of:
  * offset point is where the local point is at
  * hash has not changed online, thus file has not changed online in-between failed download
2025-08-01 06:33:33 +10:00
abraunegg
3e61081515
Clarify using .nosync in mounted directories (#3401)
* Clarify using .nosync in mounted directories
2025-07-31 06:41:16 +10:00
abraunegg
f89cfaa6fc
Update usage.md (#3399)
* Clarify caution message about using bad curl versions to remove ambiguity and clarify that other bugs, not related to HTTP/2 will still impact operational use of this client
2025-07-27 10:15:19 +10:00
abraunegg
4301c2ee67
Update wording within first steps for clarity (#3391)
* Update wording within first steps for clarity
2025-07-22 08:23:28 +10:00
abraunegg
b36fe0a47d
Update 'threads' usage notes (#3389)
* Update 'threads' usage notes to ensure clarity around this application configuration option
2025-07-21 08:07:09 +10:00