Consultor Eletrônico



Kbase P87145: Functions in web-util.p and cgiutils.i do not do any error checking on string / field limits (32K).
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/9/2010
Status: Unverified

SYMPTOM(s):

Functions in web-util.p and cgiutils.i do not do any error checking on string / field limits (32K).

No error status is raised when WebSpeed functions are exceeding string and field limit of 32K.

Get error 4058 when WebSpeed functions are exceeding string and field limit 32K.

Attribute <attribute> for the <widget id> has an invalid value of <string>. (4058)

bfx:field too large for a data item, try to increase -s (42)

The Progress error (4058) and (42) found in the WebSpeed broker server log file.

FACT(s) (Environment):

WebSpeed 3.1x

CAUSE:

Bug# OE00106650

CAUSE:

GET-FIELD (and all other functions in web-util.p and cgiutils.i) do not do any error checking on string/field limits (32K). If the length of the requested field is more than 32K, error-status:get-message(1) shows progress error 4058 and 42 (broker server log file). but ERROR-STATUS:ERROR is NOT raised.

FIX:

A possible workaround:
- trap this by testing ERROR-STATUS:NUM-MESSAGES
- then check if the message number is 4058

In this way you can check if get-value() failed or not.