pnp / PnP-Sites-Core

Microsoft 365 Dev PnP Core component (.NET) targeted for increasing developer productivity with CSOM based solutions.
Other
415 stars 642 forks source link

Provisioning Page Layouts with pnp:File , unexpected Overwrite="false" behaviour #993

Open jquintozamora opened 7 years ago

jquintozamora commented 7 years ago

Which PnP repository should you use to report the issue?

Please navigate to the appropriate repository by clicking on the link below and create your issue there. You can delete this section after you have navigated to the correct repository.

Category

[X ] Bug [ ] Enhancement

Environment

[X ] Office 365 / SharePoint Online [ ] SharePoint 2016 [ ] SharePoint 2013

Expected or Desired Behavior

Using pnp:File to deploy Page Layouts if I set Overwrite="false" then I expect PnP not updating properties and webparts included.

Observed Behavior

Even If I set Overwrite="false", webparts inside pnp:File will be provisioned, creating new one.

Steps to Reproduce

jansenbe commented 7 years ago

Hi @jquintozamora ,

I inspected the code and I can confirm you're right about this. The overwrite flag is only respected in case of uploading the file but not for "manipulating" the file afterwards. I've marked this one as bug and we'll process this one in the near future. Thanks for reporting this.

LeopoldLerch commented 7 years ago

This is an issue for our project too. Is there a solution in near future or do we have to search for another way to provisioun our sites?