Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public ResponseEntity<?> getWfsDownloadableFields(String collectionId, FeatureRe
*
* @param collectionId - The uuid of dataset
* @param request - Request to get field given a WMS layer name
* @return - The downloadable field name
* @return - The downloadable field name, or UNAUTHORIZED if it is not in white list
*/
public ResponseEntity<?> getWmsDownloadableFields(String collectionId, FeatureRequest request) {

Expand All @@ -119,7 +119,7 @@ public ResponseEntity<?> getWmsDownloadableFields(String collectionId, FeatureRe

// Temp block and show only white list uuid, the other uuid need QA check before release.
if (request.getEnableGeoServerWhiteList() && wmsDefaultParam.getAllowId() != null && !wmsDefaultParam.getAllowId().contains(collectionId)) {
return ResponseEntity.status(HttpStatus.FORBIDDEN).build();
return ResponseEntity.status(HttpStatus.UNAUTHORIZED).build();
}
else {
List<DownloadableFieldModel> result = wmsServer.getDownloadableFields(collectionId, request);
Expand Down
Loading