<!-- 
RSS generated by JIRA (9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b) at Mon Feb 12 00:12:51 CET 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Magnolia - Issue tracker</title>
    <link>https://jira.magnolia-cms.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-uk</language>    <build-info>
        <version>9.4.2</version>
        <build-number>940002</build-number>
        <build-date>19-01-2023</build-date>
    </build-info>


<item>
            <title>[MGNLCDEP-133] Strange behavior regarding assets dependencies on removal</title>
                <link>https://jira.magnolia-cms.com/browse/MGNLCDEP-133</link>
                <project id="10491" key="MGNLCDEP">Content Dependencies</project>
                    <description>&lt;h2&gt;&lt;a name=&quot;Stepstoreproduce&quot;&gt;&lt;/a&gt;Steps to reproduce&lt;/h2&gt;
&lt;ol&gt;
	&lt;li&gt;&#160;Go to demo, open pages-app and create a basic page&lt;/li&gt;
	&lt;li&gt;&#160;Edit the page and within the main area, create a Text&amp;amp;Image component&lt;/li&gt;
	&lt;li&gt;Within the Text tab, at the Rich text editor, click on &quot;Link to DAM document&quot; and select the asset &lt;em&gt;/tours/shark_brian_warrick_0824.JPG&lt;/em&gt;&lt;/li&gt;
	&lt;li&gt;Go to Assets app, select the asset &lt;em&gt;/tours/shark_brian_warrick_0824.JPG&lt;/em&gt; and click on &lt;tt&gt;Delete item&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;Check a warning is shown regarding dependencies with the page&lt;/li&gt;
	&lt;li&gt;Proceed to delete the asset + publish deletion&lt;/li&gt;
	&lt;li&gt;Go to pages-app and check that tho the link still exists, it is broken&lt;/li&gt;
	&lt;li&gt;Back to assets-app, upload the &lt;em&gt;/tours/shark_brian_warrick_0824.JPG&lt;/em&gt; asset&lt;/li&gt;
	&lt;li&gt;Go to pages-app and check that the asset can be download sucesfully&lt;/li&gt;
	&lt;li&gt;Go to Assets app, select the asset &lt;em&gt;/tours/shark_brian_warrick_0824.JPG&lt;/em&gt; and click on &lt;tt&gt;Delete item&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;Check that this time, no warning is shown regarding dependencies and the asset can be deleted without knowing is is referenced on a page&lt;/li&gt;
&lt;/ol&gt;


&lt;h3&gt;&lt;a name=&quot;Expectedresults&quot;&gt;&lt;/a&gt;Expected results&lt;/h3&gt;
&lt;p&gt;The second time you try to delete the asset, a warning message is shown regarding dependencies&lt;/p&gt;

&lt;h3&gt;&lt;a name=&quot;Actualresults&quot;&gt;&lt;/a&gt;Actual results&lt;/h3&gt;
&lt;p&gt;The warning is only shown the first time, the second time you try to delete the asset there is no warning.&lt;/p&gt;

&lt;h3&gt;&lt;a name=&quot;Workaround&quot;&gt;&lt;/a&gt;Workaround&lt;/h3&gt;
&lt;p&gt;N/A&lt;/p&gt;

&lt;h3&gt;&lt;a name=&quot;Developmentnotes&quot;&gt;&lt;/a&gt;Development notes&lt;/h3&gt;
&lt;p&gt;N/A&lt;/p&gt;</description>
                <environment></environment>
        <key id="130298">MGNLCDEP-133</key>
            <summary>Strange behavior regarding assets dependencies on removal</summary>
                <type id="3" iconUrl="https://jira.magnolia-cms.com/secure/viewavatar?size=xsmall&amp;avatarId=10898&amp;avatarType=issuetype">Task</type>
                                            <priority id="6" iconUrl="https://jira.magnolia-cms.com/images/icons/priorities/neutral.gif">Neutral</priority>
                        <status id="10433" iconUrl="https://jira.magnolia-cms.com/images/icons/statuses/generic.png" description="This issue has been evaluated by development and accepted to be planned in.">Accepted</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="ccantalapiedra">Carlos Cantalapiedra</reporter>
                        <labels>
                    </labels>
                <created>Fri, 24 Mar 2023 10:36:11 +0100</created>
                <updated>Tue, 27 Jun 2023 11:57:39 +0200</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="349682" author="rkovarik" created="Fri, 24 Mar 2023 10:43:20 +0100"  >&lt;p&gt;By uploading new asset, even though it&apos;s the same binary file, a new asset new a new UUID is created. This could be only done with export/import.&lt;/p&gt;</comment>
                            <comment id="361616" author="ajuran" created="Wed, 14 Jun 2023 10:51:10 +0200"  >&lt;h4&gt;&lt;a name=&quot;DISCOVERY&quot;&gt;&lt;/a&gt;&lt;del&gt;DISCOVERY&lt;/del&gt;&lt;/h4&gt;

