JeffersonLab / cnm

CEBAF nomenclature manager app
https://ace.jlab.org/cnm
MIT License
0 stars 0 forks source link

cnm/export/cnm.pdf path is expected #2

Open slominskir opened 11 months ago

slominskir commented 11 months ago

We've switched to using the smoothness lib provided PDF servlet, but the CNM app historically exposed the PDF at the path cnm/export/cnd.pdf. To be consistent with Excel and HTML export we may want to expose the PDF export at that path as well.

slominskir commented 11 months ago

If we do update this we need to update cebaf:/etc/httpd/conf.local/cnd_proxy..conf and replace

RedirectMatch 301 /cnd/cnd.pdf https://ace.jlab.org/cnm/convert?filename=cnd.pdf\&type=pdf\&url=%2Fcnm%2Fexport%2Fcnd.html

with:

ProxyPass /cnd/cnd.pdf https://ace.jlab.org/cnm/export/cnd.pdf

Aside: during the migration from accweb the redirects for these exports didn't propagate and the config on cebaf server needed to be updated directly. This is due to paths after the host not being identical - specifically the cnm path part is replaced with cnd. Also since the PDF path changed during migration the old path on accweb no longer works (I could add a rewrite/redirect, but doesn't seem critical - I did add this rewrite/redirect on cebaf).