Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vlkb-siav2
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-siav2
Commits
d840105e
Commit
d840105e
authored
1 year ago
by
Robert Butora
Browse files
Options
Downloads
Patches
Plain Diff
config: removes obsolete unused serviceUrls from AuthorizationFilter settings
parent
643ebe34
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
data-discovery/config/discovery.properties.in
+0
-3
0 additions, 3 deletions
data-discovery/config/discovery.properties.in
data-discovery/src/main/java/vlkb/webapi/AuthorizationResponseSettings.java
+2
-39
2 additions, 39 deletions
.../main/java/vlkb/webapi/AuthorizationResponseSettings.java
with
2 additions
and
42 deletions
data-discovery/config/discovery.properties.in
+
0
−
3
View file @
d840105e
...
...
@@ -6,7 +6,4 @@
#db_user_name=vialactea
#db_password=IA2lbt09
# obs_publisher_did (FIXME used only in (Db)AuthPolicy while database access to convert between legacy pubdid and ivoid)
#ivoid_authority=ia2.inaf.it
#ivoid_resource_key=vlkb/datasets
This diff is collapsed.
Click to expand it.
data-discovery/src/main/java/vlkb/webapi/AuthorizationResponseSettings.java
+
2
−
39
View file @
d840105e
...
...
@@ -30,31 +30,7 @@ class AuthorizationResponseSettings
}
}
public
static
class
ServiceUrls
{
private
String
cutoutUrl
;
private
String
mergeUrl
;
private
String
surveysAbsPathname
;
public
boolean
cutoutUrlIsSet
()
{
return
(
cutoutUrl
!=
null
)
&&
cutoutUrl
.
trim
().
isEmpty
();
}
public
boolean
mergeUrlIsSet
()
{
return
(
mergeUrl
!=
null
)
&&
mergeUrl
.
trim
().
isEmpty
();
}
public
boolean
surveysAbsPathnameIsSet
()
{
return
(
surveysAbsPathname
!=
null
)
&&
surveysAbsPathname
.
trim
().
isEmpty
();
}
public
String
cutoutUrl
()
{
return
cutoutUrl
;}
public
String
mergeUrl
()
{
return
mergeUrl
;}
public
String
surveysAbsPathname
()
{
return
surveysAbsPathname
;}
public
String
toString
()
{
return
cutoutUrl
+
" "
+
mergeUrl
+
" "
+
surveysAbsPathname
;
}
}
public
DBConn
dbConn
;
public
ServiceUrls
serviceUrls
;
// will not start without config-file; no reasonable code-defaults can be invented
...
...
@@ -70,9 +46,8 @@ class AuthorizationResponseSettings
properties
.
load
(
ins
);
DBConn
dbConn
=
loadDBConn
(
properties
);
ServiceUrls
serviceUrls
=
loadServiceUrls
(
properties
);
return
new
AuthorizationResponseSettings
(
dbConn
,
serviceUrls
);
return
new
AuthorizationResponseSettings
(
dbConn
);
}
else
{
...
...
@@ -89,10 +64,9 @@ class AuthorizationResponseSettings
private
AuthorizationResponseSettings
(
DBConn
dbConn
,
ServiceUrls
serviceUrls
)
private
AuthorizationResponseSettings
(
DBConn
dbConn
)
{
this
.
dbConn
=
dbConn
;
this
.
serviceUrls
=
serviceUrls
;
}
...
...
@@ -107,16 +81,5 @@ class AuthorizationResponseSettings
return
dbConn
;
}
private
static
ServiceUrls
loadServiceUrls
(
Properties
properties
)
{
ServiceUrls
serviceUrls
=
new
ServiceUrls
();
serviceUrls
.
cutoutUrl
=
properties
.
getProperty
(
"cutout_url"
,
""
).
strip
();
serviceUrls
.
mergeUrl
=
properties
.
getProperty
(
"merge_url"
,
""
).
strip
();
serviceUrls
.
surveysAbsPathname
=
properties
.
getProperty
(
"surveys_metadata_abs_pathname"
,
"/srv/surveys/surveys_metadata.csv"
).
strip
();
return
serviceUrls
;
}
}
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