Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-662

ConfigManager should check for empty value before converting into a specific type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • webconsole-1.0.0
    • webconsole-1.2.0
    • Web Console
    • None

    Description

      When a field for a property of a non-type is left empty in the web console, the empty string is tried to be converted into the type, which results in an exception.
      One example is in the ConfigManager#648:
      // scalar of non-string
      String prop = request.getParameter( propName );
      props.put( propName, this.toType( ad.getType(), prop ) );
      The value should be checked before it is tried to be converted. There might be other places where this should be checked as well.

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            cziegeler Carsten Ziegeler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: