Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
c66f1df6
Commit
c66f1df6
authored
14 years ago
by
cramakri
Browse files
Options
Downloads
Patches
Plain Diff
MINOR: Fix problem obtaining data store base URL.
SVN: 16258
parent
c230a6b9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
datastore_server/source/java/ch/systemsx/cisd/openbis/dss/client/api/v1/impl/DssComponent.java
+27
-1
27 additions, 1 deletion
...msx/cisd/openbis/dss/client/api/v1/impl/DssComponent.java
with
27 additions
and
1 deletion
datastore_server/source/java/ch/systemsx/cisd/openbis/dss/client/api/v1/impl/DssComponent.java
+
27
−
1
View file @
c66f1df6
...
@@ -16,6 +16,8 @@
...
@@ -16,6 +16,8 @@
package
ch.systemsx.cisd.openbis.dss.client.api.v1.impl
;
package
ch.systemsx.cisd.openbis.dss.client.api.v1.impl
;
import
static
ch
.
systemsx
.
cisd
.
openbis
.
generic
.
shared
.
GenericSharedConstants
.
DATA_STORE_SERVER_WEB_APPLICATION_NAME
;
import
java.io.InputStream
;
import
java.io.InputStream
;
import
java.util.Collection
;
import
java.util.Collection
;
...
@@ -335,7 +337,7 @@ class AuthenticatedState extends AbstractDssComponentState
...
@@ -335,7 +337,7 @@ class AuthenticatedState extends AbstractDssComponentState
}
}
DataStore
dataStore
=
dataSetOpenBis
.
getDataStore
();
DataStore
dataStore
=
dataSetOpenBis
.
getDataStore
();
String
url
=
d
ataStore
.
getDownloadUrl
(
);
String
url
=
getD
ataStore
UrlFromDataStore
(
dataStore
);
IDssServiceRpcGeneric
dssService
=
getDssServiceForUrl
(
url
);
IDssServiceRpcGeneric
dssService
=
getDssServiceForUrl
(
url
);
// Return a proxy to the data set
// Return a proxy to the data set
...
@@ -428,6 +430,30 @@ class AuthenticatedState extends AbstractDssComponentState
...
@@ -428,6 +430,30 @@ class AuthenticatedState extends AbstractDssComponentState
+
IDssServiceRpcGeneric
.
DSS_SERVICE_NAME
+
" interface."
);
+
IDssServiceRpcGeneric
.
DSS_SERVICE_NAME
+
" interface."
);
}
}
/**
* The data store only stores the download url, get the data store url
*/
// TODO 2010-06-02, CR, , -- Put this method in a better place
// Maybe on DataStore.
private
String
getDataStoreUrlFromDataStore
(
DataStore
dataStore
)
{
String
datastoreUrl
=
dataStore
.
getDownloadUrl
();
// The url objained form a DataStore object is the *download* url. Convert this to the
// datastore URL
if
(
datastoreUrl
.
endsWith
(
DATA_STORE_SERVER_WEB_APPLICATION_NAME
))
{
datastoreUrl
=
datastoreUrl
.
substring
(
0
,
datastoreUrl
.
length
()
-
DATA_STORE_SERVER_WEB_APPLICATION_NAME
.
length
());
}
if
(
datastoreUrl
.
endsWith
(
"/"
))
{
datastoreUrl
=
datastoreUrl
.
substring
(
0
,
datastoreUrl
.
length
()
-
1
);
}
return
datastoreUrl
;
}
@Override
@Override
public
String
getSessionToken
()
public
String
getSessionToken
()
{
{
...
...
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