Skip to main content
deleted 19 characters in body
Source Link

We encountered a problem very similar to your question. We started experiencing the issue once upgrading to 10.3 and CLI 5.1.25. In our case, the problem was caused by using a relative file path in defaultModuleRelativeSerializationPath like ../../serialization in the project's sitecore.json file.

When using ser pkg create this causes the package to construct a corrupted file path for serialized roles within the package (zip) file. Thus the roles are interpreted as empty by ser pkg install, dropping all the roles afterward.

Package file opened with WINRAR to see file contents

Package file created opened with WINRAR to see file contents

The solution for us was not very straight forward since:

  • The construction with pkg create and install ran apparently stable for a long time.
  • You can override file path serialization on the module level, however, you cannot do that for roles.
  • Changing it in the root sitecore.json will cause issues for all modules.

We ended up adding a new sitecore.json config file to the project. In there correcting the defaultModuleRelativeSerializationPath to just "serialization" and moving the serialized roles into the folder where the actual module is located. Afterwards calling ser pkg installcreate with the extra --config parameter referencing the duplicated sitecore.json file for installingcreating an itempackage just that module containing thefor roles.

We encountered a problem very similar to your question. We started experiencing the issue once upgrading to 10.3 and CLI 5.1.25. In our case, the problem was caused by using a relative file path in defaultModuleRelativeSerializationPath like ../../serialization in the project's sitecore.json file.

When using ser pkg create this causes the package to construct a corrupted file path for serialized roles within the package (zip) file. Thus the roles are interpreted as empty by ser pkg install, dropping all the roles afterward.

Package file opened with WINRAR to see file contents

Package file created opened with WINRAR to see file contents

The solution for us was not very straight forward since:

  • The construction with pkg create and install ran apparently stable for a long time.
  • You can override file path serialization on the module level, however, you cannot do that for roles.
  • Changing it in the root sitecore.json will cause issues for all modules.

We ended up adding a new sitecore.json config file to the project. In there correcting the defaultModuleRelativeSerializationPath to just "serialization" and moving the serialized roles into the folder where the actual module is located. Afterwards calling ser pkg install with the extra --config parameter referencing the duplicated sitecore.json file for installing just that module containing the roles.

We encountered a problem very similar to your question. We started experiencing the issue once upgrading to 10.3 and CLI 5.1.25. In our case, the problem was caused by using a relative file path in defaultModuleRelativeSerializationPath like ../../serialization in the project's sitecore.json file.

When using ser pkg create this causes the package to construct a corrupted file path for serialized roles within the package (zip) file. Thus the roles are interpreted as empty by ser pkg install, dropping all the roles afterward.

Package file opened with WINRAR to see file contents

Package file opened with WINRAR to see file contents

The solution for us was not very straight forward since:

  • The construction with pkg create and install ran apparently stable for a long time.
  • You can override file path serialization on the module level, however, you cannot do that for roles.
  • Changing it in the root sitecore.json will cause issues for all modules.

We ended up adding a new sitecore.json config file to the project. In there correcting the defaultModuleRelativeSerializationPath to just "serialization" and moving the serialized roles into the folder where the actual module is located. Afterwards calling ser pkg create with the extra --config parameter referencing the duplicated sitecore.json file for creating an itempackage just for roles.

code formatting
Source Link
Anna Bastron
  • 2.1k
  • 1
  • 8
  • 26

We encountered a problem very similar to your question. We started experiencing the issue once upgrading to 10.3 and CLI 5.1.25. In our case, the problem was caused by using a relative file path in defaultModuleRelativeSerializationPath like ../../serialization in the project's sitecore.json file.

When using ser pkg createser pkg create this causes the package to construct a corruptcorrupted file path for serialized roles within the package (zip) file. Thus the roles are interpreted as empty by ser pkg installser pkg install, dropping all the roles afterward.

Package file opened with WINRAR to see file contents

Package file created opened with WINRAR to see file contents

The solution for us was not very straight forward since:

  • The construction with pkg createpkg create and installinstall ran apparently stable for a long time.
  • You can override file path serialization on the module level, however, you cannot do that for roles.
  • Changing it in the root sitecore.jsonsitecore.json will cause issues for all modules.

We ended up adding a new sitecore.jsonsitecore.json config file to the project. In there correcting the defaultModuleRelativeSerializationPathdefaultModuleRelativeSerializationPath to just "serialization" and moving the serialized roles into the folder where the actual module is located. Afterwards calling ser pkg installser pkg install with the extra --config parameter referencing the duplicated sitecore.jsonsitecore.json file for installing just that module containing the roles.

We encountered a problem very similar to your question. We started experiencing the issue once upgrading to 10.3 and CLI 5.1.25. In our case, the problem was caused by using a relative file path in defaultModuleRelativeSerializationPath like ../../serialization in the project's sitecore.json file.

When using ser pkg create this causes the package to construct a corrupt file path for serialized roles within the package (zip) file. Thus the roles are interpreted as empty by ser pkg install, dropping all the roles afterward.

Package file opened with WINRAR to see file contents

