Apache OpenOffice (AOO) Bugzilla – Issue 63748
Named Character Classes with Advanced Filter
Last modified: 2017-05-20 11:11:11 UTC
Named character classes like [:digit:] are changed to ucase [:DIGIT:] which makes the filter unusable (never matches). In the UI you can see the modified filter in the standard filter dialog. Changing the filter to lowercase class names makes it work.
Created attachment 35336 [details] Sheet with predefined db-range and filter-criteria
Posted an evaluation spreadsheet for all my related regex-issues at issue 64368
In fact "Advanced Filter" changes all kinds of criteria (regex or not) to upper case. This makes it unusable with option "Case Sensitive" and with all case-sensitive regex-patterns like "A[a-h].+" Method createFilterDescriptorByObject of interface com.sun.star.sheet.XSheetFilterableEx gives the uCased string-values in the sequence of TableFilterFields of the returned filter-descriptor.
Confirming that Advanced Filter changes criteria from lower case to upper case (m180 on Win XP). Repro steps: 1. Open the file that I attach and click cell B1. 2. Click Data\Filter\Standard. Make sure that value is displayed with lower case "digit". Click Cancel. 3. Click Data\Filter\Advanced. In "read Filter criteria from" choose "crit" and click OK. 2. Click Data\Filter\Standard. Note that value is displayed with upper case "DIGIT". IMO, this behaviour is incorrect.
Created attachment 39116 [details] updated testcase
Hi Eike, maybe a double or related to Issue 64368 ? Frank
May be related to issue 64368. However, that one is primarily about correct handling of named character classes, which needs separated inspection. Here, _any_ text is converted to uppercase in this sequence of UI steps, e.g. "foo" in C2 => "FOO". Reason being the internal methods CreateQueryParam and subsequent obtain cell content via GetUpperCellString, which is plain wrong. However, if changing that, places using the ScQueryParam must be inspected for correct usage and handling of transliteration respectively regexp context.
Propably not doable in time frame for 3.0, retargeting to 3.x
Reset assigne to the default "issues@openoffice.apache.org".