Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

siteUrl currently exists in two places #80

Open
paddyroddy opened this issue Feb 21, 2024 · 1 comment
Open

siteUrl currently exists in two places #80

paddyroddy opened this issue Feb 21, 2024 · 1 comment
Labels
problem Something isn't working

Comments

@paddyroddy
Copy link
Member

paddyroddy commented Feb 21, 2024

Short Description

Currently, siteUrl exists in two places:

  1. siteUrl={{ xnat_web_server.url }}
  2. "siteUrl": "{{ xnat_web_server.url }}",

It seems that only the latter is actually used. Possibly the latter overwrites the former? Either way, this should be addressed.

Evidence/Steps to Reproduce

No response

Acceptance Criteria/Expected Behaviour

No response

Details

No response

Resolution

No response

@paddyroddy paddyroddy added the problem Something isn't working label Feb 21, 2024
@p-j-smith
Copy link
Contributor

Looking again at this, all of the variables in the siteConfig section of prefs-init.j2 are repeated in xnat-settings.json.j2.

[siteConfig]
siteId={{ xnat_config.site_name }}
siteUrl={{ xnat_web_server.url }}
adminEmail={{ xnat_common_config.admin_email }}
archivePath={{ xnat_archive_dir }}
prearchivePath={{ xnat_prearchive_dir }}
cachePath={{ xnat_cache_dir }}
buildPath={{ xnat_build_dir }}
ftpPath={{ xnat_ftp_dir }}
pipelinePath={{ xnat_pipeline_dir }}
requireLogin=true
userRegistration=false
enableCsrfToken=true
sessionTimeout=1 hour
initialized=false

The only difference is the value of initialized, which is true in `xnat-settings.json.j2. I think we probably don't need to set them again with the config (or alternatively remove them from the prefs-init).

And the XNAT docs suggest that you only set the paths (archivePath etc.) once, and then don't change them. Not sure what would happen if we changed these paths during an upgrade?

@HChughtai HChughtai changed the title 🐛 [BUG]: siteUrl currently exists in two places siteUrl currently exists in two places Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants