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

Improve logging for invalid enum values

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.1.10
    • 3.1.12, 3.0.14, 3.2.0
    • JAX-RS
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: