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

Document Sets are intermittently treated as "files" #57

Open
nicolasiscoding opened this issue Sep 27, 2023 · 4 comments
Open

Document Sets are intermittently treated as "files" #57

nicolasiscoding opened this issue Sep 27, 2023 · 4 comments

Comments

@nicolasiscoding
Copy link

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?

@nicolasiscoding
Copy link
Author

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

@nicolasiscoding
Copy link
Author

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
Copy link
Collaborator

JCrew0 commented Jan 3, 2024

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!

@nicolasiscoding
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants