File tree Expand file tree Collapse file tree
doc/sphinx-guides/source/installation
src/main/java/edu/harvard/iq/dataverse/dataaccess Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -222,11 +222,7 @@ Then run the create command:
222222
223223``./asadmin $ASADMIN_OPTS create-jvm-options "\-Ddataverse.files.storage-driver-id=swift" ``
224224
225- You also have the option to set a custom container name separator. It is initialized to ``_ ``, so you must first run the delete command:
226-
227- ``./asadmin $ASADMIN_OPTS delete-jvm-options "\-Ddataverse.files.swift-folder-path-separator=_" ``
228-
229- And then run the create command:
225+ You also have the option to set a custom container name separator. It is initialized to ``_ ``, but you can change it by running the create command:
230226
231227``./asadmin $ASADMIN_OPTS create-jvm-options "\-Ddataverse.files.swift-folder-path-separator=-" ``
232228
Original file line number Diff line number Diff line change @@ -666,6 +666,9 @@ private String getSwiftFileURI(StoredObject fileObject) throws IOException {
666666
667667 public String getSwiftContainerName () {
668668 String swiftFolderPathSeparator = System .getProperty ("dataverse.files.swift-folder-path-separator" );
669+ if (swiftFolderPathSeparator == null ) {
670+ swiftFolderPathSeparator = "_" ;
671+ }
669672 String authorityNoSlashes = this .getDataFile ().getOwner ().getAuthority ().replace (this .getDataFile ().getOwner ().getDoiSeparator (), swiftFolderPathSeparator );
670673 String containerName = this .getDataFile ().getOwner ().getProtocol () + swiftFolderPathSeparator +
671674 authorityNoSlashes .replace ("." , swiftFolderPathSeparator ) +
You can’t perform that action at this time.
0 commit comments