apache / apache/airavata-mft

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

Open
#129 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
41
Forks
37
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/apache/airavata-mft/assets/35092323/576a7038-0ef7-44e0-a728-9a730bf1adf9)
![image](https://github.com/apache/airavata-mft/assets/35092323/8771dd1c-05db-4423-b563-6cd50901adca)

One more example -

![image](https://github.com/apache/airavata-mft/assets/35092323/dd1bdb8c-b44b-49a5-a220-ae9e409343a9)
![image](https://github.com/apache/airavata-mft/assets/35092323/e5814656-4053-4a34-b9af-bffd758c4633)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the Java implementation of MFTTransferService.resourceMetada and the response type it returns. Reproduce the directory metadata request and trace how resourcePath and friendlyName are populated. Done means the response contains the requested directory's expected path and/or friendly name, with tests covering the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.