airavata-mft icon indicating copy to clipboard operation
airavata-mft copied to clipboard

directory.resourcePath and directory.friendlyName are empty strings in the response of MFTTransferService.resourceMetada method.

Open ShivangMishra opened this issue 10 months ago • 1 comments

Not sure if this is the intended behavior of MFTTransferService.resourceMetada method, please let me know if it is. When I send a request to get the resource meta-data for a particular directory, I'd expect to get the resourcePath and/or friendlyName of that directory in the response as well.

But here, the resourcePath and friendlyName both are empty strings.

I needed this data to maintain a tree structure for the folders which the user has visited inside the airavata mft local user interface. It will also be helpful to cache it and prevent redundant requests when the user clicks on a folder, goes back to the parent folder and then clicks on the same folder again within a few seconds.

image image

One more example -

image image

ShivangMishra avatar Mar 30 '24 20:03 ShivangMishra

And one more issue - here depth-2 is an empty directory, but in the response, it shows that there is a file named depth-2 inside depth-2 directory.

ShivangMishra avatar Mar 30 '24 20:03 ShivangMishra