Bug #967
closeddcmqrscp does not support C-GET for storage areas that are write protected
100%
Description
It is possible to defined storage areas for dcmqrscp as read-only (by specifiying "R" instead of "RW" in the configuration file).
In this case, dcmqrscp rejects all presentation contexts related to Storage SOP Classes when accepting incoming network associations for that storage area (identified by the called AETITLE).
Unfortunately, dcmqrscp also rejects presentation contexts related to Storage SOP Classes where role negotiation is in effect, i.e. the presentation contexts needed for image transmissions to the client in the C-GET protocol. Therefore, download attempts with a tool like getscu always fail when a storage area is read-only.
This should be fixed such that only those presentation contexts are rejected where dcmqrscp would act as SCP of a Storage SOP Class.