Skip to content

Commit ab8b7bf

Browse files
committed
Firefly-1932: Regression bug: Firefly not working with URL request time
1 parent 3acd5f7 commit ab8b7bf

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/firefly/java/edu/caltech/ipac/firefly/server/visualize/imageretrieve/ImageFileRetrieverFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public static FileRetriever getRetriever(WebPlotRequest request) {
4141
RequestType rType;
4242
if (request.containsParam(WebPlotRequest.TYPE)) {
4343
rType= request.getRequestType();
44+
if (rType==RequestType.URL) rType= RequestType.URI;
4445
}
4546
else {
4647
rType= guessRequestType(request);

src/firefly/java/edu/caltech/ipac/firefly/visualize/RequestType.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@
66
/**
77
* @author Trey Roby
88
*/
9-
public enum RequestType { SERVICE, FILE, URI, HiPS, ALL_SKY, BLANK, PROCESSOR,
10-
S3_AS_LOCAL, TRY_FILE_THEN_URL, WORKSPACE }
11-
9+
public enum RequestType { SERVICE, FILE, URI, URL, HiPS, ALL_SKY, BLANK, PROCESSOR,
10+
S3_AS_LOCAL, TRY_FILE_THEN_URL, WORKSPACE }

src/firefly/js/visualize/RequestType.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ import Enum from 'enum';
77
/**
88
* @typedef {Object} RequestType
99
* @summary web plot request type
10-
* @description can be 'SERVICE', 'FILE', 'URL', 'ALL_SKY', 'HiPS', 'PROCESSOR', 'TRY_FILE_THEN_URL', 'WORKSPACE', ''S3_AS_LOCAL'
10+
* @description can be 'SERVICE', 'FILE', 'URI', 'URL', 'ALL_SKY', 'HiPS', 'PROCESSOR', 'TRY_FILE_THEN_URL', 'WORKSPACE', ''S3_AS_LOCAL'
1111
*
1212
* @prop SERVICE
1313
* @prop FILE
1414
* @prop URI
15+
* @prop URL
1516
* @prop ALL_SKY
1617
* @prop HiPS
1718
* @prop PROCESSOR
@@ -24,6 +25,6 @@ import Enum from 'enum';
2425
*/
2526

2627
/** @type RequestType */
27-
export const RequestType= new Enum([ 'SERVICE', 'FILE', 'URI', 'ALL_SKY', 'HiPS',
28+
export const RequestType= new Enum([ 'SERVICE', 'FILE', 'URI', 'URL', 'ALL_SKY', 'HiPS',
2829
'PROCESSOR', 'TRY_FILE_THEN_URL', 'WORKSPACE'],
2930
{ ignoreCase: true });

0 commit comments

Comments
 (0)