pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
985 stars 665 forks source link

[BUG] Resolve-PnPFolder fails with the + character #3004

Open stevebeauge opened 3 years ago

stevebeauge commented 3 years ago

Reporting an Issue or Missing Feature

Resolve-PNPFolder try to get an existing folder before creating a new one. This fails when the folder contains +

Expected behavior

If a folder contains +, Resolve-PnPFolder should return it or create it if it's missing.

Actual behavior

Resolve-PnPFolder is able to create folder with +. But if the folder already exists, it fails.

The error message is:

Resolve-PnPFolder : Un fichier ou un dossier nommé https://mytenant.sharepoint.com/sites/mysite/Shared Documents/1+1 existe déjà.

(folder already exists)

Steps to reproduce behavior

Connect-PnPOnline -url https://mytenant.sharepoint.com/sites/mySite

Resolve-PnPFolder "Shared documents/1+1"
Resolve-PnPFolder "Shared documents/1+1"

First call to resolve-pnpfolder succeed.

Second fails.

Which version of the PnP-PowerShell Cmdlets are you using?

What is the version of the Cmdlet module you are running?

3.26.2010.0

How did you install the PnP-PowerShell Cmdlets?