Skip to content

FilePicker: unable to browse through organization assets library when located on root site #1784

Open
@jbolliet-mozzaik365

Description

@jbolliet-mozzaik365

Category

[ ] Enhancement

[X] Bug

[ ] Question

Version

Please specify what version of the library you are using: [3.17.0]

Expected / Desired Behavior / Question

I have an organization assets library on the root site of my tenant.
I use the FilePicker component to browse inside this specific library via the relevant option.

Observed Behavior

When I select my organization assets library on root site, I have an infinite loading:
image
(sorry for the french texts).

The error is:
image

I think this is because of this following request to get the items of my library:
https://***.sharepoint.com/sites/my-site/_api/SP.List.GetListDataAsStream?listFullUrl=%27https://***.sharepoint.com//%27&RootFolder=/Org%20Assets

We can see a double slash after .sharepoint.com: //

Steps to Reproduce

  1. In PowerShell, specify an organization assets library located on the root site of the tenant
  2. Add a FilePicker component to your webpart
  3. Browse inside the option "Your organization" (as I am french, I don't know the correct translated text for the option).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions