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

Bug: OneDrive Business | SharePoint regression in handling uploading new and modified content to OneDrive Business and SharePoint #3020

Closed
abraunegg opened this issue Nov 30, 2024 · 4 comments · Fixed by #3032
Labels
Bug Something isn't working Fixed Regression
Milestone

Comments

@abraunegg
Copy link
Owner

abraunegg commented Nov 30, 2024

Describe the bug

Regression from v2.4.25

  • OneDrive Business | SharePoint not adhering to uploading data via UploadSession resource
  • Creates multiple versions post upload (potentially a side effect of the above point)
  • These multiple versions count towards a users quota

Operating System Details

N/A

Client Installation Method

From Source

OneDrive Account Type

Business | Office365

What is your OneDrive Application Version

v2.5.3

What is your OneDrive Application Configuration

N/A

What is your 'curl' version

N/A

Where is your 'sync_dir' located

Local

What are all your system 'mount points'

N/A

What are all your local file system partition types

N/A

How do you use 'onedrive'

N/A

Steps to reproduce the behaviour

  • Upload Microsoft Word Document > 4Mb
    • Should use session upload
  • Upload Microsoft Word Document < 4Mb
    • Should use session upload - currently does not

Complete Verbose Log Output

N/A

Screenshots

N/A

Other Log Information or Details

N/A

Additional context

Investigation post discussion here: #2803

@abraunegg abraunegg added Bug Something isn't working Regression In Progress Currently being worked on labels Nov 30, 2024
@abraunegg abraunegg added this to the v2.5.4 milestone Nov 30, 2024
@abraunegg
Copy link
Owner Author

current master - upload modified file < 4mb - online history before upload

image

Initial version created by uploading file via web

current master - upload modified file < 4mb - online history post upload

Reading configuration file: /home/alex/.config/onedrive/config
Configuration file successfully loaded
Using IPv4 and IPv6 (if configured) for all network operations
Attempting to contact Microsoft OneDrive Login Service
Successfully reached Microsoft OneDrive Login Service
Configuring Global Azure AD Endpoints
Fetching items from the OneDrive API for Drive ID: b!6YStAVcRrkaXaJQ7jj2CWfQyuny4Y1ROgq7SUuWfQT9l3Nzwzg_8Roub8Te9E-XZ .. 
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 ..................................... 
Changed local items to upload to Microsoft OneDrive: 1
Uploading modified file: file_under_4Mb/no_download_access.docx ... done
WARNING: Online file integrity failure for: file_under_4Mb/no_download_access.docx
To disable the integrity checking of uploaded files use --disable-upload-validation
Scanning the local file system 'OneDrive_100K_Files' for new data to upload ........................... 
Performing a last examination of the most recent online data within Microsoft OneDrive to complete the reconciliation process
Fetching items from the OneDrive API for Drive ID: b!6YStAVcRrkaXaJQ7jj2CWfQyuny4Y1ROgq7SUuWfQT9l3Nzwzg_8Roub8Te9E-XZ . 
Processing 2 applicable changes and items received from Microsoft OneDrive . 

Sync with Microsoft OneDrive is complete
Attempting to perform a database vacuum to optimise database
Database vacuum is complete

image

2 x versions ... this is NOT correct ........ (BUG)

@abraunegg
Copy link
Owner Author

@NovaPixell
Regarding your comments and feedback in #2803 I have created this issue ticket and the following PR below.

What this PR should do is no longer just blindly create a new version of a file when uploaded (new or modified), and aligns to how v2.4.x codebase operated.

Please can you test the PR below.

First install all the require platform dependencies to build the client on your respective platforms. Please read https://github.com/abraunegg/onedrive/blob/master/docs/install.md#building-from-source---high-level-requirements and then follow correctly for your platform.

Once this is done, to clone the PR to resolve your issue, you can use a script like the following:

#!/bin/bash

PR=3032

rm -rf ./onedrive-pr${PR}
git clone https://github.com/abraunegg/onedrive.git onedrive-pr${PR}
cd onedrive-pr${PR}
git fetch origin pull/${PR}/head:pr${PR}
git checkout pr${PR}

# Configure and Build
./configure --enable-debug --enable-notifications; make clean; make;
./onedrive --version

This script will create a local folder called onedrive-pr3032 with the PR version.

To run the PR, you need to run the client from the PR build directory:

./onedrive <any other options needed>

To install the PR, you will need to perform sudo make install to install the PR version to your system.

When running the PR, your version should be: onedrive v2.5.3-21-gacc254f or greater.

@abraunegg
Copy link
Owner Author

@NovaPixell

Have you been able to look at this issue and/or the associated PR to resolve the 'version' creation issue ?

@abraunegg abraunegg changed the title Bug: OneDrive Business | SharePoint not adhering to uploading data via UploadSession resource Bug: OneDrive Business | SharePoint regression in handling uploading new and modified content to OneDrive Business and SharePoint Dec 9, 2024
@abraunegg
Copy link
Owner Author

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Repository owner locked as resolved and limited conversation to collaborators Dec 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working Fixed Regression
Projects
None yet
1 participant