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

Feature Request: Support the syncing of individual business shared files #1300

Closed
justinabrahms opened this issue Feb 26, 2021 · 11 comments · Fixed by #2646
Closed

Feature Request: Support the syncing of individual business shared files #1300

justinabrahms opened this issue Feb 26, 2021 · 11 comments · Fixed by #2646

Comments

@justinabrahms
Copy link

Hi. Me from #1294 which got closed (whew! Quick turn around!)

Even if I create a file at ~/.config/onedrive/sync_list with my file name in it, it never gets pulled down.

I've tried this command:

onedrive --synchronize -v --resync 

The file I want is still seemingly excluded:

WARNING: Not syncing this OneDrive Business Shared File: File I Want.xlsx
OneDrive Business Shared File - Shared By:  Person ([email protected])

I want the file. It's not syncing. Even if I specify * as the entry in sync_list.

As best I can tell, it's being excluded in this line of code:

// log that this is not supported

This isn't the only file that's being excluded either. There are several.

WARNING: Not syncing this OneDrive Business Shared File: Tomato Press release_101519_cc.docx
OneDrive Business Shared File - Shared By:  Person1 ([email protected])
WARNING: Not syncing this OneDrive Business Shared File: Consolidated KPIs.pptx
OneDrive Business Shared File - Shared By:  Person2 ([email protected])
WARNING: Not syncing this OneDrive Business Shared File: Prework.pptx
OneDrive Business Shared File - Shared By:  Person3 ([email protected])

The only commonality seems to be that they are docs shared with me and they have spaces in the name.

@abraunegg
Copy link
Owner

@justinabrahms
The issue here is that the "Shared Business Folders" feature, is just that - for syncing business shared folders, shared with you - not individual files that have been shared with you.

Now why do you get this:

WARNING: Not syncing this OneDrive Business Shared File: Tomato Press release_101519_cc.docx
OneDrive Business Shared File - Shared By:  Person1 ([email protected])
WARNING: Not syncing this OneDrive Business Shared File: Consolidated KPIs.pptx
OneDrive Business Shared File - Shared By:  Person2 ([email protected])
WARNING: Not syncing this OneDrive Business Shared File: Prework.pptx
OneDrive Business Shared File - Shared By:  Person3 ([email protected])

This is because the 'SharedWithMe' API call returns all items shared. This client, because of the current feature, excludes files because of the way that this feature is implemented. Files were excluded because of pattern matching issues between various elements, and, to keep the feature in part in-sync with Personal Shared Folders.

Is there anyway to have the user share a specific folder with you - and you sync that folder rather than an individual file?

The only real way to support syncing business shared individual files at present would be to re-write the entire feature so that they are correctly supported with pattern matching between file / folder designations. This would also require a complete re-write of how the folders are stored and represented locally. This would also open up a whole host of other questions & issues - if you have a list of files, and someone shares that file with you, with the same name as someone else, what happens - conflict? overwrite? fail? something else?

Additionally, the OneDrive API (and Azure AD) is, at present, broken for when a file or folder is shared with you, from someone external to your organisation. The authentication process becomes null, thus, you cannot access the file or folder - until MS fix the API / Azure AD - that cannot be supported (see: #966)

@abraunegg abraunegg changed the title Still can't sync single files Feature Request: Support the syncing of individual business shared files Feb 26, 2021
@justinabrahms
Copy link
Author

justinabrahms commented Feb 26, 2021 via email

@ukreddy-erwin

This comment has been minimized.

@abraunegg

This comment has been minimized.

@rrodrigueznt

This comment was marked as off-topic.

@abraunegg

This comment was marked as off-topic.

@abraunegg abraunegg added this to the v2.5.x milestone Dec 6, 2022
Repository owner locked and limited conversation to collaborators Apr 5, 2023
@abraunegg abraunegg modified the milestones: v2.5.x, v2.5.0 Aug 1, 2023
@abraunegg abraunegg removed this from the v2.5.0 milestone Sep 21, 2023
@abraunegg

This comment was marked as outdated.

Repository owner unlocked this conversation Sep 21, 2023
@abraunegg abraunegg added the On Hold On Hold label Sep 21, 2023
@abraunegg abraunegg modified the milestones: v2.5.x, v2.5.0 Feb 20, 2024
@abraunegg abraunegg added In Progress Currently being worked on and removed Future Work - Planning Required On Hold On Hold labels Feb 21, 2024
@abraunegg abraunegg self-assigned this Feb 21, 2024
abraunegg added a commit that referenced this issue Feb 26, 2024
* Remove legacy & unused items for Shared Business Items
* Add option: --list-shared-items
* Add option: --sync-shared-files
@abraunegg
Copy link
Owner

abraunegg commented Mar 7, 2024

@justinabrahms , @AnthonyAnkrah

Firstly I apologise for this response is a long time in coming - however this Feature Request has now been completed.

Important: Before you do anything else ... please first read the updated documentation for OneDrive Business Shared Items: https://github.com/abraunegg/onedrive/blob/Implement-Feature-Request-1300/docs/business-shared-items.md

The entire feature has been re-written, how it is implemented has been changed - hopefully the documentation is clear enough on how to configure this feature going forward.

If you want to test the PR, please use the instructions below:

git clone https://github.com/abraunegg/onedrive.git
cd onedrive
git fetch origin pull/2646/head:pr2646
git checkout pr2646

All feedback - positive or negative (or something else) is highly appreciated.

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

./onedrive <any options needed>

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

When running the PR, your version should be: v2.5.0-alpha-5 GitHub version: v2.4.25-93-gfde6f86 or greater

@abraunegg abraunegg added PR Provided - Needs Testing and removed In Progress Currently being worked on labels Mar 7, 2024
@abraunegg
Copy link
Owner

@justinabrahms , @AnthonyAnkrah

Additionally, I want to roll this into 'alpha-5' , then create a 'beta' release :) so this is potentially the last major feature change before a v2.5.0 release.

All feedback , good or bad is highly welcome.

abraunegg added a commit that referenced this issue Mar 8, 2024
…usiness shared files (#2646)

* Implement Feature Request #1300 - Support the syncing of individual business shared files
@abraunegg
Copy link
Owner

Closing this as code has been merged into 'alpha-5' to allow continued work to progress 'alpha-5' to 'beta' status.

@abraunegg
Copy link
Owner

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 Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants