Skip to content

Commit

Permalink
Merge pull request #130 from uio-bmi/bug-fix/incomplete-filepath-remo…
Browse files Browse the repository at this point in the history
…ve-msg

fix the filepath in the message to cega for remove operation.
  • Loading branch information
Parisa68 authored Feb 16, 2024
2 parents 2041c6a + d988ef9 commit c045215
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ public void publishRemove(Object result) {

FileDescriptor fileDescriptor = new FileDescriptor();
fileDescriptor.setUser(request.getAttribute(EGA_USERNAME).toString());
fileDescriptor.setFilePath(request.getAttribute(FILE_NAME).toString());
String fileName = request.getAttribute(FILE_NAME).toString();
fileDescriptor.setFilePath(String.format(tsdInboxLocation, tsdProjectId, request.getAttribute(ELIXIR_ID).toString()) + fileName);
fileDescriptor.setOperation(Operation.REMOVE.name().toLowerCase());
publishMessage(fileDescriptor);
}
Expand Down

0 comments on commit c045215

Please sign in to comment.