[messaging] Fix bugs occurring when filtering by strings or value ranges 65/211865/4
authorPawel Wasowski <p.wasowski2@samsung.com>
Wed, 27 Feb 2019 19:14:19 +0000 (20:14 +0100)
committerPiotr Kosko <p.kosko@samsung.com>
Thu, 24 Oct 2019 04:56:38 +0000 (04:56 +0000)
commit3c757a20b0e291015a3262922dbd1276721e36a4
tree1229082c9b17ccb7169d0c3427f3caf9f3a829bf
parente617898bab2778704680a793a5e018ec00afade9
[messaging] Fix bugs occurring when filtering by strings or value ranges

The following bugs have been fixed:
- daylight saving time was not taken into account when filtering by
  timestamp attribute with AttributeRangeFilter
- AttributeRangeFilter did not work with null/undefined range limits
- isBetweenTimeRange did not work properly with lower limit close to the
  minimal value of time_t type variables
- filter with an empty string matchValue never matched other strings

[Verification] Subtestcases from TCT tests added in
https://review.tizen.org/gerrit/#/c/test/tct/web/api/+/199159/
that used to fail due to the described bugs now pass.

tct-messaging-sms-tizen-tests pass rate: 100%

This commit has already been reviewed:
https://review.tizen.org/gerrit/#/c/platform/core/api/webapi-plugins/+/200662/
Change-Id of the original change was:
Ia6c2074408e8f4fadd10605d6986b5a2d2d4c93b

Change-Id: I6d28a8d153a34cf54084dae5585cbd7d0e771e4a
Signed-off-by: Pawel Wasowski <p.wasowski2@samsung.com>
packaging/webapi-plugins.pc.in
src/messaging/MsgCommon/AbstractFilter.cpp
src/messaging/MsgCommon/AbstractFilter.h