URL quoting required after 1.8.3 upgrade (from 1.7.6)

30 views
Skip to first unread message

Martin Boswell

unread,
Nov 18, 2021, 6:07:31 PM11/18/21
to xnat_discussion
XNAT group,

After upgrading from XNAT 1.7.6 to 1.8.3 (and Tomcat 7 to 9, Postgres 11 to 12), I've discovered that certain URLs must be quoted in order to work properly (which was not the case before).  

For instance, in this File Manager for an MR session with a Freesurfer assessor, if I click on the aseg.mgz file, the browser will download it, but if I click on the aparc+aseg.mgz file, it will produce a 404 error.  

xnat mri freesurfer File Manager gui.png

From the log, localhost_access_log.2021-11-18.txt:  

127.0.0.1 - - [18/Nov/2021:14:39:16 -0800] "GET /data/experiments/MyXNATServer01_E00047/assessors/MyXNATServer01_E00047_freesurfer_20211117111936/out/resources/184398/files/session_label/mri/aparc+aseg.mgz HTTP/1.0" 404 747
127.0.0.1 - - [18/Nov/2021:14:39:53 -0800] "GET /data/experiments/MyXNATServer01_E00047/assessors/MyXNATServer01_E00047_freesurfer_20211117111936/out/resources/184398/files/session_label/mri/aseg.mgz HTTP/1.0" 200 318773

That first request for aparc+aseg.mgz fails (with 404), whereas the 2nd for aseg.mgz succeeds.  

All of my pipelines that retrieved the aparc+aseg file (by name) required that I quote the URL first, so again, the first of these fails, the second of succeeds (using python requests library):  

/data/experiments/MyXNATServer01_E00047/assessors/MyXNATServer01_E00047_freesurfer_20211117111936/out/resources/184398/files/B21-225_MRI_2021-08-03_3T_UCSF/mri/aparc+aseg.mgz
/data/experiments/MyXNATServer01_E00047/assessors/MyXNATServer01_E00047_freesurfer_20211117111936/out/resources/184398/files/B21-225_MRI_2021-08-03_3T_UCSF/mri/aparc%2Baseg.mgz

The pipeline issue was easily solved, but does anyone know how I can fix this for the XNAT Manage Files dialog (before users run into the issue).  Perhaps this is a Tomcat issue rather than XNAT?

Thanks for any ideas.  

- Martin  

Moore, Charlie

unread,
Nov 19, 2021, 11:10:17 AM11/19/21
to xnat_di...@googlegroups.com
Hi Martin,

I can recreate this; I've added a ticket for it in our JIRA here: https://issues.xnat.org/browse/XNAT-6947 . Unfortunately, I'm not aware of a way you could really "fix" Manage Files on your end.

Thanks,
Charlie

From: xnat_di...@googlegroups.com <xnat_di...@googlegroups.com> on behalf of Martin Boswell <msbo...@lbl.gov>
Sent: Thursday, November 18, 2021 5:07 PM
To: xnat_discussion <xnat_di...@googlegroups.com>
Subject: [XNAT Discussion] URL quoting required after 1.8.3 upgrade (from 1.7.6)
 

* External Email - Caution *

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/a4da13ab-f32a-4c48-afe5-0dce9cf89751n%40googlegroups.com.

 


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.

Martin Boswell

unread,
Nov 19, 2021, 12:34:46 PM11/19/21
to xnat_discussion
Got it, Charlie.  Obviously, it's not a huge problem.  Thanks for opening the issue.  

- Martin

Reply all
Reply to author
Forward
0 new messages