OneDrive/samples

Document Sets are intermittently treated as "files"

nicolasiscoding opened this issue · 4 comments

Describe the bug
When reproducing a user's scenario on a screenshare, their Document Set is being seen as a file (can not click into it) and not a folder with a collection of documents.

When performing this in my personal SharePoint environment, the Document Set is treated as a folder and works fine.

When performing the network trace on the user's screens are and looking at the decoded URL (and prettified for debugging)

URL:

https://redactedname.sharepoint.com/_layouts/15/FilePicker.aspx?

Query Parameters ( decoded & beautified):

filePicker = {
    "sdk": "8.0",
    "entry": {
        "sharePoint": {
            "byPath": {
                "list": "https://redactedname.sharepoint.com/sites/redated site/redacted name/Forms/All Files.aspx"
            }
        }
    },
    "authentication": {},
    "messaging": {
        "origin": "https://app.redacted.com",
        "channelId": "42"
    },
    "selection": {
        "mode": "single"
    },
    "typesAndSources": {
        "mode": "files",
        "pivots": {
            "oneDrive": true,
            "recent": true,
            "sharedLibraries": true,
            "shared": true,
            "search": true
        },
        "filters": [".docx", "folder", "file", ".pptx"]
    }
} & needsAttentionView = 1 & id = /sites/redacted site/ redacted name & listurl = /sites/redacted site/ redacted name & viewid = ee99d9fa-4f53-4ddd-a50a-a97a6f6f4d90&p=2" ` `

I also noticed that the document set has a custom content type whereas mine does not.

Is there a reason why in my tenant I can click through the Document Set, but in theirs I can not? Could it be a scopes/permissions issue? Or the custom content type against my filters?

After further investigating with the client, this might be correlated to disabling the folder option (in some guides, they recommend this).

With this said, is there a way to query inside of docsets using this filepicker without changing this setting? This is still a pending issue

After reproing this without the sdk itself (which appears to be a link builder at the end of the day), we opened a ticket with Microsoft. The ticket has still not been triaged and for the time being we wrote our own (less featured) file picker using the graph API.

Hope to use this library again soon but for the time being, we are unable to use this with specific clients due to bugs on the file picker side.

JCrew0 commented

Hey @nicolasiscoding , I'm going through and looking at some of the older issues. Sorry this was never looked at. Did anyone ever address it outside of this thread? If not, I can try to take a look. Thanks!

Hi @JCrew0 , it hasn't been addressed and it's currently wading in a Microsoft support queue somewhere. We still aren't sure what's causing this because when we wrote our own file picker, the graph APIs are returning the file types as expected. It's something local to the tenant with respect to the file picker post redirect.