Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to update the jcr:mimeType field via Package Manager

Avatar

Avatar
Level 1
lisa_burrow
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
lisa_burrow
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
View profile
lisa_burrow
Level 1

21-05-2021

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 50
MVP
Vaibhavi
MVP

Likes

216 likes

Total Posts

181 posts

Correct Reply

61 solutions
Top badges earned
Affirm 50
Validate 1
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Affirm 50
MVP
Vaibhavi
MVP

Likes

216 likes

Total Posts

181 posts

Correct Reply

61 solutions
Top badges earned
Affirm 50
Validate 1
Ignite 1
Give Back 5
Give Back 3
View profile
Vaibhavi
MVP

21-05-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/packag...

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. 

Answers (0)