[BUG] Export-PnPPage doesn't create info about the client side page if certain section backgrounds are used.
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 904
- Forks
- 407
- Avg merge
- 9h 16m
- Merged PRs (30d)
- 10
Description
Reporting an Issue or Missing Feature
If you use Export-PnPPage on a page that has a section background other than the first few very simple ones the exported xml file does not include a client side page object.
Expected behavior
When you run Export-PnPPage -Force -Identity $PageName -Out $migrationFileLocation -PersistBrandingFiles you should generate a file that includes all of the info to restore the page using Invoke-PnPSiteTemplate -Path $migrationFileLocation
Actual behavior
You get an xml file without the clientsidepage section
Steps to reproduce behavior
Export-PnPPage -Force -Identity $PageName -Out $migrationFileLocation -PersistBrandingFiles
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with Export-PnPPage -Force -Identity $PageName -Out $migrationFileLocation -PersistBrandingFiles using a section background beyond the simplest options. Trace the Export-PnPPage path and compare the generated XML with the expected clientsidepage information; done means the exported file includes that section and can be restored with Invoke-PnPSiteTemplate.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100