Kbase 20748: Error 293 selecting a SmartObject from mapped or network drive
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  15/10/2008 |
|
Status: Verified
SYMPTOM(s):
ADM. ** "<file-name>" was not found. (293)
Browsing for a Smart Object over mapped drive
File name appears to be truncated
CAUSE:
When a SmartObject is selected Progress find this file in the PROPATH and adds a relative reference to it.
The program adecomm\_opnfile.w is used to determine what the relative reference is. After selecting the file using SYSTEM-DIALOG GET-FILE?? the procedure checks if the file is located in the PROPATH with the following code:
DO i = 1 to NUM-ENTRIES(PROPATH):
FILE-INFO:FILE-NAME = TRIM(ENTRY(i,PROPATH)).
IF pFile BEGINS FILE-INFO:FULL-PATHNAME AND FILE-INFO:FULL-PATHNAME NE ? THEN
DO:
/* If it's there, chop off the leading part */
pFile = SUBSTRING(pFile, LENGTH(FILE-INFO:FULL-PATHNAME) + 2, -1,"CHARACTER":U).
LEAVE.
END.
END.
The code is incorrectly handling the scenario where the current directory is a network drive (i.e. G:\ instead of G:\SomeDirectory). This failure is causing the code to remove the leading character of the file name.
FIX:
Ensure that the current directory is a subdirectory of the network/mapped drive