Unable to edit the metadata of DAM properties

Avatar

Avatar
Boost 3
Level 2
seemak19887037
Level 2

Likes

4 likes

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile

Avatar
Boost 3
Level 2
seemak19887037
Level 2

Likes

4 likes

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile
seemak19887037
Level 2

22-06-2021

Hi,

I am getting error when trying to edit the title of the DAM asset property and after clicking on save button in console its showing like:-Unable to edit the properties

 

Also we are getting the error in error log:-

15.03.2021 11:31:38.074 *ERROR* [127.0.0.1 [1615807898064] POST /content/dam.html HTTP/1.1] org.apache.sling.servlets.post.impl.operations.ModifyOperation Exception during response processing.15.03.2021 11:31:38.074 *ERROR* [127.0.0.1 [1615807898064] POST /content/dam.html HTTP/1.1] org.apache.sling.servlets.post.impl.operations.ModifyOperation Exception during response processing.java.lang.IllegalArgumentException: Value for key jcr:created can't be put into node: java.util.GregorianCalendar[time=1555048743004,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+02:00",offset=7200000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2019,MONTH=3,WEEK_OF_YEAR=15,WEEK_OF_MONTH=2,DAY_OF_MONTH=12,DAY_OF_YEAR=102,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=2,AM_PM=0,HOUR=7,HOUR_OF_DAY=7,MINUTE=59,SECOND=3,MILLISECOND=4,ZONE_OFFSET=7200000,DST_OFFSET=0]        at org.apache.sling.jcr.resource.internal.JcrModifiableValueMap.put(JcrModifiableValueMap.java:458)        at org.apache.sling.jcr.resource.internal.JcrModifiableValueMap.put(JcrModifiableValueMap.java:47)        at org.apache.sling.servlets.post.impl.helper.SlingPropertyValueHandler.storeAsDate(SlingPropertyValueHandler.java:460)        at org.apache.sling.servlets.post.impl.helper.SlingPropertyValueHandler.setPropertyAsIs(SlingPropertyValueHandler.java:240)        at org.apache.sling.servlets.post.impl.helper.SlingPropertyValueHandler.setProperty(SlingPropertyValueHandler.java:120)        at org.apache.sling.servlets.post.impl.operations.ModifyOperation.writeContent(ModifyOperation.java:372)        at org.apache.sling.servlets.post.impl.operations.ModifyOperation.doRun(ModifyOperation.java:93)        at org.apache.sling.servlets.post.impl.operations.AbstractPostOperation.run(AbstractPostOperation.java:99)        at org.apache.sling.servlets.post.impl.SlingPostServlet.doPost(SlingPostServlet.java:228)        at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.java:146)        at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:342) ...        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)        at java.lang.Thread.run(Thread.java:748)Caused by: javax.jcr.nodetype.ConstraintViolationException: Property is protected: jcr:created = 2019-04-12T07:59:03.004+02:00        at org.apache.jackrabbit.oak.jcr.delegate.NodeDelegate.setProperty(NodeDelegate.java:522)        at org.apache.jackrabbit.oak.jcr.session.NodeImpl$36.perform(NodeImpl.java:1403)        at org.apache.jackrabbit.oak.jcr.session.NodeImpl$36.perform(NodeImpl.java:1390)        at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:207)        at org.apache.jackrabbit.oak.jcr.session.ItemImpl.perform(ItemImpl.java:112)        at org.apache.jackrabbit.oak.jcr.session.NodeImpl.internalSetProperty(NodeImpl.java:1390)        at org.apache.jackrabbit.oak.jcr.session.NodeImpl.setProperty(NodeImpl.java:368)        at org.apache.sling.jcr.resource.internal.JcrModifiableValueMap.put(JcrModifiableValueMap.java:455)        ... 169 common frames omitted

We are using AEM 6.5.8.0

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Applaud 25
Level 10
asutosh_jena
Level 10

Likes

593 likes

Total Posts

705 posts

Correct reply

206 solutions
Top badges earned
Applaud 25
Give Back 100
Boost 500
Affirm 100
Ignite 1
View profile

Avatar
Applaud 25
Level 10
asutosh_jena
Level 10

Likes

593 likes

Total Posts

705 posts

Correct reply

206 solutions
Top badges earned
Applaud 25
Give Back 100
Boost 500
Affirm 100
Ignite 1
View profile
asutosh_jena
Level 10

22-06-2021

Hi @seemak19887037 

 

Are you facing this issue for all the assets or only for any specific asset?

Answers (2)

Answers (2)

Avatar

Avatar
Boost 100
Level 6
Dipti_Chauhan
Level 6

Likes

111 likes

Total Posts

133 posts

Correct reply

39 solutions
Top badges earned
Boost 100
Give Back 10
Affirm 25
Boost 50
Boost 25
View profile

Avatar
Boost 100
Level 6
Dipti_Chauhan
Level 6

Likes

111 likes

Total Posts

133 posts

Correct reply

39 solutions
Top badges earned
Boost 100
Give Back 10
Affirm 25
Boost 50
Boost 25
View profile
Dipti_Chauhan
Level 6

22-06-2021

Hi @seemak19887037 

  you getting constraint Violation error for jcr:created property<javax.jcr.nodetype.ConstraintViolationException: Property is protected: jcr:created = 2019-04-12T07:59:03.004+02:00>. Can you please check this. There is no need to modify this property.

Can you also share you code snippet for metadata update?

 

Thanks

Dipti

 

 

Avatar

Avatar
Give Back 5
Level 4
SameerBhalerao
Level 4

Likes

35 likes

Total Posts

30 posts

Correct reply

16 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Give Back 5
Level 4
SameerBhalerao
Level 4

Likes

35 likes

Total Posts

30 posts

Correct reply

16 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile
SameerBhalerao
Level 4

22-06-2021

Hello,

 

POST request does not seem correct here. It should have complete path to whole asset for example modifying metadata at /content/dam/wknd/en/activities/hiking/equipment_6.jpg bring out something like below post request

 

POST /content/dam/wknd/en/activities/hiking/equipment_6.jpg HTTP/1.1] 

 

Can you retry after cleaning the logs?