Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1652061

Summary: Creation of /subsystem=naming/binding resource with Environment field fails
Product: [JBoss] JBoss Operations Network Reporter: Filip Brychta <fbrychta>
Component: Plugin -- JBoss EAP 7Assignee: Ruben Vargas Palma <rvargasp>
Status: POST --- QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: high    
Version: JON 3.3.11CC: miburman
Target Milestone: ER01Keywords: Triaged
Target Release: One-off release   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1652063 (view as bug list) Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1657856    

Description Filip Brychta 2018-11-21 13:57:35 UTC
Description of problem:
Creation of /subsystem=naming/binding resource with Environment field fails with:
WFLYCTL0097: Wrong type for 'environment'. Expected [OBJECT] but was LIST, rolled-back=true

Version-Release number of selected component (if applicable):
JON 3.3.11, EAP plugin pack 08.CR01
EAP 7.1.5

How reproducible:
Always

Steps to Reproduce:
1. navigate to EAP7 Standalone Server resource -> Subsystems -> naming -> Inventory -> Create Child -> Binding
2. Set name: java:global/MongoClient
3. Set binding type: object-factory
4. Set module: com.mongodb.jndi
5. Set class: com.mongodb.jndi.MongoClientJNDIFactory
6. Add environment property: name: mongoClientURI, value: mongodb://username:password@yourdomain.com:27017,username:password@yourdomain.com:27017
7. Finish

Actual results:
Creation fails with:
WFLYCTL0097: Wrong type for 'environment'. Expected [OBJECT] but was LIST, rolled-back=true

Expected results:
Resource is created

Additional info:
Tried also simple binding type with the same result.