Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Custom error message for repository exception

Avatar

Former Community Member

Hi,

I am getting below error message while trying to modify a template on which i don't have access from Tools page of AEM (expected). Can anyone point me how it can be modified to show my custom error message :

javax.jcr.RepositoryException: org.apache.sling.api.resource.PersistenceException: Resource at '/etc/scaffolding/ABCTemplate/jcr:content' is not modifiable.

 

Regards,

TD

1 Accepted Solution

Avatar

Correct answer by
Level 5

Hi,

Sham HC is ryt.

Better to talk with Admin guy to give you permission otherwise not possible.

Cheers,

Love Sharma

View solution in original post

4 Replies

Avatar

Level 10

If user do not have modify permissions how did he got to screen to modify?

Avatar

Correct answer by
Level 5

Hi,

Sham HC is ryt.

Better to talk with Admin guy to give you permission otherwise not possible.

Cheers,

Love Sharma

Avatar

Former Community Member

Hi Sham and Love,

I have a READ permission on folder and files inside that. When i am trying to modify the name of file i am getting repository exception (as expected). I would like to make error message user-friendly.

Cheers !! 

~TD

Avatar

Level 10

From which ui you are trying to rename?