Re: Plus signs in dataset names and IDs?


So my catalog contains this dataset:

    <dataset name="CCEXTTAU-INTEX.Organic-plus-Black.Carbon.Aerosol"
ID="wcs/DataFed/NetCDF/CCEXTTAU-INTEX.Organic-+- Black.Carbon.Aerosol" > <property name="wcs-request" value="http:// SERVICE=WCS&amp;REQUEST=GetCoverage&amp;VERSION=1.0.0&amp;CRS=EPSG: 4326&amp;COVERAGE=GOCART_G_OL.CCEXTTAU&amp;TIME=2007-06-24T23:00:00&amp; BBOX=-180,-90,180,90,0,0&amp;WIDTH=-1&amp;HEIGHT=-1&amp;DEPTH=-1&amp;FOR MAT=NetCDF" />
        <property name="returnType" value="netCDF" />
        <property name="cacheTime" value="600" />

I I changed the "+ to the word "plus" in all cases. Then I went back and tried making one "plus" a "+" and checked again... Anyway, the version above works when I try to load the catalog:

And causes the NullPointerException when I try to load the dataset page: dataset=wcs/DataFed/NetCDF/CCEXTTAU-INTEX.Organic-+-Black.Carbon.Aerosol

So it looks like the we are seeing the same problem, but with a different symptoms.


On Jun 29, 2007, at 12:15 PM, Ethan Davis wrote:

Hi Nathan,

What kind of request are you getting this error on? Can you give me the full URL?

In the mean time, here's what I found ...

I'm not getting a NullPointerException like you are but I'm getting some failed requests that should succeed.

A THREDDS catalog can legally have dataset names and IDs that contain plus signs ("+"). The TDS HTML view of a catalog is mostly fine as well. The problem is when a dataset ID containing a plus sign is used in the query part of a URL as a parameter value. For instance, here's an example of an HTML view of a single dataset:

http://localhost:8080/thredds/catalog/testAll/test+dir/catalog.html? dataset=testDatasetScan/test+dir

The plus sign that is part of the dataset parameter value should be url-encoded as "%2B" but as is when the "dataset" parameter value is requested (req.getParameter("dataset")) the return value is "testDatasetScan/test dir".

We'll add this to our list of needed fixes. But in the mean time, try to avoid directories and datasets with plus signs in their names. Same goes for spaces.

Sorry for the restrictions.


Nathan Potter wrote:

Is the "+" character allowed in either the name or ID attributes of a <dataset>?

When I tried that I got a null pointer exception from the THREDDS code (see stack trace below).

When I removed the "+" things worked.


2007-06-28T16:06:47.584 -0700 [ 1337941][ 26] [HTTP-GET] DEBUG - opendap.coreServlet.DispatchServlet - Request being handled by: opendap.bes.ThreddsDispatchHandler 2007-06-28T16:06:47.585 -0700 [ 1337942][ 26] [HTTP-GET] ERROR - opendap.coreServlet.OPeNDAPException - anyExceptionHandler (): java.lang.NullPointerException
at thredds.servlet.CatalogServicesServlet.handleCatalogServiceRequest ( at thredds.servlet.DataRootHandler.processReqForCatalog ( at opendap.bes.ThreddsDispatchHandler.handleRequest ( at opendap.coreServlet.DispatchServlet.doGet ( at javax.servlet.http.HttpServlet.service( 689) at javax.servlet.http.HttpServlet.service( 802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter ( at org.apache.catalina.core.ApplicationFilterChain.doFilter ( at org.apache.catalina.core.StandardWrapperValve.invoke ( at org.apache.catalina.core.StandardContextValve.invoke ( at org.apache.catalina.core.StandardHostValve.invoke ( at org.apache.catalina.valves.ErrorReportValve.invoke ( at org.apache.catalina.valves.AccessLogValve.invoke ( at org.apache.catalina.core.StandardEngineValve.invoke ( at org.apache.catalina.connector.CoyoteAdapter.service ( at org.apache.coyote.http11.Http11Processor.process ( at org.apache.coyote.http11.Http11BaseProtocol $Http11ConnectionHandler.processConnection( 664) at ( at ( at org.apache.tomcat.util.threads.ThreadPool $

= Nathan Potter ndp at
OPeNDAP, Inc.                        541.752.1852

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:// ---------------------------------------------------------------------- -----

= Nathan Potter ndp at
OPeNDAP, Inc.                        541.752.1852

To unsubscribe thredds, visit:

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