Hi Bjørge,
Bjørge Solli wrote:
Hi, I'm hoping John or someone else can answer this.
I'm trying to get my old urls to look as much alike as possible as before when
using aggregation in the catalog file, and migrating from the 0.6
xml-standard to 1.0.1. (thredds 2.0b to 3.6)
My old service-tag looked like this:
<service name="TOPAZ" serviceType="OpenDAP"
base="http://nerscweb.bccs.uib.no/nersc/nph-dods/mersea-ip/arctic/mersea-class1/" />
which made the url look like this:
http://topaz.nersc.no/thredds/dodsC/mersea-ip-topaz-class1-arctic-b20051102.html
My new xml-file I today noticed makes a url like this(not online yet):
http://topaz.nersc.no/thredds/dodsC/topaz/mersea-ip-topaz-class1-arctic-b20051102.html
(notice the 'topaz')
The service tag that makes such links look like this:
<service name="TOPAZ" serviceType="OpenDAP" base="/thredds/dodsC/">
<datasetRoot path="topaz"
location="http://nerscweb.bccs.uib.no/nersc/nph-dods/mersea-ip/arctic/mersea-class1/" />
</service>
I've tried setting the path to "", "/" and ".", but none of them work.
Should I consider this a lost case, or is there some way to get the old url
back?
If your three tries ("", "/", ".") don't work, I suspect the TDS does
not support the type of URL you are trying to recreate. The path
basically is an ID for mapping a URL to a datasetRoot or datasetScan.
The idea of an empty path (kind of a default datasetRoot) didn't come
up. I don't think there is a reason it couldn't be implemented. However,
I do know there are lots of places in the code that make sure the path
doesn't start with a slash ("/") and others that assume it is a
non-empty string.
Unfortunately, I don't know of a mod_rewrite equivalent in the servlet
world.
Ethan
--
Ethan R. Davis Telephone: (303) 497-8155
Software Engineer Fax: (303) 497-8690
UCAR Unidata Program Center E-mail: edavis@xxxxxxxx
P.O. Box 3000
Boulder, CO 80307-3000 http://www.unidata.ucar.edu/
---------------------------------------------------------------------------