[MGNLSTK-1519] Do not strip resources extension in InstallSTKResourcesTask anymore Created: 29/Dec/15  Updated: 27/Jan/16  Resolved: 14/Jan/16

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: update
Affects Version/s: 2.9.2
Fix Version/s: 2.9.3

Type: Task Priority: Critical
Reporter: Mikaël Geljić Assignee: Mikaël Geljić
Resolution: Fixed Votes: 0
Labels: resources
Remaining Estimate: 3.75h
Time Spent: 2d 4.25h
Original Estimate: 3d

Issue Links:
Relates
relates to MGNLSTK-1405 Change default behavior of ThemeVersi... Closed
causality
is causing MGNLGA-19 Update install tasks for ga resources Closed
dependency
depends upon MGNLRES-181 STK theme resources appear twice afte... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Release notes required:
Yes
Sprint: Saigon 26
Story Points: 5

 Description   

InstallSTKResourcesTask still uses deprecated InstallResource(s)Task, which always strips extension of resource file name when installing.

Since MGNLRES-181; we want to avoid duplicates with other resource origins (classpath/filesystem), so extensions will be re-added to pre-existing resources.
Consequently, we must stop stripping extensions for fresh installs too.

  • Replace usages of deprecated InstallResource(s)Task in InstallSTKResourcesTask
    • Use InstallBinaryResource(s)Task and InstallTextResource(s)Task instead
    • Set stripExtension to false

Update: MGNLRES-181 only provides the resource upgrade task, re-adding extensions to node names. This task should be used here in a delta in STK VH.
See expected outcome (STK) in concept for details.



 Comments   
Comment by Mikaël Geljić [ 13/Jan/16 ]

Reopened, we omitted to update install of resource references, to not strip extension in scriploader path + reference property.

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