It turns out that one can submit a nonsense value for 'uri' parameter, by accident or intentionally, which might cause PC service trouble - trying to extract and convert a very large model!
For example: http://www.pathwaycommons.org/pc2/get?uri=htttp://identifiers.org/reactome/R-HSA-6803211&format=SBGN
Looks, the problem starts here, and we need to sanitize those "identifiers" (supposedly) - escape Lucene special symbols (not just one ':'), because otherwise PC internally creates an insane query like this, which surprisingly "works" (>660K hits)!
It turns out that one can submit a nonsense value for 'uri' parameter, by accident or intentionally, which might cause PC service trouble - trying to extract and convert a very large model!
For example:
http://www.pathwaycommons.org/pc2/get?uri=htttp://identifiers.org/reactome/R-HSA-6803211&format=SBGN
Looks, the problem starts here, and we need to sanitize those "identifiers" (supposedly) - escape Lucene special symbols (not just one ':'), because otherwise PC internally creates an insane query like this, which surprisingly "works" (>660K hits)!