Joseph,
What version of XNAT are you running? I believe this should be possible as of 1.6.4.
Thanks,
Charlie
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To post to this group, send email to
xnat_di...@googlegroups.com.
Visit this group at http://groups.google.com/group/xnat_discussion.
For more options, visit https://groups.google.com/d/optout.
Other than an upgrade to 1.6.4, I’m not sure what your options are for a workaround. Rick, if you have any ideas, the original bug where Jenny wanted this is XARC-1471 (this is not publicly accessible, sorry).
Thanks,
Charlie
Rick Herrick
Sr. Programmer/Analyst
Neuroinformatics Research Group
Washington University School of Medicine
(314) 740-5961
By default, you still can’t re-use previously used project IDs. This is controlled by the “security.allowProjectIdReuse” site configuration property, which defaults to false. You set this to true with a call to the REST API:
$ http --session=admin --print=b POST xnat-dev04.nrg.mir/xapi/siteConfig/security.allowProjectIdReuse <<< "true"
$ http --session=admin --print=b xnat-dev04.nrg.mir/xapi/siteConfig/security.allowProjectIdReuse
true
With that, you should be to re-use project IDs of projects that are deleted after setting that property. To re-use the project IDs of projects deleted before setting the property, you’ll also need to run a query to update your XNAT installation’s project history table:
xnat=> UPDATE xnat_projectdata_history SET id = CONCAT(id, EXTRACT(EPOCH FROM change_date) * 1000);
This needs to be run against the database for your XNAT server, either using the psql command-line client or some sort of admin UI for the database like pgAdmin. You could run it from the command line by wrapping up the psql call as well:
$ sudo -u xnat psql -c "UPDATE xnat_projectdata_history SET id = CONCAT(id, EXTRACT(EPOCH FROM change_date) * 1000)"
You’d need to change the user names to have the correct XNAT service (i.e. Tomcat) account and database user names.
--
Rick Herrick
Sr. Programmer/Analyst
Neuroinformatics Research Group
Washington University School of Medicine
Phone: +1 (314) 273-1645
Visit this group at https://groups.google.com/group/xnat_discussion.
For more options, visit https://groups.google.com/d/optout.
The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.