Closed nils-a closed 8 months ago
The PagesUtility contains code to find the "site pages" library. I would expect this code to find the "site pages".
PagesUtility
This code might fail or target the wrong library, for sites that have Viva connections created "Announcements" library.
The same or similar code was modified in https://github.com/pnp/pnpframework/pull/975/ and https://github.com/pnp/pnpcore/commit/0ea1c82c04342754a64881f5c6b01f8ba579efbf
I looked at the current version: https://github.com/pnp/powershell/blob/44827da6c9fb671104948778f39e8eab0e5b6442/src/Commands/Utilities/PagesUtility.cs#L30-L34
Hi @nils-a , have fixed this. It was used in Enable/Disable-PnPPageScheduling cmdlets. Will be available in tomorrow's nightly builds.
Thanks for raising the issue and sharing the fix with us.
Expected behavior
The
PagesUtility
contains code to find the "site pages" library. I would expect this code to find the "site pages".Actual behavior
This code might fail or target the wrong library, for sites that have Viva connections created "Announcements" library.
Steps to reproduce behavior
The same or similar code was modified in https://github.com/pnp/pnpframework/pull/975/ and https://github.com/pnp/pnpcore/commit/0ea1c82c04342754a64881f5c6b01f8ba579efbf
What is the version of the Cmdlet module you are running?
I looked at the current version: https://github.com/pnp/powershell/blob/44827da6c9fb671104948778f39e8eab0e5b6442/src/Commands/Utilities/PagesUtility.cs#L30-L34
Which operating system/environment are you running PnP PowerShell on?