]
Michal Vanco updated GTNWSRP-203:
---------------------------------
Attachment: wsrp-policy-test-0.0.1-SNAPSHOT.jar
producer_validator.txt
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
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: