cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slavb18 <...@git.apache.org>
Subject [GitHub] cxf pull request #172: fix StringBuilder.toString(), add invalidValue in mes...
Date Fri, 16 Sep 2016 05:26:04 GMT
GitHub user slavb18 opened a pull request:

    https://github.com/apache/cxf/pull/172

    fix StringBuilder.toString(), add invalidValue in message

    - fix No message body writer has been found for class java.lang.StringBuilder, ContentType:
text/plain
    - add invalidValue in message
    
    Example messages:
    
    Value 'Desctiption follows' of DocumentResourceImpl.create.arg0.description: size must
be between 36 and 36
    Value (null) of DocumentResourceImpl.create.arg0.displayName: may not be null
    Value 'Desctiption follows' of DocumentResourceImpl.create.arg0.description: must match
"[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}"
    Value '      ' of DocumentResourceImpl.create.arg0.displayName: must match ".*[^\s ].*"
    Value 'Desctiption follows' of DocumentResourceImpl.create.arg0.description: must match
"[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}"
    Value 'Desctiption follows' of DocumentResourceImpl.create.arg0.description: size must
be between 36 and 36
    
    Compare to xsd validation message:
    Internal Exception: org.xml.sax.SAXParseException; cvc-pattern-valid: Value '' is not
facet-valid with respect to pattern '[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}'
for type 'UUID'.
    Internal Exception: org.xml.sax.SAXParseException; cvc-pattern-valid: Value '' is not
facet-valid with respect to pattern '.*[^\s ].*' for type 'notEmptyString'.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/slavb18/cxf master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cxf/pull/172.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #172
    
----
commit 51c3c23591ad33a52108b94d53a821f50b718560
Author: slavb18 <slavb18@gmail.com>
Date:   2016-09-16T05:22:02Z

    - fix No message body writer has been found for class java.lang.StringBuilder, ContentType:
text/plain
    - add invalidValue in message

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message