Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Unable to edit the metadata of DAM properties

Avatar

Level 2

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

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @seemak19887037 

 

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

View solution in original post

8 Replies

Avatar

Correct answer by
Community Advisor

Hi @seemak19887037 

 

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

Avatar

Level 4

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?

Avatar

Community Advisor

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

Level 2

Hi @seemak19887037 were you able to solve this? We are also facing the same issue in vanilla instance as well as in our project and noticed it happened more frequently on Linux machine.

Avatar

Level 1

Hi All,

Did we ever resolve the issue?

I'm also facing the same problem. We are using AEM CS instance 

VedgunjanSi_0-1716519262107.png

Surprising, when I go to the repository browser I could see the value under /jcr:content/metadata

VedgunjanSi_1-1716519420041.png

 

Any thoughts or clue what must be going wrong here?

 

Thanks

Ved 

 

 

Avatar

Community Advisor

Hi @VedgunjanSi Please raise a adobe support ticket and ask them to do the reindexing of the assets. The issue will be resolved.

Avatar

Level 1

Hi Asutosh,

This is a new instance and nothing in it yet. I just added a DAM asset and was trying out a custom metadata schema when I ran into this issue.

The new metadata uses a custom namespace wfm: 

 

What I'm seeing under "jcr:content/metadata" in crx/de, is that the new field is getting saved in Unicode way.

 

VedgunjanSi_0-1716526047007.png

 

Do I have to deploy custom namespaces?

 

Thanks

Ved