Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7327

Improve logging for invalid enum values

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.1.10
    • Fix Version/s: 3.1.12, 3.0.14, 3.2.0
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      If an enum is used as QueryParam and an empty or invalid value is supplied, this is logged as CLASS_VALUE_OF_FAILURE with level severe.

      ERROR o.apache.cxf.jaxrs.utils.InjectionUtils  : Instance of class de.dekies.MyEnum can not be created using static valueOf(String) or fromString(String) methods
      

      Can we reduce it to warning? It's not really an error when the user of an API supplies wrong parameters and sometimes log files are monitored for errors.

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              deki Dennis Kieselhorst
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: