Re: [thredds] TDS5 Beta 2 and latest version of Tomcat

  • To: Roy Mendelssohn - NOAA Federal <roy.mendelssohn@xxxxxxxx>
  • Subject: Re: [thredds] TDS5 Beta 2 and latest version of Tomcat
  • From: Sean Arms <sarms@xxxxxxxx>
  • Date: Mon, 30 Jul 2018 16:36:15 -0600
Greetings Roy!

Thank you for your report! We had a user contact us last week thorough our
support channel who was having an issue with OPeNDAP requests not working,
due to [ and ], much like you report. This user found the following tweak
to Tomcat's server.xml that fixed the problem (specifically, the
relaxedQueryChars attribute):

<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" relaxedQueryChars="[]" />

The initial thought was that this was something particular to their server,
but I think your correct in that it's a change in how tomcat handles these
characters. The user who emailed us didn't include the version of Tomcat
they were using, so I'm not 100% sure, but this sure sounds like the issue.

What I don't know yet is if this must be configured at a level above the
TDS (like tomcat's server.xml), or if this something we could address in
the TDS codebase (in a servlet container agnostic way).

In your case, if you try the request but encode the square brackets by hand
using %5B for '[' and %5D for ']', does the query work?

Thank you again!

Sean




On Mon, Jul 30, 2018 at 12:58 PM Roy Mendelssohn - NOAA Federal <
roy.mendelssohn@xxxxxxxx> wrote:

> Hi All:
>
> Something we discovered is that Tomcat has made some changes in how it
> deals with percent encoding, and it appears to not work with the TDS5 Beta2
> release.  If I run in Tomcat 8.5.14,  using the default TDS settings that
> are installed if nothing else is there,  if I go to:
>
> http://localhost:8080/thredds/dodsC/testAll/2004050312_eta_211.nc.html
>
> select datetime and asked for ASCII,  it works.
>
> If I do the exact same thing with Tomcat 8.5.32,  I get a blank page.
> From looking at the Tomcat changelogs,  I think there may have been a
> change at 8.5.15. It appears to be something to do with  the handling of
> '[' and ']'.
>
> HTH,
>
> -Roy
>
>
>
> **********************
> "The contents of this message do not reflect any position of the U.S.
> Government or NOAA."
> **********************
> Roy Mendelssohn
> Supervisory Operations Research Analyst
> NOAA/NMFS
> Environmental Research Division
> Southwest Fisheries Science Center
> ***Note new street address***
> 110 McAllister Way
> Santa Cruz, CA 95060
> Phone: (831)-420-3666
> Fax: (831) 420-3980
> e-mail: Roy.Mendelssohn@xxxxxxxx www: http://www.pfeg.noaa.gov/
>
> "Old age and treachery will overcome youth and skill."
> "From those who have been given much, much will be expected"
> "the arc of the moral universe is long, but it bends toward justice" -MLK
> Jr.
>
> _______________________________________________
> NOTE: All exchanges posted to Unidata maintained email lists are
> recorded in the Unidata inquiry tracking system and made publicly
> available through the web.  Users who post to any of the lists we
> maintain are reminded to remove any personal information that they
> do not want to be made public.
>
>
> thredds mailing list
> thredds@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit:
> http://www.unidata.ucar.edu/mailing_lists/
>
  • 2018 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: