pnp / pnp/pnpframework

File not Found error thrown after creating Document Set with space in the name

Open
#849 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

Hi,

We have found an issue that occurs when attempting to create a Document Set when there is a space in the document set name. The document set is successfully created, but operations that use the document set then fail with a File Not Found Error:

image

Replacing the CreateDocumentSet call with the relevant source code and debugging I can see that a call to GetFolderByServerRelativeURL is made but the URL has spaces encoded as %20

image

As a trivial test to confirm this is the issue I replaced the %20 sequences with spaces and the file uploaded successfully

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Trace the CreateDocumentSet flow and the GetFolderByServerRelativeURL call to find where the document set name becomes a server-relative URL. Reproduce the issue with a space in the name, then verify that subsequent file operations succeed without a File Not Found error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.