&lt;p&gt;&lt;del&gt;References are searched by node identifier, &lt;a href=&quot;https://git.magnolia-cms.com/projects/ENTERPRISE/repos/content-dependencies/browse/magnolia-content-dependencies-core/src/main/java/info/magnolia/module/dependencies/impl/DefaultDependencies.java#108&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;see here&lt;/a&gt;.&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Newly uploaded asset gets a new identifier despite it has the same path as the previously deleted.&lt;/del&gt;&lt;/p&gt;
&lt;h5&gt;&lt;a name=&quot;Suggestedsolution&quot;&gt;&lt;/a&gt;&lt;del&gt;Suggested solution&lt;/del&gt;&lt;/h5&gt;

&lt;p&gt;&lt;del&gt;Search references by path instead, &lt;a href=&quot;https://git.magnolia-cms.com/projects/ENTERPRISE/repos/content-dependencies/commits/cb2fdad0654a870c4917ad1c04aa8ecacc33729e#magnolia-content-dependencies-core/src/main/java/info/magnolia/module/dependencies/impl/DefaultDependencies.java?t=108&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;see here&lt;/a&gt;.&lt;/del&gt;&lt;/p&gt;</comment>
                            <comment id="361655" author="rkovarik" created="Wed, 14 Jun 2023 11:51:22 +0200"  >&lt;blockquote&gt;&lt;p&gt;Search references by path instead, &lt;a href=&quot;https://git.magnolia-cms.com/projects/ENTERPRISE/repos/content-dependencies/commits/cb2fdad0654a870c4917ad1c04aa8ecacc33729e#magnolia-content-dependencies-core/src/main/java/info/magnolia/module/dependencies/impl/DefaultDependencies.java?t=108&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;see here&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Could you elaborate on consequences?&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;migration effort
	&lt;ul&gt;
		&lt;li&gt;all workspaces&lt;/li&gt;
		&lt;li&gt;bootstrap files&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;move operation
	&lt;ul&gt;
		&lt;li&gt;by fixing this use case, all moved references would be broken&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;One could argue that the behaviour is correct and should work only when reimporting bootstrap file which includes the correct UUID. After fixing this, we might expect more curious use cases in the future such as:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Should it work also if I rename the file but the binary is still the same?&lt;/li&gt;
	&lt;li&gt;Should it work if I upload the same binary file somewhere else?&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="361704" author="ajuran" created="Wed, 14 Jun 2023 14:06:17 +0200"  >&lt;p&gt;Possible solutions:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;We could update our documentation and provide a groovy script searching assets which have no UUID or path references see original customer requirement on &lt;a href=&quot;https://jira.magnolia-cms.com/browse/SUPPORT-16172&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;SUPPORT-16172&lt;/a&gt; ticket.&lt;/li&gt;
	&lt;li&gt;The searching of references could be extended with searching by path but it could cause performance issue in case large data (could be configurable).&lt;/li&gt;
	&lt;li&gt;Remove the node properties storing the references when referenced asset is deleted - could be performance expensive but could run in separate thread.&#160;&#160;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&lt;del&gt;The issue described in the related SUPPORT-16172 ticket should be solved in core module (possibly in&#160;&lt;a href=&quot;https://git.magnolia-cms.com/projects/PLATFORM/repos/main/browse/magnolia-core/src/main/java/info/magnolia/link/LinkUtil.java#537&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;LinkUtil#createLinkInstance&lt;/a&gt;), there shouldn&apos;t be generated valid links by path if specified uuid doesn&apos;t exist - created ticket &lt;a href=&quot;https://jira.magnolia-cms.com/browse/MAGNOLIA-8951&quot; title=&quot;Link generation for non existing node uuid causes unexpected behavior &quot; class=&quot;issue-link&quot; data-issue-key=&quot;MAGNOLIA-8951&quot;&gt;&lt;del&gt;MAGNOLIA-8951&lt;/del&gt;&lt;/a&gt;.&lt;/del&gt;&#160;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10360">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10022">
                    <name>supersession</name>
                                                                <inwardlinks description="is superseded by">
                                        <issuelink>
            <issuekey id="134287">MAGNOLIA-8951</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="109527" name="shark_brian_warrick_0824.JPG" size="399212" author="ccantalapiedra" created="Fri, 24 Mar 2023 10:36:29 +0100"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_14166" key="com.okapya.jira.checklist:checklist">
                        <customfieldname>Acceptance criteria</customfieldname>
                        <customfieldvalues>
                            
        <checklist>
        <![CDATA[
                            




                
                                    <div class="o-completion" style="display: flex; flex-shrink: 0;"><span  class="aui-lozenge aui-lozenge-complete" style="font-size: 12px; font-weight: normal; display: flex; flex-direction: row; align-items: center;" ><span style="padding-right: 4px; vertical-align: middle;"><svg width="15" height="15" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg" fill="white"><path clip-rule="evenodd" d="m10.41037,3.42544l-7.86501,0c-0.72395,0 -1.31084,0.58688 -1.31084,1.31084l0,7.86508c0,0.7239 0.58689,1.3108 1.31084,1.3108l7.86501,0c0.724,0 1.3109,-0.5869 1.3109,-1.3108l0,-7.86508c0,-0.72396 -0.5869,-1.31084 -1.3109,-1.31084zm-7.86501,-0.65542c-1.08593,0 -1.96626,0.88032 -1.96626,1.96626l0,7.86508c0,1.0859 0.88033,1.9662 1.96626,1.9662l7.86501,0c1.086,0 1.9663,-0.8803 1.9663,-1.9662l0,-7.86508c0,-1.08594 -0.8803,-1.96626 -1.9663,-1.96626l-7.86501,0z" fill-rule="evenodd"/><path d="m5.09049,10.18526l-1.82767,-1.82766l-0.78479,0.78479l2.61246,2.61246l5.38758,-5.38754l-0.78483,-0.78479l-4.60275,4.60274z"/></svg></span><span>Empty</span></span></div>
                        ]]>
    </checklist>


                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10111" key="com.atlassian.jira.toolkit:reporterdomain">
                        <customfieldname>Company</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>magnolia-cms.com</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10031" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 24 Mar 2023 10:43:20 +0100</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_12730" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_14151" key="com.atlassian.jira.toolkit:message">
                        <customfieldname>Docu info</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10246" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PDI-100</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10061" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comm is not jira-dev</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10071" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last participant</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>dmaslanka</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_13136" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            34 weeks, 4 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10020" key="com.atlassian.jira.toolkit:attachments">
                        <customfieldname>Number of attachments</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10150" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname>Number of comments</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>ajuran</customfieldvalue>
            <customfieldvalue>ccantalapiedra</customfieldvalue>
            <customfieldvalue>rkovarik</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10833" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|y09j2i:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10244" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_14167" key="com.okapya.jira.checklist:checklist">
                        <customfieldname>Task DoR</customfieldname>
                        <customfieldvalues>
                            
        <checklist>
        <![CDATA[
                            




                
                                    <div class="o-completion" style="display: flex; flex-shrink: 0;"><span  class="aui-lozenge aui-lozenge-complete" style="font-size: 12px; font-weight: normal; display: flex; flex-direction: row; align-items: center;" ><span style="padding-right: 4px; vertical-align: middle;"><svg width="15" height="15" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg" fill="white"><path clip-rule="evenodd" d="m10.41037,3.42544l-7.86501,0c-0.72395,0 -1.31084,0.58688 -1.31084,1.31084l0,7.86508c0,0.7239 0.58689,1.3108 1.31084,1.3108l7.86501,0c0.724,0 1.3109,-0.5869 1.3109,-1.3108l0,-7.86508c0,-0.72396 -0.5869,-1.31084 -1.3109,-1.31084zm-7.86501,-0.65542c-1.08593,0 -1.96626,0.88032 -1.96626,1.96626l0,7.86508c0,1.0859 0.88033,1.9662 1.96626,1.9662l7.86501,0c1.086,0 1.9663,-0.8803 1.9663,-1.9662l0,-7.86508c0,-1.08594 -0.8803,-1.96626 -1.9663,-1.96626l-7.86501,0z" fill-rule="evenodd"/><path d="m5.09049,10.18526l-1.82767,-1.82766l-0.78479,0.78479l2.61246,2.61246l5.38758,-5.38754l-0.78483,-0.78479l-4.60275,4.60274z"/></svg></span><span>Empty</span></span></div>
                        ]]>
    </checklist>


                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_12430" key="com.atlassian.teams:rm-teams-custom-field-team">
                        <customfieldname>Team</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[25]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_14145" key="com.intenso.jira.issue-templates:issue-templates-customfield">
                        <customfieldname>Template</customfieldname>
                        <customfieldvalues>
                            


                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_15131" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Time in Discovery</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>214</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_13933" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Urgency (resolution)</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="15724"><![CDATA[Normal]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>