[gatein-issues] [JBoss JIRA] Created: (GTNWSRP-203) Producer configuration - wrong error message for validator

Michal Vanco (JIRA) jira-events at lists.jboss.org
Sun Feb 20 12:21:13 EST 2011


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


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: http://www.atlassian.com/software/jira


More information about the gatein-issues mailing list