How to update the jcr:mimeType field via Package Manager | Community
Skip to main content
lisa_burrow
Level 2
May 21, 2021
Solved

How to update the jcr:mimeType field via Package Manager

  • May 21, 2021
  • 1 reply
  • 1446 views

Hi,

 

In CRXDE Lite I am changing a file extension from being  xxx.jsp to be xxx.html. As part of this change on the jcr:content node I have had to manually change the jcr:mimeType from being text/plain to be text/html. I have done this in a test environment and packaged up the change using package manager.

 

When I deploy the package to a new environment the file is now renamed to be xxx.html file as expected, however, the jcr:content node in this new environment isn't being over ridden, it is staying as text/plain. Are there any settings in package manager in my package that I need to turn off/on to allow the jcr:content node to be over ridden?

 

Incidentally, if I delete the component affected in the new environment before I deploy the package the jcr:content is written correctly as text/html.

 

It seems to me that maybe you can't merge or override.

 

Can anyone help with this issue please?

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Vaibhavi_J

Hi @lisa_burrow  

When you create a package in package manager, ty out with a merge/overwrite option. 

https://experienceleague.adobe.com/docs/experience-manager-65/administering/contentmanagement/package-manager.html?lang=en#package-filters

Another solution would be, just create a html file and copy the content and delete jsp rather than changing the mime type. This will be the simple one. 

1 reply

Vaibhavi_J
Vaibhavi_JAccepted solution
Level 7
May 22, 2021

Hi @lisa_burrow  

When you create a package in package manager, ty out with a merge/overwrite option. 

https://experienceleague.adobe.com/docs/experience-manager-65/administering/contentmanagement/package-manager.html?lang=en#package-filters

Another solution would be, just create a html file and copy the content and delete jsp rather than changing the mime type. This will be the simple one. 

lisa_burrow
Level 2
May 24, 2021
Thanks. I will test the merge/overwrite option in package manager. I was trying to avoid actually deleting the .jsp file in our live environment before we put the new version.