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.
Isn't the saying "twice is enemy action..."?The alternative, I think, is to change the opendap .html response to use the % encoded form
for '[' and ']' when it constructs requests. WIll ncss have same problem?In any case,I do not know if changing the .html response would cause trouble when using
older versions of tomcat that by default allow []. =Dennis Heimbigner Unidata On 7/30/2018 4:36 PM, Sean Arms wrote:
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! SeanOn Mon, Jul 30, 2018 at 12:58 PM Roy Mendelssohn - NOAA Federal <roy.mendelssohn@xxxxxxxx <mailto: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 <mailto: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 <mailto:thredds@xxxxxxxxxxxxxxxx> For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/ _______________________________________________ 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/
thredds
archives: