Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OneDrive Client Version v2.5.0-alpha-4 #2563

Closed
wants to merge 77 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
4253318
Squashed commit of the following:
abraunegg Oct 18, 2023
35edb4c
Uplift to v2.5.0-alpha-3
abraunegg Oct 18, 2023
3a3c954
Add webhook functionality back in
abraunegg Oct 18, 2023
d653ff3
Update sync.d
abraunegg Oct 18, 2023
158a571
Update webhook feature with #2516 changes
abraunegg Oct 19, 2023
1449855
Update PR
abraunegg Oct 19, 2023
25015da
Update config.d
abraunegg Oct 19, 2023
2257f0b
Update PR
abraunegg Oct 19, 2023
d7ea797
Update sync.d
abraunegg Oct 19, 2023
77c294b
Implement --display-quota
abraunegg Oct 19, 2023
5fddd74
Update onedrive.d
abraunegg Oct 22, 2023
5dedd26
Update onedrive.d
abraunegg Oct 22, 2023
1d29ca0
Fix curl reusing socket (#2526)
JC-comp Oct 24, 2023
7ffbd98
Update podman.md
abraunegg Oct 24, 2023
9837e59
Update podman.md
abraunegg Oct 24, 2023
b9f20cd
Update main.d
abraunegg Oct 24, 2023
b3a1e4a
Add debug output to determine DB access threadsafe value
abraunegg Oct 24, 2023
58d17d5
Update main.d
abraunegg Oct 25, 2023
a22e4e8
Update podman.md
abraunegg Oct 25, 2023
6bb380c
Update main.d
abraunegg Oct 25, 2023
8979bf7
Update main.d
abraunegg Oct 26, 2023
16595ef
Update FR #2359
abraunegg Oct 26, 2023
4df36ff
Fix webhook application hang on exit
abraunegg Oct 27, 2023
3798e1a
Fix memory leak on exit when using webhooks
abraunegg Oct 28, 2023
673c0a2
Update config.d
abraunegg Oct 31, 2023
677f076
Update PR
abraunegg Nov 1, 2023
f7aa1e8
Update Podman and Docker documentation
abraunegg Nov 1, 2023
7fde0f4
Update docker.md
abraunegg Nov 1, 2023
5ba96d2
Update docker.md
abraunegg Nov 1, 2023
65cafa6
Update docker.md
abraunegg Nov 1, 2023
9fb5f5e
Add --dry-run parameter for Docker and Podman
abraunegg Nov 6, 2023
794bceb
Update ubuntu-package-install.md
abraunegg Nov 7, 2023
5af148f
Update ubuntu-package-install.md
abraunegg Nov 7, 2023
423bf07
Replace safeRename() with safeBackup()
abraunegg Nov 8, 2023
bcc77b7
Add resumable session uploads
abraunegg Nov 9, 2023
5fbfc49
Handle --upload-only & --remove-source-files for upload session resum…
abraunegg Nov 9, 2023
ad61f9f
Update ubuntu-package-install.md
abraunegg Nov 9, 2023
8eef9e1
Update docker.md
abraunegg Nov 15, 2023
93c8647
Update to v2.5.0-alpha-4
abraunegg Dec 1, 2023
253e68c
Update usage.md
abraunegg Dec 2, 2023
d244c60
Update usage.md
abraunegg Dec 6, 2023
8cf2255
Update install.md
abraunegg Dec 7, 2023
5150620
Cleaned up the removal of argument --operation-timeout
JKLeckr Dec 8, 2023
52b9a61
Merge branch 'pr/2560' into onedrive-v2.5.0-alpha-4
abraunegg Dec 8, 2023
2a3fdd9
Implement buffered logging
abraunegg Dec 8, 2023
76d7f11
Update util.d
abraunegg Dec 9, 2023
c399701
Update buffered logging
abraunegg Dec 17, 2023
f91b234
Remove progress.d
abraunegg Dec 20, 2023
a8534e0
Update buffered logging
abraunegg Dec 21, 2023
e9ce8e6
Update main.d
abraunegg Dec 21, 2023
a082ef4
Revert "Update main.d"
abraunegg Dec 21, 2023
bce3e7f
Update main.d
abraunegg Dec 21, 2023
8de323e
Update logging output
abraunegg Dec 21, 2023
6437b7e
Update PR
abraunegg Dec 21, 2023
86b8c36
Update sync.d
abraunegg Dec 22, 2023
2d9bdd1
Update OneDrive Personal Shared Folder Handling
abraunegg Dec 22, 2023
0d89599
Update docs
abraunegg Jan 2, 2024
d76cf9b
Update usage.md
abraunegg Jan 2, 2024
a7a9cdd
Add details regarding Debian Sid
abraunegg Jan 2, 2024
ad43792
Update functions
abraunegg Jan 2, 2024
38155ed
Update util.d
abraunegg Jan 3, 2024
9dc4e54
Update usage.md
abraunegg Jan 3, 2024
6fbf7fa
Update usage.md
abraunegg Jan 3, 2024
76706f5
Update readme.md
abraunegg Jan 6, 2024
b5d4d47
Update usage.md
abraunegg Jan 6, 2024
019deda
Update code
abraunegg Jan 6, 2024
6bca81e
Update usage.md
abraunegg Jan 6, 2024
abe4439
Update code
abraunegg Jan 6, 2024
8a7a850
Fix up large file handling output
abraunegg Jan 7, 2024
8f0a6d1
Update sync.d
abraunegg Jan 7, 2024
8a075a2
Update usage.md
abraunegg Jan 7, 2024
0b73ea6
Update usage.md
abraunegg Jan 7, 2024
d05a8f5
Update sync.d
abraunegg Jan 7, 2024
aa2ecdc
Remove CurlOption.ssl_verifypeer configuration
abraunegg Jan 7, 2024
e32d32e
Fix 'Unexpected end of input ..' output message
abraunegg Jan 8, 2024
06026c2
Update sync.d
abraunegg Jan 8, 2024
23f8e2d
Update onedrive.d
abraunegg Jan 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ endif
system_unit_files = contrib/systemd/onedrive@.service
user_unit_files = contrib/systemd/onedrive.service

DOCFILES = README.md config LICENSE CHANGELOG.md docs/Docker.md docs/INSTALL.md docs/SharePoint-Shared-Libraries.md docs/USAGE.md docs/BusinessSharedFolders.md docs/advanced-usage.md docs/application-security.md
DOCFILES = readme.md config LICENSE changelog.md docs/advanced-usage.md docs/application-config-options.md docs/application-security.md docs/business-shared-folders.md docs/docker.md docs/install.md docs/national-cloud-deployments.md docs/podman.md docs/privacy-policy.md docs/sharepoint-libraries.md docs/terms-of-service.md docs/ubuntu-package-install.md docs/usage.md

ifneq ("$(wildcard /etc/redhat-release)","")
RHEL = $(shell cat /etc/redhat-release | grep -E "(Red Hat Enterprise Linux|CentOS)" | wc -l)
Expand All @@ -66,19 +66,18 @@ RHEL_VERSION = 0
endif

SOURCES = \
src/main.d \
src/config.d \
src/itemdb.d \
src/log.d \
src/main.d \
src/monitor.d \
src/onedrive.d \
src/util.d \
src/qxor.d \
src/selective.d \
src/sqlite.d \
src/curlEngine.d \
src/onedrive.d \
src/sync.d \
src/upload.d \
src/util.d \
src/progress.d \
src/itemdb.d \
src/sqlite.d \
src/clientSideFiltering.d \
src/monitor.d \
src/arsd/cgi.d

ifeq ($(NOTIFICATIONS),yes)
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md → changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 2.5.0 - TBA


### Changed
* Renamed various documentation files to align with document content


## 2.4.25 - 2023-06-21
### Fixed
* Fixed that the application was reporting as v2.2.24 when in fact it was v2.4.24 (release tagging issue)
Expand Down
15 changes: 6 additions & 9 deletions config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# with their default values.
# All values need to be enclosed in quotes
# When changing a config option below, remove the '#' from the start of the line
# For explanations of all config options below see docs/USAGE.md or the man page.
# For explanations of all config options below see docs/usage.md or the man page.
#
# sync_dir = "~/OneDrive"
# skip_file = "~*|.~*|*.tmp"
Expand Down Expand Up @@ -40,22 +40,19 @@
# bypass_data_preservation = "false"
# azure_ad_endpoint = ""
# azure_tenant_id = "common"
# sync_business_shared_folders = "false"
# sync_business_shared_items = "false"
# sync_dir_permissions = "700"
# sync_file_permissions = "600"
# rate_limit = "131072"
# operation_timeout = "3600"
# webhook_enabled = "false"
# webhook_public_url = ""
# webhook_listening_host = ""
# webhook_listening_port = "8888"
# webhook_expiration_interval = "86400"
# webhook_renewal_interval = "43200"
# webhook_expiration_interval = "600"
# webhook_renewal_interval = "300"
# webhook_retry_interval = "60"
# space_reservation = "50"
# display_running_config = "false"
# read_only_auth_scope = "false"
# cleanup_local_files = "false"
# operation_timeout = "3600"
# dns_timeout = "60"
# connect_timeout = "10"
# data_timeout = "600"
# ip_protocol_version = "0"
20 changes: 10 additions & 10 deletions configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for onedrive v2.4.25.
# Generated by GNU Autoconf 2.69 for onedrive v2.5.0-alpha-4.
#
# Report bugs to <https://github.com/abraunegg/onedrive>.
#
Expand Down Expand Up @@ -579,8 +579,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='onedrive'
PACKAGE_TARNAME='onedrive'
PACKAGE_VERSION='v2.4.25'
PACKAGE_STRING='onedrive v2.4.25'
PACKAGE_VERSION='v2.5.0-alpha-4'
PACKAGE_STRING='onedrive v2.5.0-alpha-4'
PACKAGE_BUGREPORT='https://github.com/abraunegg/onedrive'
PACKAGE_URL=''

Expand Down Expand Up @@ -1219,7 +1219,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures onedrive v2.4.25 to adapt to many kinds of systems.
\`configure' configures onedrive v2.5.0-alpha-4 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

Expand Down Expand Up @@ -1280,7 +1280,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of onedrive v2.4.25:";;
short | recursive ) echo "Configuration of onedrive v2.5.0-alpha-4:";;
esac
cat <<\_ACEOF

Expand Down Expand Up @@ -1393,7 +1393,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
onedrive configure v2.4.25
onedrive configure v2.5.0-alpha-4
generated by GNU Autoconf 2.69

Copyright (C) 2012 Free Software Foundation, Inc.
Expand All @@ -1410,7 +1410,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by onedrive $as_me v2.4.25, which was
It was created by onedrive $as_me v2.5.0-alpha-4, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ $0 $@
Expand Down Expand Up @@ -2162,7 +2162,7 @@ fi



PACKAGE_DATE="June 2023"
PACKAGE_DATE="December 2023"



Expand Down Expand Up @@ -3159,7 +3159,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by onedrive $as_me v2.4.25, which was
This file was extended by onedrive $as_me v2.5.0-alpha-4, which was
generated by GNU Autoconf 2.69. Invocation command line was

CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -3212,7 +3212,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
onedrive config.status v2.4.25
onedrive config.status v2.5.0-alpha-4
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dnl - commit the changed files (configure.ac, configure)
dnl - tag the release

AC_PREREQ([2.69])
AC_INIT([onedrive],[v2.4.25], [https://github.com/abraunegg/onedrive], [onedrive])
AC_INIT([onedrive],[v2.5.0-alpha-4], [https://github.com/abraunegg/onedrive], [onedrive])
AC_CONFIG_SRCDIR([src/main.d])


Expand Down
4 changes: 2 additions & 2 deletions contrib/completions/complete.bash
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _onedrive()
prev=${COMP_WORDS[COMP_CWORD-1]}

options='--check-for-nomount --check-for-nosync --debug-https --disable-notifications --display-config --display-sync-status --download-only --disable-upload-validation --dry-run --enable-logging --force-http-1.1 --force-http-2 --get-file-link --local-first --logout -m --monitor --no-remote-delete --print-token --reauth --resync --skip-dot-files --skip-symlinks --synchronize --upload-only -v --verbose --version -h --help'
argopts='--create-directory --get-O365-drive-id --operation-timeout --remove-directory --single-directory --source-directory'
argopts='--create-directory --get-O365-drive-id --remove-directory --single-directory --source-directory'

# Loop on the arguments to manage conflicting options
for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )); do
Expand All @@ -34,7 +34,7 @@ _onedrive()
fi
return 0
;;
--create-directory|--get-O365-drive-id|--operation-timeout|--remove-directory|--single-directory|--source-directory)
--create-directory|--get-O365-drive-id|--remove-directory|--single-directory|--source-directory)
return 0
;;
*)
Expand Down
1 change: 0 additions & 1 deletion contrib/completions/complete.fish
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ complete -c onedrive -l local-first -d 'Synchronize from the local directory sou
complete -c onedrive -l logout -d 'Logout the current user.'
complete -c onedrive -n "not __fish_seen_subcommand_from --synchronize" -a "-m --monitor" -d 'Keep monitoring for local and remote changes.'
complete -c onedrive -l no-remote-delete -d 'Do not delete local file deletes from OneDrive when using --upload-only.'
complete -c onedrive -l operation-timeout -d 'Specify the maximum amount of time (in seconds) an operation is allowed to take.'
complete -c onedrive -l print-token -d 'Print the access token, useful for debugging.'
complete -c onedrive -l remote-directory -d 'Remove a directory on OneDrive - no sync will be performed.'
complete -c onedrive -l reauth -d 'Reauthenticate the client with OneDrive.'
Expand Down
1 change: 0 additions & 1 deletion contrib/completions/complete.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ all_opts=(
'--logout[Logout the current user]'
'(-m --monitor)'{-m,--monitor}'[Keep monitoring for local and remote changes]'
'--no-remote-delete[Do not delete local file deletes from OneDrive when using --upload-only]'
'--operation-timeout[Specify the maximum amount of time (in seconds) an operation is allowed to take.]:seconds:'
'--print-token[Print the access token, useful for debugging]'
'--reauth[Reauthenticate the client with OneDrive]'
'--resync[Forget the last saved state, perform a full sync]'
Expand Down
7 changes: 7 additions & 0 deletions contrib/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ if [ -n "${ONEDRIVE_SINGLE_DIRECTORY:=""}" ]; then
ARGS=(--single-directory \"${ONEDRIVE_SINGLE_DIRECTORY}\" ${ARGS[@]})
fi

# Tell client run in dry-run mode
if [ "${ONEDRIVE_DRYRUN:=0}" == "1" ]; then
echo "# We are running in dry-run mode"
echo "# Adding --dry-run"
ARGS=(--dry-run ${ARGS[@]})
fi

if [ ${#} -gt 0 ]; then
ARGS=("${@}")
fi
Expand Down
Loading