Modernization: Asset transfer from images living in a sub site of a publishing portal in the root are not copied over

Created on 26 Sep 2019  路  5Comments  路  Source: pnp/modernization

Issue most likely is within EnsureAssetContextIfRequired

bug PageTransformationEngine

All 5 comments

@pkbullock : is this something you can have a look at? I'm aiming to get this fixed before the October drop as it's prevents image transfer from sub sites of a root site collection

I shall investigate and report back.

@jansenbe struggling to repro this, tried with SharePoint 2016, with the following:

  • Subsite in Publishing Portal - Page and Image in subsite
  • Main site with page, Sub-Site with Image

Both transformed OK. Do you have more info on the scenario? My tests might be wrong.

@pkbullock : I can repro this in my 2013 lab, key here is that it's for a page in a sub site of the root site collection pointing to an image that lives in the root site collection. Sub sites in other site collections work fine. Things fail because when we create the context to load the asset it's returning the context for the sub site and not for the root site hosting the asset.

Thx for the fix @pkbullock , just merged so closing the issue

Was this page helpful?
0 / 5 - 0 ratings