XFire

GZIP request compression is enabled if GZIP response compression is.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2-RC
  • Fix Version/s: 1.2
  • Component/s: Core
  • Labels:
    None
  • Environment:
    all
  • Number of attachments :
    0

Description

Looks like a typo in

static boolean isGzipRequestEnabled(MessageContext context)
    {
        if (isGzipEnabled(context)) return true;
        
        Object gzipReqEnabled = context.getContextualProperty(GZIP_RESPONSE_ENABLED);
        return (gzipReqEnabled != null && gzipReqEnabled.toString().toLowerCase().equals("true"));
    }

It should be checking GZIP_REQUEST_ENABLED instead.

This passed the tests because the filter being use (pjl) does both request and response by default.

Activity

Hide
Dan Diephouse added a comment -

Fixed. Thanks for the report!

Show
Dan Diephouse added a comment - Fixed. Thanks for the report!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: