Skip to content

Commit 8d8f00d

Browse files
committed
IRSA-257: added cookies when getting IBE url download
1 parent a065d2c commit 8d8f00d

File tree

1 file changed

+4
-1
lines changed
  • src/firefly/java/edu/caltech/ipac/astro/ibe

1 file changed

+4
-1
lines changed

src/firefly/java/edu/caltech/ipac/astro/ibe/IBE.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import edu.caltech.ipac.astro.ibe.datasource.PtfIbeDataSource;
99
import edu.caltech.ipac.astro.ibe.datasource.WiseIbeDataSource;
1010
import edu.caltech.ipac.firefly.data.FileInfo;
11+
import edu.caltech.ipac.firefly.server.ServerContext;
1112
import edu.caltech.ipac.firefly.server.query.DataAccessException;
1213
import edu.caltech.ipac.firefly.server.query.URLFileInfoProcessor;
1314
import edu.caltech.ipac.util.DataGroup;
@@ -176,7 +177,9 @@ private FileInfo downloadViaUrl(URL url, Map<String, String> sourceParams, File
176177
progressKey= sourceParams.get("ProgressKey");
177178
plotId= sourceParams.get("plotId");
178179
}
179-
return URLFileInfoProcessor.retrieveViaURL(url,dir, progressKey, plotId, null, null);
180+
Map<String, String> identityCookies = ServerContext.getRequestOwner().getIdentityCookies();
181+
182+
return URLFileInfoProcessor.retrieveViaURL(url,dir, progressKey, plotId, null, identityCookies);
180183
} catch (DataAccessException e) {
181184
throw new IOException(e.getMessage(), e);
182185
}

0 commit comments

Comments
 (0)