[MGNLDEMO-109] Default URI isn't set to travel demo in all cases when travel site is set as default site Created: 05/Oct/15  Updated: 20/Oct/15  Resolved: 20/Oct/15

Status: Closed
Project: Magnolia Demo Projects
Component/s: None
Affects Version/s: None
Fix Version/s: 0.8

Type: Bug Priority: Critical
Reporter: Milan Divilek Assignee: AntonĂ­n Juran
Resolution: Obsolete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: Travel Demo
Sprint: Kromeriz 15
Story Points: 1

 Description   

Default URI (/modules/ui-admincentral/virtualURIMapping/default) is set to travel demo only when /modules/site/config/site node doesn't exist, but it's not set when changing site from /modules/standard-templating-kit/config/site or when info.magnolia.module.site.setup.DefaultSiteExistsDelegateTask. See update task code:

private final Task setupTravelSiteAsActiveSite = new NodeExistsDelegateTask("Set travel demo as an active site", "/modules/site/config/site",
            new PropertyExistsDelegateTask("Check extends property and update or create it", "/modules/site/config/site", "extends",
                    new CheckAndModifyPropertyValueTask("/modules/site/config/site", "extends", "/modules/standard-templating-kit/config/site", "/modules/travel-demo/config/travel"),
                    new DefaultSiteExistsDelegateTask("", "",
                            new SetPropertyTask(RepositoryConstants.CONFIG, "/modules/site/config/site", "extends", "/modules/travel-demo/config/travel"))),
            new ArrayDelegateTask("",
                    new CreateNodeTask("", "/modules/site/config", "site", NodeTypes.ContentNode.NAME),
                    new SetPropertyTask(RepositoryConstants.CONFIG, "/modules/site/config/site", "extends", "/modules/travel-demo/config/travel"),
                    new IsAuthorInstanceDelegateTask("Set default URI to home page", String.format("Sets default URI to point to '%s'", DEFAULT_URI), null, new SetPropertyTask(RepositoryConstants.CONFIG, DEFAULT_URI_NODEPATH, "toURI", DEFAULT_URI))
            ));


 Comments   
Comment by AntonĂ­n Juran [ 20/Oct/15 ]

Already fixed by: https://git.magnolia-cms.com/projects/MODULES/repos/demo-projects/commits/e8eb447821465533e382589e4e7c432af19c158e

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