Wait for the 1.6.2 release?
I’m kidding, but this is a bug that we found and fixed for 1.6.2, I believe. You can clear the site-wide anon script with a simple curl command, something like this:
curl --user admin:admin --request POST --data-ascii "anonScript=%2F%2F%20empty%20site-wide%20anon%20script" http://yourserver/data/services/settings
admin:admin of course becomes one of your system’s admin users.
One note: if you’re on Windows, you’ll need to double the % characters to escape them from the command shell interpreter, so %2F becomes %%2F, etc.
Actually, on re-reading your post, I’m not sure if I’m addressing exactly what you’re asking about. If you clear the anon script, this shouldn’t affect the archive process. It’s just that no anonymization will be performed based on the site-wide anon script. Any project- based scripts would still be applied. The bug I was addressing was a problem with updating and clearing the site-wide anon script. You are correct that we don’t have a feature to allow disabling the site-wide script. I believe this was a conscious decision, but I wasn’t actually part of that discussion so I’m not sure what the rationale was there.
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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
I think there was a bug where an empty anon script created havoc – as Rick said, fixed in 1.6.2.
I would guess that if you can’t set an empty script, it would be possible to set a short script that includes just one operation that’s more or less certain not to affect a real DICOM file, maybe like:
-(0001,0f00)
I haven’t tested this, but it really seems like it should work.
- Kevin
That curl command I had in my last post actually just set the script to be a comment:
// empty anon script
Or something like that. I don’t know if that would evaluate out to the same as an empty anon script though. It works in the dev tip code, but I haven’t tested it on 1.6.1.
I seem to remember that the bug involved scripts that didn’t include any operations – it wasn’t an empty script that caused problems so much as an empty parse tree.
Rick’s trivial script is better than mine if it works, but I suspect it won’t. Try his first and then mine.
I think you should be able to disable the site wide script entirely by doing a PUT to HOST/data/config/edit/image/dicom/status?activate=false
You might give that a shot first.
Tim
(0010,0010) := subject