wttech/bobcat

Failing to create a page with tags via Sling

kaczymuczy opened this issue · 0 comments

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>