apache / airavata-mft

Apache Airavata Managed File Transfer Services
https://airavata.apache.org
Apache License 2.0
32 stars 39 forks source link

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

Open ShivangMishra opened 7 months ago

ShivangMishra commented 7 months ago

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 commented 7 months ago

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.