[MGNLDAM-969] Uploading Asset via Assets-App does not set 'Created' and 'Creator' fields Created: 21/May/21  Updated: 16/Jul/21  Resolved: 30/Jun/21

Status: Closed
Project: Magnolia DAM Module
Component/s: DAM App
Affects Version/s: 3.0.7
Fix Version/s: 3.0.9

Type: Bug Priority: Major
Reporter: Daniel Schneeberger Assignee: Adam Siska
Resolution: Fixed Votes: 1
Labels: VN-Testing, regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Magnolia Demo Author


Attachments: PNG File Bildschirmfoto 2021-06-10 um 11.55.18.png     PNG File assetUploadMissingCreatedAndCreator.png    
Issue Links:
Problem/Incident
is caused by MGNLUI-6522 Added page is not highlighted as sele... Closed
relation
is related to RESPDAM-45 Missing createdDate brings AssetResol... Closed
is related to MGNLUI-6766 Created pages are missing metadata Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Release notes required:
Yes
Date of First Response:
Epic Link: Migrate Assets
Sprint: UI FW 31
Story Points: 3

 Description   

Reproduce

  1. Log in on the Magnolia Demo Author
  2. In the Assets app, upload some asset
  3. Observe, that the fields 'Created' and 'Creator' are not set on the uploaded asset

Expected
'Created' and 'Creator' fields get set on upload of asset

Actual
'Created' and 'Creator' fields are not set on upload of asset

Notes
It works in legacy assets app.

Dev notes
defaultValue:now is missing for mgnl:created field in uploadAndEdit dialog,
mgnl:createdBy could be updated/saved within JcrAssetCommitAction, but the field still wouldn't be prefilled before commit



 Comments   
Comment by Pierre Sandrin [ 10/Jun/21 ]

The dam-focal-point Module relies on the created Date to be present. The AssetFocalWriter class fails with a null pointer exception! (see screenshot) This makes the whole module unusable.

Probably there are many more examples of code relying on the created date. So i think this issue should be priorized an fixed as fast as possible.

Thanks & Best Regards

 

 

 

Comment by Pierre Sandrin [ 10/Jun/21 ]

Created related issue for dam-focal-module RESPDAM-45

Comment by Adam Siska [ 16/Jul/21 ]

For release notes:

Uploaded assets have again correctly set up meta data properties: mgnl:created/mgnl:createdBy/mgnl:lastModified/mgnl:lastModifiedBy.

Generated at Mon Feb 12 05:05:05 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.