[MGNLDAM-55] Create/Adapt migration task in order to remove unused reference to uploaded image Created: 05/Dec/12  Updated: 11/Feb/13  Resolved: 07/Jan/13

Status: Closed
Project: Magnolia DAM Module
Component/s: None
Affects Version/s: 1.0
Fix Version/s: 1.0

Type: Task Priority: Major
Reporter: Eric Hechinger Assignee: Eric Hechinger
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File unformatted-javadoc.png    
Issue Links:
relation
is related to MGNLSTK-1049 Adapt all imaging references in boots... Closed
is related to MAGNOLIA-4733 Create a generic PropertyFilteringNod... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:

 Description   

Adapt or create a migration task to remove the unused references to uploaded images like:

<sv:property sv:name="image" sv:type="String">
<sv:value>upload</sv:value>
</sv:property>
<sv:property sv:name="imageLocation" sv:type="String">
<sv:value>above</sv:value>
</sv:property>
but no binary nodes are associated to this component.

This causes exception in the new DAM Image support.



 Comments   
Comment by Eric Hechinger [ 07/Dec/12 ]

Also remove all no more valid link to DMS that are no more used (no more existing DMS references)....

Comment by Daniel Lipp [ 07/Dec/12 ]

Another case to be treated: references (uuid's) to non-existing images.

Dam is less tolerant and will create stacktraces when there's orphan references - they had been around in Magnolia 4.5 but there they'd been kindly ignored.

Example from Demo-project: /demo-features/aggregation-paragraphs/dummy-news/news-03

<sv:property sv:name="image" sv:type="String">
<sv:value>4c291aa5-9807-4bbe-b372-ce523f82e600</sv:value>
</sv:property>

Comment by Federico Grilli [ 21/Dec/12 ]

Reopened after review.
Please use proper HTML tags in javadoc, else it results completely garbled and unreadable, unless you read it directly in the source code. See attached screenshot with the javadoc view in the bottom part.
I am referring in particular to the main javadoc for
MoveUploadedContentToDamMigrationTask.java
MoveDataRepositoryToDamMigrationTask.java

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