[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: difference in new XML standard

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:

My new xml-file I today noticed makes a url like this(not online yet):
(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/"; />

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 R. Davis                                Telephone: (303) 497-8155
Software Engineer                             Fax:       (303) 497-8690
UCAR Unidata Program Center                   E-mail:    address@hidden
P.O. Box 3000
Boulder, CO  80307-3000                       http://www.unidata.ucar.edu/

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.