Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • autosubmit autosubmit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 338
    • Issues 338
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 21
    • Merge requests 21
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • autosubmitautosubmit
  • Issues
  • #1105
Closed
Open
Issue created Aug 06, 2023 by Bruno de Paula Kinoshita@bdepaulaMaintainer

`autosubmit configure` not handling paths that end with slash

Testing autosubmit configure inside a container, I found that this command:

RUN autosubmit configure \
      -db "${AUTOSUBMIT_ROOT_DIR}/database/" \
      -dbf autosubmit.db \
      -lr "${AUTOSUBMIT_ROOT_DIR}/experiments/" && \
    autosubmit install

where I have

ARG AUTOSUBMIT_ROOT_DIR=/app/autosubmit/

results in the following .autosubmitrc:

[database]
path = /app/autosubmit//database/
filename = autosubmit.db

[local]
path = /app/autosubmit//experiments/

[globallogs]
path = /app/autosubmit//experiments/logs

[structures]
path = /app/autosubmit//experiments/metadata/structures

[historicdb]
path = /app/autosubmit//experiments/metadata/data

[historiclog]
path = /app/autosubmit//experiments/metadata/logs

[autosubmitapi]
url = http://192.168.11.91:8081 # Replace me?

I believe this is harmless, but it would still be safer to handle the slashes in Python and make sure we use something like .join(paths) and let Python's stdlib functions handle that.

I'm running this in the Docker image:

RUN pip install autosubmit==4.0.84
Assignee
Assign to
Time tracking