[TinyOWS-dev] [tinyows] #30: Lierals in filter encoding and validation to know if it is a text or not

tinyows trac at camptocamp.com
Wed Apr 8 10:22:11 EST 2009


#30: Lierals in filter encoding and validation to know if it is a text or not
--------------------------------------+-------------------------------------
     Reporter:  assefa                |           Owner:            
         Type:  enhancement           |          Status:  new       
     Priority:  minor                 |         Version:  SVN       
     Keywords:  filter literal regex  |           Stage:  Unreviewed
     Approval:  Unnecessary           |           Patch:  None      
   Complexity:  Unknown               |   Compatibility:  Unknown   
Specification:  Unnecessary           |  
--------------------------------------+-------------------------------------
 Hi There,

  There is a test in fe_filter.c (function fe_expression) where a test is
 done on the value to see if it is string or not and add quotes around it
 (^[A-Za-z]).
  I had run into a problem a couple of weeks ago with values such as
 #FF0000 or /MyMap that did not validate this regex.
  Is it possible to modify a bit the regex to allow more elements to do be
 valid. Here is an expression that test if a value is a number
 ^(\d*(\.{1}\d*)?)$  (in the C code it would be "^(\\d*(\\.{1}\\d*)?)$".
  I have checked it through online regex validation tool
 (http://www.fileformat.info/tool/regex.htm) and it seems to validate
 numbers with or without decimal degrees.
  Maybe we could use that? Or any other for that matter that would allow me
 to add values stating with "weird" characters such a # and /

-- 
Ticket URL: <https://www.tinyows.org/trac/tinyows/ticket/30>
tinyows <https://www.tinyows.org/trac/tinyows>
TinyOWS


More information about the TinyOWS-dev mailing list