NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [thredds] Uncorrelate disk path and href for catalogRef and dataset in catalog.xml

Hello Dave,

thanks for your response. Unfortunately no, I'm migrating a 4.6 instance on bare metal to another 4.6 on Docker. But since the docs related to catalogRef doesn't seem to differ between 4.6 and 5.5, I was wondering if there was a solution for both versions. (I know 4.6 is not maintained anymore)
The ticket is still interesting for the following upgrades we would have.

Léo

Le 30/10/2024 à 16:01, David Robertson a écrit :
Hi,

If your THREDDS instance went from 4.6 to 5.x then you are probably running into the same thing I did that is detailed in the following GitHub issue:
https://github.com/Unidata/tds/issues/504

Dave

*From: *thredds <thredds-bounces@xxxxxxxxxxxxxxxx> on behalf of Léo Le Lonquer <leo.le.lonquer@xxxxxxxxxx>
*Date: *Wednesday, October 30, 2024 at 10:25 AM
*To: *thredds@xxxxxxxxxxxxxxxx <thredds@xxxxxxxxxxxxxxxx>
*Subject: *[thredds] Uncorrelate disk path and href for catalogRef and dataset in catalog.xml
Hello everyone,

I'm migrating Thredds instances, and as I do so, I'm also reorganising Thredds folders.
We have a large amount of catalogRef and datasets that are located 
under {tds.content.root.path}. I would like to move them all to a new 
folder {tds.content.root.path}/catalogs to simplify management.
However doing so, an extra /catalogs/ is added to the URL of each of 
the underlying datasets.
ex :

https://tds0.ifremer.fr/thredds/CERSAT.html => https://tds0.ifremer.fr/thredds/catalogs/CERSAT.html
My root catalog is the following :

<?xmlversion="1.0"encoding="UTF-8"?>

<catalogname="tds0"xmlns="http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0"; <http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0>xmlns:xlink="http://www.w3.org/1999/xlink"; <http://www.w3.org/1999/xlink>>
<catalogRefxlink:title="CERSAT"xlink:href="catalogs/CERSAT.xml"name=""/>

<catalogRefxlink:title="CORIOLIS"xlink:href="catalogs/CORIOLIS.xml"name=""/>

<catalogRefxlink:title="LPO"xlink:href="catalogs/LPO.xml"name=""/>

</catalog>

I tried several solution but none of them worked :

- adding in threddsConfig.xml a catalogRoot element pointing to a new catalog.xml file located at catalogs/catalog.xml. But it resolves as url : thredds/catalogs/catalog.html
- using attributes name, ID, alias, urlPath in the definition of 
catalogRef elements in catalog.xml file trying to truncate catalogs/ 
folder
- defining default catalog.xml at startup, but couldn't find a java 
parameter to do so. Only tds.content.root.path is settable.
It is quite important to keep the same urls while migrating as a lot 
of products stored in the Ifremer Thredds instances are referenced in 
multiple services with their urls.
Maybe I missed a configuration while reading the docs. Does anybody 
know if it's possible and how to do it ?
Thanks,

--

Léo Le Lonquer
Ingénieur Cloud pour la Science
Ifremer Centre Bretagne, 29280 Plouzané, France

--

Léo Le Lonquer
Ingénieur Cloud pour la Science
Ifremer Centre Bretagne, 29280 Plouzané, France
  • 2024 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: