Fix issue with 'local' environment clients trying to access file meta data via getFileTree

Description

HPCC-27047 allowed foreign file access in cloud (if enabled), by remapping the groups to the dafilesrv when getFileTree was called.

It was anticipated that only foreign clients would call this, but roxie also calls this from within the local environment.
When it does so, the [unconditional] remapping tried to locate a dafilesv and failed if it was enabled (and would be wrong for roxie's use case in local environment anyway).

To fix:
1) change getFileTree protocol, so it can interpret a conditional flag to remap.
2) only send this flag if the dali it is connecting to is not the local env. dali.

In addition to the fix:
1) clean up getFileTree via new call if new dali server that supports it detected
2) allow client call to pass options (rather than a series of optional booleans)

Conclusion

None

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Components

Assignee

Reporter

Priority

Fix versions

Pull Request URL

Created February 25, 2022 at 12:58 PM
Updated March 16, 2022 at 4:08 PM
Resolved March 2, 2022 at 12:00 PM