Uploaded image for project: 'WildFly Discovery'
  1. WildFly Discovery
  2. WFDISC-32

BooleanFilterSpec fails to deserialize

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.0.1.Final, 1.1.0.Final
    • 1.0.0.Final
    • None

      FilterSpec serialization/deserialization relies on being able to parse the result of FilterSpec.toString() via the static fromString(...) method.

      The following toString() -> fromString(...) operation sequences fail with an IllegalArgumentException: "Unexpected character at 0"

      FilterSpec.fromString(FilterSpec.all().toString());
      FilterSpec.fromString(FilterSpec.none().toString());
      // These fail with "Unexpected character at 2"
      FilterSpec.fromString(FilterSpec.not(FilterSpec.all()).toString());
      FilterSpec.fromString(FilterSpec.not(FilterSpec.none()).toString());

      Consequently, attempts to deserialize the serialized representations of FilterSpec.all() or FilterSpec.none() will also fail.

              dlloyd@redhat.com David Lloyd
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: