https://issues.apache.org/bugzilla/show_bug.cgi?id=53840

Philippe Mouawad <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #8 from Philippe Mouawad <[email protected]> ---
After some analysis :
The issue comes from the fact that contentEncoding has been computed to UTF-8
instead of being empty which leads to the error.

Analyzing it further, I think it may come from a previously computed content
encoding from URL :
http://vmdal-hqqa9/retalixhq/GG_Implementation/ScreenEntity/ScreenEntityHTTP.aspx

And problematic code may be here in
DefaultSamplerCreator#computeContentEncoding:

// Check if we know the encoding of the page
            if (pageEncodings != null) {
                synchronized (pageEncodings) {
                    contentEncoding = pageEncodings.get(urlWithoutQuery);
                }
            }
            // Check if we know the encoding of the form
            if (formEncodings != null) {
                synchronized (formEncodings) {
                    String formEncoding = formEncodings.get(urlWithoutQuery);
                    // Form encoding has priority over page encoding
                    if (formEncoding != null) {
                        contentEncoding = formEncoding;
                    }
                }
            }


For record this is the request:

POST
http://vmdal-hqqa9/retalixhq/GG_Implementation/ScreenEntity/ScreenEntityHTTP.aspx?Action=Save&ET=Vendor&TT=Single&Sid=1347280336092
HTTP/1.1
x-requested-with: XMLHttpRequest
Accept-Language: en-us
Referer:
http://vmdal-hqqa9/retalixhq/GG_Implementation/ScreenEntity/ScreenEntityPage.aspx?ET=Vendor&TT=Single&WM=2&UID=9292&Sid=1347280331908&UITH=Blue&MUID=window_0
Accept: */*
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0;
SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center
PC 6.0; .NET4.0C; Tablet PC 2.0)
Host: vmdal-hqqa9
Content-Length: 1146
Proxy-Connection: Keep-Alive
Pragma: no-cache
Cookie: RHQ=sid=5aaeb66c-e174-4f4c-9928-83cffcc62150

<Action UIStatus="2"><Vendor Id="9292" HOST_ID="0" VENDOR="9292" TERMS_TYPE="No
Terms" TERMS="0 %" AUTO_PRICE="Use System Default" VM_VENDOR_TYPE="DSD Vendor"
ITEM_FORMAT="PLU" COST_ENTRY_SORT="UPC/EAN" VM_REPORT_SORT="UPC/EAN"
VM_ORDER_SORT="UPC/EAN" VM_RECEIVING_SORT="UPC/EAN" VM_MAX_BACK_ORDERS="99"
MAX_OPEN_DAYS="99" PAY_BASED_ON="System Cost" ORDER_COST_DATE="Use System Rule"
VM_CONSIDER_FREE="False" VM_SHOW_DETAIL="False" VM_UPDATE_COST="No"
RD_USE_VENDOR_CC="False" BLIND_RECEIVING="Default"
EXCLUDE_RECEIVED_COST="False" PRINT_ITEM_ADJ="False" PRINT_OVERALL_ADJ="False"
PRINT_TAX_DETAIL="False" BLOCK_PRICE_VIEW="False" DELIVERY_STATUS="No Delivery"
AUTO_RECEIVE="False" TARGET_GM_FLAG="%" MINIMUM_GM_FLAG="%" MARGIN_TYPE="Gross
Margin" HOLD_REGULAR="Default" HOLD_SPECIALS="Default" TRUSTING_VENDOR="False"
AUTO_ACCEPT="All" EARLY_RCPT_AFFECTS="All Costs" SBT_ELIGIBLE="Not eligible"
SBT_REPORTING_DAY="Monday" AUTO_BALANCE_FLAG="$" DAX_MANAGED="False"
CHANGE_ID="QA" CHANGE_SOURCE="Manual Change" ORIGINAL_SOURCE="Manual Change"
RECORD_STATUS="Add" RECORD_STATUS_DATE="9/7/2012 8:34:58 AM" VENDOR_NAME="test"
UIStatus="2"/></Action>

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to