Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bug: sync_list does not traverse business shared directories #3003

@nicokist

Description

@nicokist

Describe the bug

My reading of the documentation is that if I have the following sync_list file:

*.xlsx
*.xlsm

I should expect it to download "Business_shared_folder/test.xlsx" and Business_shared_folder/subfolder/test2.xlsx; however, instead I get the following message:

Skipping shared folder shortcut - excluded by sync_list config

This can be resolved by removing sync_list or putting 'Business_shared_folder' into the sync list, however then all files in Business_shared_folder, including those with different extensions, are downloaded.

I have also tried the following sync_list file:

./Business_shared_folder/*.xlsx

Which I would expect to work, however that also leads to the message 'Skipping shared folder shortcut - excluded by sync_list config'.

I am on the latest v2.5.3-8-g5d45e24, running inside Docker.

Link to some earlier discussion: #3000

Operating System Details

Docker on Ubuntu

Client Installation Method

From Distribution Package

OneDrive Account Type

Business | Office365

What is your OneDrive Application Version

v2.5.3-8-g5d45e24

What is your OneDrive Application Configuration

download_only = "true"  
sync_business_shared_items = "true"
cleanup_local_files= "true"
disable_download_validation= "true"
sync_dir = "/onedrive/data"

What is your 'curl' version

Included in Docker package

Where is your 'sync_dir' located

Local

What are all your system 'mount points'

NA

What are all your local file system partition types

NA

How do you use 'onedrive'

Only used by this client.

Steps to reproduce the behaviour

Sync_list:
./Business_shared_folder/*.xlsx

OR:
sync_list:
*.xlsx
*.xlsm

have the same result and do not sync the desired files nested deep inside these shared folders, but instead give the message: Skipping shared folder shortcut - excluded by sync_list config

Complete Verbose Log Output

The OneDrive API was initialised successfully
Opening the item database ...                                                                                                                                                                     
                                                                                                 
WARNING: Application has been configured to cleanup local files that are not present online.     
WARNING: Local data loss MAY occur in this scenario if you are expecting data to remain archived locally.         
                                                                                                                                                                                                  
Application Version:  onedrive v2.5.3-8-g5d45e24                                                                                                                                                  
Account Type:         business                                                                   
Default Drive ID:     CENSORED
Default Root ID:      CESNORED                                         
Remaining Free Space: 1024.00 GB (1099509536392 bytes)                                                                                                                                            
Sync Engine Initialised with new Onedrive API instance                                                                                                                                            
All application operations will be performed in the configured local 'sync_dir' directory: /onedrive/data                                                                                         
OneDrive synchronisation interval (seconds): 300                                                 
Attempting to contact Microsoft OneDrive Login Service                                                                                                                                            
Successfully reached Microsoft OneDrive Login Service                                                                                                                                             
Starting a sync with Microsoft OneDrive                                                                                                                                                           
Generating a /delta response from the OneDrive API from this Item ID: CENSORED
Adding OneDrive folder details for processing                                                    
Adding 15 OneDrive items for processing from the OneDrive 'root' Folder                                                                                                                           
Skipping shared folder shortcut - excluded by sync_list config: ./CENSORED                                                                                                             
Skipping shared folder shortcut - excluded by sync_list config: ./CENSORED                                                                                                             
Skipping shared folder shortcut - excluded by sync_list config: ./CENSORED                                                                                                             
Skipping shared folder shortcut - excluded by sync_list config: ./CENSORED                                                                                                             
Skipping shared folder shortcut - excluded by sync_list config: ./CENSORED                                                                                                             
Skipping shared folder shortcut - excluded by sync_list config: ./CENSORED                                                                                                             
Skipping shared folder shortcut - excluded by sync_list config: ./CENSORED                                                                                                             
Skipping shared folder shortcut - excluded by sync_list config: ./CENSORED                                                                                                             
Finished processing self generated /delta JSON response from the OneDrive API                    
No changes or items that can be applied were discovered while processing the data received from Microsoft OneDrive                                                                                
Performing a database consistency and integrity check on locally stored data                     
Processing DB entries for this Drive ID: CENSORED
Processing: /onedrive/data                                                                       
The directory has not changed                                                                    
Sync with Microsoft OneDrive is complete

Screenshots

No response

Other Log Information or Details

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions