The unanchored sed pattern matched two }} lines in {{META-INF/extension.xed: besides the intended xwiki-platform-distribution-war -> -docker rewrite, it also corrupted xwiki-platform-distribution-war-legacydependencies -> -docker-legacydependencies.
Applied the suggested fix - anchoring the pattern with the closing < so only the exact {{}} line is matched:
sed \-i 's/org.xwiki.platform:xwiki\-platform\-distribution\-war</org.xwiki.platform:xwiki\-platform\-distribution\-docker</' ...
Verified against the real extension.xed from the 18.5.0 WAR: the old command rewrites the -legacydependencies line, the new one leaves it untouched while still performing the intended replacement. (Note the file also contains a xwiki-platform-distribution-war line, which neither the old nor the new command touches.)
Fix applied in template/Dockerfile and the regenerated //Dockerfile files.
Vincent Massol on 18/Jul/26 11:07
Fixed in commit 140bd39.
The unanchored {{ originalsed}} pattern was not anchored, so it matched two {{}} id lines in {{META\-INF/extension.xed}}: besides. Besides the intended {{ replacement, it also corrupted thexwiki\-platform\-distribution\-war}} \-> {{\legacydependencies id into xwiki-platform-distribution-docker}} rewrite, it also corrupted-legacydependencies.
Before (buggy): {{noformat} sed -i 's/<id>org.xwiki\.platform:xwiki-platform\-distribution\-war\/<id>org.xwiki.platform:xwiki-legacydependencies}} \platform-> {{\distribution-docker/'\ /usr/local/tomcat/webapps/ROOT/META-legacydependencies}}INF/extension.xed {noformat} Applied the suggested After ( fix \)- anchoring the pattern is anchored with the closing {{<}} angle bracket so that only the exact {{}} id line is matched matches: {codenoformat} sed \-i 's/<id>org.xwiki.platform:xwiki\-platform\-distribution\-war</<id>org.xwiki.platform:xwiki\-platform\-distribution\-docker</' \ /usr/local/tomcat/webapps/ROOT/META-INF/extension ...xed {codenoformat}
Verified against the real {{extension.xed}} extracted from the 18.5.0 WAR: the old command rewrites the {{\-legacydependencies}} line, while the new one leaves it untouched while and still performing performs the intended replacement. \(Note theThe file also contains a {{ maven.artifactid element holding the samexwiki\-platform\-distribution\-war}} line value, which neither the old nor the new command touches.\)
Fix applied in {{template/Dockerfile}} and the regenerated {{// per-versionDockerfile}} files.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.