Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vlkb-soda
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ViaLactea
vlkb-soda
Commits
2cf01a36
Commit
2cf01a36
authored
3 weeks ago
by
Robert Butora
Browse files
Options
Downloads
Patches
Plain Diff
disables download of complete fitsfile/hdu when no filtering params given (only ID)
parent
e988d0e6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
data-access/servlet/src/main/java/cutout/webapi/ServletCutout.java
+7
-0
7 additions, 0 deletions
...ss/servlet/src/main/java/cutout/webapi/ServletCutout.java
with
7 additions
and
0 deletions
data-access/servlet/src/main/java/cutout/webapi/ServletCutout.java
+
7
−
0
View file @
2cf01a36
...
@@ -263,6 +263,13 @@ public class ServletCutout extends HttpServlet
...
@@ -263,6 +263,13 @@ public class ServletCutout extends HttpServlet
Pol
pol
=
Pol
.
parsePol
(
params
);
Pol
pol
=
Pol
.
parsePol
(
params
);
String
pixels
=
SingleStringParam
.
parseSingleStringParam
(
params
,
"PIXELS"
);
String
pixels
=
SingleStringParam
.
parseSingleStringParam
(
params
,
"PIXELS"
);
// disable complete file/hdu download
if
(
(
id
!=
null
)
&&
(
pos
==
null
)
&&
(
band
==
null
)
&&
(
time
==
null
)
&&
(
pol
==
null
)
&&
(
pixels
==
null
))
{
throw
new
IllegalArgumentException
(
"At least one of filtering args must be given."
);
}
String
respFormat
=
sodaReq_getResponseFormat
(
request
,
DEFAULT_RESPONSEFORMAT
);
String
respFormat
=
sodaReq_getResponseFormat
(
request
,
DEFAULT_RESPONSEFORMAT
);
LOGGER
.
finest
(
"responseFormat: "
+
respFormat
);
LOGGER
.
finest
(
"responseFormat: "
+
respFormat
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment