Kbase P134325: 4GL/ABL: Behavior change in FILE-INFO:FILE-SIZE result if directory exists.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  18/09/2009 |
|
Status: Verified
SYMPTOM(s):
4GL/ABL: Behavior change in FILE-INFO:FILE-SIZE result if directory exists.
The FILE-INFO:FILE-SIZE attribute now returns the unknown value if the target directory exists.
The following code returns the unknown value ? when executed under 10.1C or 10.1C01:
FILE-INFO:FILE-NAME = "C:\".
MESSAGE FILE-INFO:FILE-SIZE VIEW-AS ALERT-BOX INFO BUTTONS OK.
The FILE-INFO:FILE-SIZE attribute used to return the 0 value if the target directory exists.
The code returns the value 0 when executed under earlier 9.x or 10.x versions.
FACT(s) (Environment):
All Supported Operating Systems
OpenEdge 10.1C
OpenEdge 10.1C01 Service Pack
CAUSE:
Bug# OE00173471
CAUSE:
This regression bug was introduced in 10.1C as a result of the fix of bug OE00145666 related to large fileio enhancement which allowed the LBI, SRT, INPUT FROM and OUTPUT TO files to grow larger than 2 Gigabytes.
FIX:
None at this time. As a workaround, use FILE-INFO:FILE-SIZE <> ? to determine whether the target file or directory exists.