-
Notifications
You must be signed in to change notification settings - Fork 400
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Reporting an Issue or Missing Feature
Set-PnPFileCheckedIn cmdlet fails to check in files when the file path contains %20
Problem
The Set-PnPFileCheckedIn cmdlet fails to check in files when the file path contains "%20". Instead of processing the file, it returns the message:
The file /sites/test/Shared Documents/Test 1231/test (version 1).xlsx does not exist.
- Actual file path:
/sites/test/Shared Documents/Test %20 1231/test (version 1).xlsx - The intended path contains %20.
- When the file path is specified with "%20" encoded for spaces, the cmdlet throws a file not found error.
- This makes it impossible to check in files with spaces in their names using encoded URLs.
Expected behavior
Set-PnPFileCheckedInshould handle file paths that include "%20" and successfully check in such files.
Steps to reproduce behavior
- Attempt to check in a file with a path containing %20 :
Set-PnPFileCheckedIn -Url "/sites/test/Shared Documents/Test %20 1231/test (version 1).xlsx"
- Observe the error message:
The file /sites/test/Shared Documents/Test 1231/test (version 1).xlsx does not exist.
What is the version of the Cmdlet module you are running?
3.1.0
Which operating system/environment are you running PnP PowerShell on?
- Windows
- Linux
- MacOS
- Azure Cloud Shell
- Azure Functions
- Other : please specify
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working