Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None

      Description

      Hi,

      I used the CompressionFilter (it worked very well), but it needs the compressionThreshold init parameter in the web.xml file.

      The javadocs says that you don't need to add this parameter. But if you don't add it, the Filter will not execute.

      The doFilter() method does the following test:

      if (compressionThreshold == 0) {
      chain.doFilter(request, response);
      return;
      }

      So, if the compressionThreshold is not defined, the filter will not execute.

      My guess is that the compressionThreshold attribute could have some default value, and avoid more configuration in the web.xml

      regards,

        Activity

        Hide
        medgar Malcolm Edgar added a comment -

        Thanks for picking this up. The default threshold now 1024 bytes.

        Fix committed to SVN

        thanks Malcolm

        Show
        medgar Malcolm Edgar added a comment - Thanks for picking this up. The default threshold now 1024 bytes. Fix committed to SVN thanks Malcolm

          People

          • Assignee:
            medgar Malcolm Edgar
            Reporter:
            ricardolecheta Ricardo Lecheta
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development