<valueProposals> in cc_config.xml not working in Web Author (works in Desktop)

Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
Vince
Posts: 68
Joined: Wed Dec 03, 2014 11:25 am

<valueProposals> in cc_config.xml not working in Web Author (works in Desktop)

Post by Vince »

Hello,
I encountered an issue with the Content Completion configuration in Oxygen XML Web Author.

Environment:

Oxygen XML Editor (Desktop): version 27.1
Oxygen XML Web Author: version 27.1
Custom framework

Issue:
The

Code: Select all

<valueProposals>
syntax in

Code: Select all

cc_config.xml
works correctly in Oxygen Desktop but does not work in Web Author.
Configuration that does NOT work in Web Author:

Code: Select all

<config xmlns="http://www.oxygenxml.com/ns/ccfilter/config">
    <valueProposals path="@outputclass" editable="onlyAllowedItems">
        <items>
            <item value="stanza"/>
            <item value="refrain"/>
        </items>
    </valueProposals>
</config>
Workaround using <match> syntax (works in both Desktop and Web Author):

Code: Select all

<config xmlns="http://www.oxygenxml.com/ns/ccfilter/config">
    <match attributeName="outputclass" " editable="onlyAllowedItems">
        <items action="replace">
            <item value="stanza"/>
            <item value="refrain"/>
        </items>
    </match>
</config>
I followed the documentation at: https://www.oxygenxml.com/doc/versions/ ... osals.html

Server logs :

Code: Select all

2025-12-02 17:39:08,865 ERROR [ http-nio-9081-exec-1 ] ro.sync.servlet.errors.DefaultExceptionHandler - com.google.common.util.concurrent.UncheckedExecutionException: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
com.google.common.util.concurrent.UncheckedExecutionException: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2085)
        at com.google.common.cache.LocalCache.get(LocalCache.java:4011)
        at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4919)
        at ro.sync.servlet.cc.RESTContentCompletionConfiguration.getRestrictedAttributes(RESTContentCompletionConfiguration.java:151)
        at ro.sync.servlet.cc.RESTContentCompletionConfiguration.getRenderingConfiguration(RESTContentCompletionConfiguration.java:139)
Javascript logs:

Code: Select all

Error updating attributes view. TypeError: can't access property "class", this.props.ctrl.restrictedAttributes is undefined
    shouldRestrict http://127.0.0.1:9081/oxygen-webapp/app/workspace-73af73be62.js:1976
    render http://127.0.0.1:9081/oxygen-webapp/app/workspace-73af73be62.js:1976
    S http://127.0.0.1:9081/oxygen-webapp/app/v27.1.0-lib/layout-dab69784e0.js:1
    Y http://127.0.0.1:9081/oxygen-webapp/app/v27.1.0-lib/layout-dab69784e0.js:1
    V http://127.0.0.1:9081/oxygen-webapp/app/v27.1.0-lib/layout-dab69784e0.js:1
    V http://127.0.0.1:9081/oxygen-webapp/app/v27.1.0-lib/layout-dab69784e0.js:1
    _ http://127.0.0.1:9081/oxygen-webapp/app/v27.1.0-lib/layout-dab69784e0.js:1
    S http://127.0.0.1:9081/oxygen-webapp/app/v27.1.0-lib/layout-dab69784e0.js:1
    Y http://127.0.0.1:9081/oxygen-webapp/app/v27.1.0-lib/layout-dab69784e0.js:1
    V http://127.0.0.1:9081/oxygen-webapp/app/v27.1.0-lib/layout-dab69784e0.js:1
    _ http://127.0.0.1:9081/oxygen-webapp/app/v27.1.0-lib/layout-dab69784e0.js:1
    render http://127.0.0.1:9081/oxygen-webapp/app/v27.1.0-lib/layout-dab69784e0.js:1
    render http://127.0.0.1:9081/oxygen-webapp/app/workspace-73af73be62.js:1890
    render http://127.0.0.1:9081/oxygen-webapp/app/workspace-73af73be62.js:1991
    nodeChanged_ http://127.0.0.1:9081/oxygen-webapp/app/workspace-73af73be62.js:1991
    doAction_ http://127.0.0.1:9081/oxygen-webapp/app/workspace-73af73be62.js:963
workspace-73af73be62.js:1991:145238
Thank you for your help.
cosminef
Site Admin
Posts: 273
Joined: Wed Aug 30, 2023 2:33 pm

Re: <valueProposals> in cc_config.xml not working in Web Author (works in Desktop)

Post by cosminef »

Hello,

We have reproduced the issue you reported and have logged an internal ticket (WA-9494). Once it is analyzed, we will keep you updated regarding its resolution.

Best,
Cosmin
Cosmin Eftenie
www.oxygenxml.com
Post Reply