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

InjectionUtils do not handle correctly collections inside query bean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.2
    • 2.3.8, 2.4.5, 2.5.1
    • JAX-RS
    • None
    • Unknown

    Description

                      } else if (isSupportedCollectionOrArray(value.getClass())) {
                          // ignoring arrrays for a moment
                          List<Object> theValues = null;
                          if (value.getClass().isArray()) {
                              theValues = Arrays.asList(value);
                          } else {
                              theValues = CastUtils.cast((List<?>)value);
                          }
                          values.put(propertyName, theValues);
                      } else {
                          fillInValuesFromBean(value, propertyName, values);
                      }
      

      theValues = CastUtils.cast((List<?>)value); limits us to use only Lists in beans used as query params, while any type of collection could be fine(Set for example).

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            lordorient Gena Ganebnyi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: