Re: [thredds] ampersands not working in viewer property URL

Hi Phil,
Thanks for the suggestion, but neither Hex nor base64 encoding works. Although 
I no longer get the catalogInit error from TDS, LAS complains about illegal 
characters or illegal IDs in the URL. Unidata/TDS folks: can you add support 
for ampersands in the viewer URL in a future release?
Thanks!,
John Maurer
Hawaii Ocean Observing System (HiOOS)

----- Original Message -----
From: Phil Cogbill <Phil.Cogbill@xxxxxxxx>
Date: Friday, June 25, 2010 2:17 am
Subject: Re: [thredds] ampersands not working in viewer property URL
To: "John Maurer, IV" <jmaurer@xxxxxxxxxx>

 
     -----------------------------------------------------------
| 

>  What a great idea!  I had never thought about using the view for LAS. Maybe 
> different encoding would work?  
 > 
>  & can be encoded like this in Hex...
>  %26 
>  or this in base 64 
>  Jg==
 > 
>  So maybe this will work (hex)...
 > 
 > http://oos.soest.hawaii.edu/las/getUI.do?%64%73%69%64%3D%68%69%72%6F%6D%73%5F%68%69%69%67%26%63%61%74%69%64%3D%68%69%72%6F%6D%73%5F%68%69%69%67%26%76%61%72%69%64%3D%74%65%6D%70%2D%68%69%72%6F%6D%73%5F%68%69%69%67%26%70%6C%6F%74%3D%50%6C%6F%74%5F%32%44%5F%58%59%5F%7A%6F%6F%6D%26%76%69%65%77%3D%78%79
 > 
 > http://oos.soest.hawaii.edu/las/getUI.do?ZHNpZD1oaXJvbXNfaGlpZyZjYXRpZD1oaXJvbXNfaGlpZyZ2YXJpZD10ZW1wLWhpcm9tc19oaWln
 >  JnBsb3Q9UGxvdF8yRF9YWV96b29tJnZpZXc9eHk=
 > 
>  I would like to poke around and try this on our THREDDS server also.
 > 
>  Phil
 > 
 
> Phil Cogbill > Computer Systems Analyst, STG, Inc., Government Contractor > 
> CSMD/DAAB > National Climatic Data Center > 115 Patton Ave. > Asheville, NC 
> 28801-5001 > Phil.Cogbill@xxxxxxxx > 828-271-4474 >  
 > 
>  John Maurer, IV wrote: Hi All,
>  Are we not allowed to include ampersands in the URL string for adding a 
> viewer property? Even when I encode them as &amp; I get the same error. I am 
> trying to point a viewer directly to a screen in Live Access Server (LAS) 
> that will display the dataset being viewed in TDS; as an example, here's a 
> URL to our ROMS FMRC model output: 
> http://oos.soest.hawaii.edu/las/getUI.do?dsid=hiroms_hiig&catid=hiroms_hiig&varid=temp-hiroms_hiig&plot=Plot_2D_XY_zoom&view=xy.
>  When I add this URL in the viewer property, the catalog for that datasets 
> page fails to load (HTTP Status 404: Not Found). threddsServlet.log and 
> catalina.out have nothing much to say, but here is what I found in 
> catalogInit.log about this:
   > 
>  readCatalog(): full 
> path=/usr/local/tomcat/content/thredds/idd/ocn_mod_hiig.xml; 
> path=idd/ocn_mod_hiig.xml
>  readCatalog(): invalid catalog -- ----Catalog Validation version 1.0.01
>  **Fatal:  InvCatalogFactory.readXML failed
>   Exception= org.jdom.input.JDOMParseException Error on line 73: The 
> reference to entity "catid" must end with the ';' delimiter.
>   fatalMessages= *** XML parser fatalError (73:101)= The reference to entity 
> "catid" must end with the ';' delimiter.
   > 
>   errMessages=
>   warnMessages=
   > 
>  initCatalog(): failed to read catalog 
> </usr/local/tomcat/content/thredds/idd/ocn_mod_hiig.xml>.
   > 
>  Note that it is referring to "catid" that is in the URL I am trying to use. 
> Is there a workaround for this or is this a feature I can request for a 
> future TDS release? Thanks!
>  Cheers,
>  John Maurer
>  Hawaii Ocean Observing System (HiOOS)
   > 
>  P.S. Here is the entry in my TDS catalog about this:
   > 
>    <datasetFmrc name="HI-ROMS Forecast Model Run Collection"
>                 ID="roms_hiig_forecast"
>                 path="hioos/roms_forec/hiig"
>                 collectionType="ForecastModelRuns">
   > 
>      <metadata inherited="true">
>        <property name="viewer" 
> value="http://oos.soest.hawaii.edu/las/getUI.do?dsid=hiroms_hiig&catid=hiroms_hiig&varid=temp-hiroms_hiig&plot=Plot_2D_XY_zoom&view=xy,Live
>  Access Server (LAS)" />
>      </metadata>
   > 
>      [...etc...]   -----------------------------------------------------------
>  > _______________________________________________ > thredds mailing list > 
> thredds@xxxxxxxxxxxxxxxx > For list information or to unsubscribe,  visit: 
> http://www.unidata.ucar.edu/mailing_lists/    |
-----------------------------------------------------------
  


  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: