Skip to content

Local/Remote Path Conversion Bug #36

@4lm1ghty

Description

@4lm1ghty

Hello Christian,
since today one of my PCs updated to OneDrive Build 25.238.1204.0001 (64-bit). Since then the Path conversion for (business) OneDrive is broken. Microsoft seems to have updated their procedure once again.

Diagnostics
Win VBA7 x64


Accounts found: 1

Name: Business1
ID: cc315d33-cf49-41d0-8485-10969c2f6fe1
Has DAT: false
Is Valid: true


Providers found: 2

Base Mount: C:\Users\Username\OneDrive - CompanyName
Is Business: true
Is Main: true
Mount Point: C:\Users\Username\OneDrive - CompanyName
Sync ID: ffcb1524-1de5-4fd5-98ae-ff2929118adf
Web Path: https://companyname-my.sharepoint.com/personal/username_companyname_com/Documents/

Base Mount: C:\Users\Username\OneDrive - CompanyName
Is Business: true
Is Main: false
Mount Point: C:\Users\Username\OneDrive - CompanyName
Sync ID: ffcb1524-1de5-4fd5-98ae-ff2929118adf
Web Path: https://companyname.sharepoint.com/sites/Companyname/Freigegebene Dokumente/

Describe the bug
Since today one of my PCs updated to OneDrive Build 25.238.1204.0001 (64-bit). Since then the Path conversion for business OneDrive is broken.

The same file works on my other PC, which is still on Build 25.222.1112.0002 (64-bit)!

The Problem is that part of the path is not returned.

I tried:

Sub TestPathConversion()

Dim filePath As String: filePath = GetLocalPath("https://companyname.sharepoint.com/sites/CompanyName/Freigegebene Dokumente/Forms Umfragen/", True)
Debug.Print filePath -> C:\Users\Username\OneDrive - CompanyName\Forms Umfragen\
Debug.Print IsFolder(filePath) -> false

End sub

The proper path in the Win11 Explorer is "C:\Users\Username\OneDrive - CompanyName\Dokumente - CompanyName\Forms Umfragen"

The "\Dokumente - CompanyName" part is missing.

Additional context
from Issue #34 (maybe it helps):
C:\Users<username>\AppData\Local\Microsoft\OneDrive\settings\Business1:
ClientPolicy filename: "ClientPolicy_40cb0958609e42a7b6ad53ea647092bb_1d5d1675ef1c44f5afd345431be7ab18.ini"

from Clientpolicy file:
DavUrlNamespace: "https://companyname.sharepoint.com/sites/CompanyName/Freigegebene Dokumente/"

Best regards,
Moritz

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions