Hi Buddhima,
We have not done any changes to the create method recently that would effect the above code.Is the above snippet found in a store or publisher extension? Thank You, Sameera On Thu, Apr 30, 2015 at 1:02 PM, Buddhima Wijeweera <[email protected]> wrote: > Hi All, > > Previously we were able to use the following code to insert an RXT > instance dynamically. > > var asset = require('rxt').asset; > var am = asset.createUserAssetManager(ctx.session, 'dish'); > var assetInstance = { > name: "Name with [ ]", > > attributes: { > > overview_name: randomNumber + > descriptorXML.overview.name.text(), > > .............. > > } > }; > > am.create(assetInstance); > > > But with latest build from ES, we were unable to do so. We get the > following error : > > [2015-04-30 12:46:07,159] ERROR > {org.wso2.carbon.registry.eventing.services.EventingServiceImpl} - Unable > to add subscription > org.wso2.carbon.event.core.exception.EventBrokerException: Topic name > /registry/notifications/StoreLifecycleStateChange/_system/governance/dishes/Name > with [ ] is not a valid topic name. Only alphanumeric characters, hyphens > (-), stars(*), hash(#) ,dot(.),question mark(?) and underscores (_) are > allowed. > > > > So, would like to know, was there a change in createUserAssetManager > method recently? > > Thank you! > > -- > Buddhima Wijeweera > Software Engineer; WSO2 Inc.; http://wso2.com , > > Mobile: +94 71 427 9966 > Email: [email protected] > Blog: https://buddhimawijeweera.wordpress.com > GitHub Profile: https://github.com/Buddhima > -- Sameera Medagammaddegedara Software Engineer Contact: Email: [email protected] Mobile: + 94 077 255 3005
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
