]
Michal Vanco commented on GTNWSRP-203:
--------------------------------------
Verified and it works fine.
Now I'm getting a message like:
Couldn't modify registration with producer 'selfv2' Could not modify
registration with handle '9f638afd0a1058c1003e35830b67d23a' Cause: Invalid value
for property 'property1' property. aaa is not a valid value for property
'property1'. TestRegistrationPropertyValidator only accepts non-null String value
containing 'test'.
Thanks!
Producer configuration - wrong error message for validator
----------------------------------------------------------
Key: GTNWSRP-203
URL:
https://issues.jboss.org/browse/GTNWSRP-203
Project: GateIn WSRP
Issue Type: Bug
Components: Producer
Environment: GateIn wsrp-extraction branch
Reporter: Michal Vanco
Assignee: Chris Laprun
Fix For: 2.0.1-GA, 2.1.0
Attachments: producer_validator.txt, wsrp-policy-test-0.0.1-SNAPSHOT.jar
I use validator: org.gatein.test.wsrp.TestRegistrationPropertyValidator and add one
registration property.
When I create new consumer and add invalid value in property, I'll get an error
message like:
Couldn't register with producer 'selfv2' Could not register consumer named
'mvanco-laptop WSRP v2 version' Cause: Missing value for expected
'property1' property.
IMO there should be some message from validator. Above message says that I haven't
type any value, but I did.
(Validator is expecting 'test' string in property value)
Btw. behavior of validator seems to be fine even for update registration, only message is
missunderstanding.
To reproduce:
- deploy attached jar on producer
- change validator for default policy to:
org.gatein.test.wsrp.TestRegistrationPropertyValidator
- create consumer, add value in property 'value' -> you will get an error
- try value 'value test' -> this is properly validated by validator
--
This message is automatically generated by JIRA.
For more information on JIRA, see: