Update PR

* Update PR
This commit is contained in:
abraunegg 2023-08-27 14:22:06 +10:00
parent ce02fd8ce7
commit 1ac5d9f9d8
4 changed files with 45 additions and 5 deletions

View file

@ -2,6 +2,43 @@
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.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)
* Fixed that the running version obsolete flag (due to above issue) was causing a false flag as being obsolete
* Fixed that zero-byte files do not have a hash as reported by the OneDrive API thus should not generate an error message
### Updated
* Update to Debian Docker file to resolve Docker image Operating System reported vulnerabilities
* Update to Alpine Docker file to resolve Docker image Operating System reported vulnerabilities
* Update to Fedora Docker file to resolve Docker image Operating System reported vulnerabilities
* Updated documentation (various)
## 2.4.24 - 2023-06-20
### Fixed
* Fix for extra encoded quotation marks surrounding Docker environment variables
* Fix webhook subscription creation for SharePoint Libraries
* Fix that a HTTP 504 - Gateway Timeout causes local files to be deleted when using --download-only & --cleanup-local-files mode
* Fix that folders are renamed despite using --dry-run
* Fix deprecation warnings with dmd 2.103.0
* Fix error that the application is unable to perform a database vacuum: out of memory when exiting
### Removed
* Remove sha1 from being used by the client as this is being depreciated by Microsoft in July 2023
* Complete the removal of crc32 elements
### Added
* Added ONEDRIVE_SINGLE_DIRECTORY configuration capability to Docker
* Added --get-file-link shell completion
* Added configuration to allow HTTP session timeout(s) tuning via config (taken from v2.5.x)
### Updated
* Update to Debian Docker file to resolve Docker image Operating System reported vulnerabilities
* Update to Alpine Docker file to resolve Docker image Operating System reported vulnerabilities
* Update to Fedora Docker file to resolve Docker image Operating System reported vulnerabilities
* Updated cgi.d to commit 680003a - last upstream change before requiring `core.d` dependency requirement
* Updated documentation (various)
## 2.4.23 - 2023-01-06
### Fixed
* Fixed RHEL7, RHEL8 and RHEL9 Makefile and SPEC file compatibility
@ -994,4 +1031,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## 1.0.0 - 2017-07-14
### Added
* `--version` option
* `--version` option

View file

@ -438,7 +438,7 @@ int main(string[] cliArgs) {
filesystemMonitor.onFileChanged = delegate(string path) {
log.vlog("[M] Local file changed: ", path);
try {
syncEngineInstance.scanLocalFilesystemPathForNewData(path);
syncEngineInstance.scanLocalFilesystemPathForNewData(dirName(path));
} catch (CurlException e) {
log.vlog("Offline, cannot upload changed item!");
} catch(Exception e) {

View file

@ -403,6 +403,8 @@ final class Monitor {
remove(path);
cookieToPath.remove(cookie);
}
log.log("inotify events flushed");
}
}
}

View file

@ -1852,7 +1852,9 @@ class SyncEngine {
void displaySyncEngineDetails() {
// Display accountType, defaultDriveId, defaultRootId & remainingFreeSpace for verbose logging purposes
//log.vlog("Application version: ", strip(import("version")));
log.vlog("Application version: v2.5.0-alpha-0");
string tempVersion = "v2.5.0-alpha-0" ~ " GitHub version: " ~ strip(import("version"));
log.vlog("Application version: ", tempVersion);
log.vlog("Account Type: ", appConfig.accountType);
log.vlog("Default Drive ID: ", appConfig.defaultDriveId);
@ -4181,9 +4183,8 @@ class SyncEngine {
try {
// what item are we trying to delete?
log.vdebug("Attempting to delete this item id: ", itemToDelete.id, " from drive: ", itemToDelete.driveId);
// perform the delete via the default OneDrive API instance
oneDriveApiInstance.deleteById(itemToDelete.driveId, itemToDelete.id, itemToDelete.eTag);
oneDriveApiInstance.deleteById(itemToDelete.driveId, itemToDelete.id);
// Delete the reference in the local database
itemDB.deleteById(itemToDelete.driveId, itemToDelete.id);