Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Failing to create a page with tags via Sling #379

Open
kaczymuczy opened this issue Sep 9, 2019 · 0 comments
Open

Failing to create a page with tags via Sling #379

kaczymuczy opened this issue Sep 9, 2019 · 0 comments
Labels

Comments

@kaczymuczy
Copy link

kaczymuczy commented Sep 9, 2019

Environment

Bobcat version:
2.1.0

Bobcat modules used:

  • com.cognifide.qa.bb.modules.CoreModule
  • com.cognifide.qa.bb.aem.core.modules.Aem65FullModule
  • com.cognifide.qa.bb.aem65.tests.GuiceModule

Browser + version:
Chrome 76

Description

Using an XML with cq tags to create a page in AEM via ActionsController.execute(AemActions.CREATE_PAGE_VIA_SLING, new SlingPageData(pathToPage, SlingDataXMLBuilder.buildFromfile(pathToXml))

Expected Behavior

A page is created successfully

Actual Behavior

A server error occurs
ERROR [sling-oak-observation-16] com.day.cq.tagging.impl.TagValidatingEventListener Error while handling event '4'
javax.jcr.ValueFormatException: cq:tags = [we-retail:activity/hiking,we-retail:activity/running] is single-valued.

<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" jcr:primaryType="cq:Page"> <jcr:content cq:tags="[we-retail:activity/hiking,we-retail:activity/running]" cq:template="/conf/we-retail/settings/wcm/templates/content-page" jcr:primaryType="cq:PageContent" jcr:title="List Item 01" sling:resourceType="weretail/components/structure/page" navTitle="List Item 01" pageTitle="List Item 01"> <root jcr:primaryType="nt:unstructured" sling:resourceType="wcm/foundation/components/responsivegrid"> <responsivegrid jcr:primaryType="nt:unstructured" sling:resourceType="wcm/foundation/components/responsivegrid"> <breadcrumb jcr:primaryType="nt:unstructured" sling:resourceType="weretail/components/content/breadcrumb" absParent="5" hideCurrent="true" relParent="1" startLevel="5"/> </responsivegrid> </root> </jcr:content> </jcr:root>

@kaczymuczy kaczymuczy added the bug label Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant