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

Max Path Name limit - increased to 400 #6

Closed
Abasz opened this issue May 24, 2018 · 3 comments
Closed

Max Path Name limit - increased to 400 #6

Abasz opened this issue May 24, 2018 · 3 comments
Labels
Bug Something isn't working Fixed OneDrive Business

Comments

@Abasz
Copy link

Abasz commented May 24, 2018

Hi,

In sync.d the maxPathLenght is set to 256 for onedrive business. However, this was increased about a year ago to 400 charactres.

Please see the news below
https://techcommunity.microsoft.com/t5/SharePoint-Blog/New-support-for-and-in-SharePoint-Online-and-OneDrive-for/ba-p/60357

Can you change the limit please?

Thanks
Abász

@abraunegg
Copy link
Owner

The 256 limit was based on this comment:

OneDrive/onedrive-api-docs#443 (comment)

It appears that the KB referenced was recently updated:

https://support.microsoft.com/en-us/help/3125202/restrictions-and-limitations-when-you-sync-files-and-folders

Will have to regression test this to ensure the MS Graph behaves properly for Business Accounts

@Abasz
Copy link
Author

Abasz commented May 24, 2018

Hi, I changed the code locally prior to compiling for my setup (maxPathLengh constant) to 400 and works. Also I removed the naming restriction for # and % signs from util. and works fine with my business account.

@abraunegg abraunegg added Bug Something isn't working OneDrive Business labels May 24, 2018
@lock
Copy link

lock bot commented Jan 6, 2019

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

@lock lock bot locked and limited conversation to collaborators Jan 6, 2019
AndrShikov pushed a commit to AndrShikov/onedrive that referenced this issue Feb 27, 2023
* Resolve abraunegg/onedrive#6
* Update OneDrive Business path length to 400 characters
* Update allowed characters for path and file names
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working Fixed OneDrive Business
Projects
None yet
Development

No branches or pull requests

2 participants