Skip to content

Commit

Permalink
fixed bug in authentication of download file by name
Browse files Browse the repository at this point in the history
  • Loading branch information
pcampanella committed Sep 15, 2020
1 parent 2cc51ec commit 1df7066
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,13 @@ public Response downloadEntryByName(@HeaderParam("x-session-token") String sSess
Utils.debugLog("CatalogResources.DownloadEntryByName( Session: " + sSessionId + ", TokenSession: "+ sTokenSessionId + ", FileName: " + sFileName + ", Ws: " + sWorkspace);

try {

if (Utils.isNullOrEmpty(sSessionId)) sSessionId = sTokenSessionId;


Utils.debugLog("CatalogResources.DownloadEntryByName: call get user from session: " + sSessionId);

User oUser = Wasdi.getUserFromSession(sTokenSessionId);
User oUser = Wasdi.getUserFromSession(sSessionId);

if (oUser == null) {
Utils.debugLog("CatalogResources.DownloadEntryByName: user not authorized");
Expand Down

0 comments on commit 1df7066

Please sign in to comment.