Package file created opened with WINRAR to see file contents

The solution for us was not very straight forward since:

  • The construction with pkg create and install ran apparently stable for a long time.
  • You can override file path serialization on the module level, however, you cannot do that for roles.
  • Changing it in the root sitecore.json will cause issues for all modules.

We ended up adding a new sitecore.json config file to the project. In there correcting the defaultModuleRelativeSerializationPath to just "serialization" and moving the serialized roles into the folder where the actual module is located. Afterwards calling ser pkg install with the extra --config parameter referencing the duplicated sitecore.json file for installing just that module containing the roles.

We encountered a problem very similar to your question. We started experiencing the issue once upgrading to 10.3 and CLI 5.1.25. In our case, the problem was caused by using a relative file path in defaultModuleRelativeSerializationPath like ../../serialization in the project's sitecore.json file.

When using ser pkg create this causes the package to construct a corrupted file path for serialized roles within the package (zip) file. Thus the roles are interpreted as empty by ser pkg install, dropping all the roles afterward.

Package file opened with WINRAR to see file contents

Package file created opened with WINRAR to see file contents

The solution for us was not very straight forward since:

  • The construction with pkg create and install ran apparently stable for a long time.
  • You can override file path serialization on the module level, however, you cannot do that for roles.
  • Changing it in the root sitecore.json will cause issues for all modules.

We ended up adding a new sitecore.json config file to the project. In there correcting the defaultModuleRelativeSerializationPath to just "serialization" and moving the serialized roles into the folder where the actual module is located. Afterwards calling ser pkg install with the extra --config parameter referencing the duplicated sitecore.json file for installing just that module containing the roles.

Fixed grammer and improved formatting.
Source Link
Sumit Helaiya
  • 3.2k
  • 2
  • 12
  • 23

We encountered a problem very similar to your question. We started experiencing the issue once upgrading to 10.3 and CLI 5.1.25. In our case, the problem was caused by using a relative file path in defaultModuleRelativeSerializationPathdefaultModuleRelativeSerializationPath like "../../serialization"../../serialization in the project's sitecore.jsonsitecore.json file.

When using ser pkg create this causes the package to construct a corrupt file path for serialized roles within the package (zip) file. Thus the roles beingare interpreted as empty by ser pkg install, dropping all the roles afterwardsafterward.

Package file opened with WINRAR to see file contents

Package file created opened with WINRAR to see file contents

The solution for us was not very straight forward since:

  • The construction with pkg create and install ran apparently stable for a long time.
  • You cáncan override file path serialization on the module level, however, you cannot do that for roles.
  • Changing it in the root sitecore.json will cause issues for all modules.

We ended opup adding a new sitecore.json config file to the project. In there correcting the defaultModuleRelativeSerializationPath to just "serialization" and moving the serialized roles into the folder where the actual module is located. Afterwards calling ser pkg install with the extra --config--config parameter referencing the duplicated sitecore.json file for installing just that module containing the roles.

We encountered a problem very similar to your question. We started experiencing the issue once upgrading to 10.3 and CLI 5.1.25. In our case the problem was caused by using a relative file path in defaultModuleRelativeSerializationPath like "../../serialization" in the project's sitecore.json file.

When using ser pkg create this causes the package to construct a corrupt file path for serialized roles within the package (zip) file. Thus the roles being interpreted as empty by ser pkg install, dropping all the roles afterwards.

Package file opened with WINRAR to see file contents

Package file created opened with WINRAR to see file contents

The solution for us was not very straight forward since:

  • The construction with pkg create and install ran apparently stable for a long time.
  • You cán override file path serialization on module level, however you cannot do that for roles.
  • Changing it in the root sitecore.json will cause issues for all modules.

We ended op adding a new sitecore.json config file to the project. In there correcting the defaultModuleRelativeSerializationPath to just "serialization" and moving the serialized roles into the folder where the actual module is located. Afterwards calling ser pkg install with the extra --config parameter referencing the duplicated sitecore.json file for installing just that module containing the roles.

We encountered a problem very similar to your question. We started experiencing the issue once upgrading to 10.3 and CLI 5.1.25. In our case, the problem was caused by using a relative file path in defaultModuleRelativeSerializationPath like ../../serialization in the project's sitecore.json file.

When using ser pkg create this causes the package to construct a corrupt file path for serialized roles within the package (zip) file. Thus the roles are interpreted as empty by ser pkg install, dropping all the roles afterward.

Package file opened with WINRAR to see file contents

Package file created opened with WINRAR to see file contents

The solution for us was not very straight forward since:

  • The construction with pkg create and install ran apparently stable for a long time.
  • You can override file path serialization on the module level, however, you cannot do that for roles.
  • Changing it in the root sitecore.json will cause issues for all modules.

We ended up adding a new sitecore.json config file to the project. In there correcting the defaultModuleRelativeSerializationPath to just "serialization" and moving the serialized roles into the folder where the actual module is located. Afterwards calling ser pkg install with the extra --config parameter referencing the duplicated sitecore.json file for installing just that module containing the roles.

Source Link
Loading