Project

General

Profile

Bug #10509

SEARCH(directory_path) returns unkown

Added by Teodor Gorghe 11 months ago. Updated 9 months ago.

Status:
Test
Priority:
Low
Assignee:
Target version:
-
Start date:
Due date:
% Done:

100%

billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:
production:
No
env_name:
topics:

History

#1 Updated by Teodor Gorghe 11 months ago

While creating some testcases for testing some OS commands, I have encountered this issue: if you want to check the full path for a folder in your current working directory, e.g. deploy/client, SEARCH(relative_directory_path) returns unknown. The SEARCH(relative_file_path) is not affected.
I think there is no customer application that is involved in this issue.

#2 Updated by Greg Shah 11 months ago

Please post the 4GL code example that works differently in OE and FWD.

#3 Updated by Teodor Gorghe 11 months ago

OS-CREATE-DIR("dirname") // or OS-COMMAND VALUE('mkdir dirname')
SEARCH("dirname") // OE returns the absolute directory path and FWD returns unknown

#4 Updated by Teodor Gorghe 11 months ago

  • Priority changed from Low to Normal

#6 Updated by Teodor Gorghe 11 months ago

4GL also returns unknown on directories, but I was fooled by ABLUnit Assert:IsTrue when the result is unknown and there is no error message.

Assert:IsTrue(?, "message"). // OE and FWD raises the error
Assert:IsTrue(?). // OE does not raise any error, but FWD raises the AssertionFailedError.

I don't currently see that in the customer, but the I have made a fix on FWD revision 16155 task branch 10509a.

#7 Updated by Teodor Gorghe 10 months ago

  • Assignee set to Teodor Gorghe
  • Priority changed from Normal to Low
  • Status changed from New to WIP

#8 Updated by Teodor Gorghe 10 months ago

  • Status changed from WIP to Internal Test
  • % Done changed from 0 to 100
  • reviewer Constantin Asofiei added

#9 Updated by Teodor Gorghe 10 months ago

  • Status changed from Internal Test to Review

#10 Updated by Constantin Asofiei 10 months ago

  • Status changed from Review to Internal Test

I'll put this into testing with other changes.

#11 Updated by Constantin Asofiei 9 months ago

  • Status changed from Internal Test to Merge Pending

This can be merged after 10455a.

#12 Updated by Teodor Gorghe 9 months ago

  • Status changed from Merge Pending to Test

Branch 10509a was merged to trunk rev. 16232 and archived.

Also available in: Atom PDF