Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-324

Function.upper() failed to operate non-ASCII characters

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.7.0
    • LiteCore
    • Security Level: Public
    • CBL Sprint 3
    • 3

    Description

      CBL VERSION:  → 2.6.0-154

      CBS VERSION: 6.0.1-2037

      SGW VERSION: 2.6.0-127

      Steps to Reproduce: 

      1. install cbs server and enable travel-sample bucket
      2. install sgw and connect to cbs server
      3. have an Android app reference CBLite 2.6 libraries, (in my case, use TestServer Android app), and run this statement:
        let searchQuery = Query
        .select(SelectResult.expression(Expression.meta().id),
        SelectResult.expression(Expression.property("email")),
        SelectResult.expression(Function.upper(Expression.property("name"))))
        .from(DataSource.database(db))
        .where(Expression.property("email").and(Function.contains(Expression.property("email"),
        substring: "maisondeverlaine@gmail.com")))

      Actual Result:

      {'$1': 'LA MAISON DE VERLAINE *à* METZ', 'email': 'maisondeverlaine@gmail.com', 'id': 'landmark_17957'}

      Expected Result:

      {'$1': 'LA MAISON DE VERLAINE *À* METZ', 'email': 'maisondeverlaine@gmail.com', 'id': 'landmark_17957'}

       

      non-ascii character à didn't not converted to À, This behavior is only seen on Android, NOT on iOS or .net platforms

      Logs : attached

      Jenkins job Failure  link:

      *http://uberjenkins.sc.couchbase.com:8080/job/Android-Listener-TestServer-Query-tests/336/*

      Pytest command:

      pytest -s -rsx --timeout=1800 --liteserv-version=2.6.0-154 --liteserv-host=192.168.33.126 --liteserv-port=8080 --xattrs --sync-gateway-version=2.6.0-127 --mode=cc --server-version=6.0.1-2037 --liteserv-platform=android --create-db-per-suite=cbl-test --enable-sample-bucket=travel-sample /Users/eunicehuang/dev/mobile-testkit/testsuites/CBLTester/CBL_Functional_tests/SuiteSetup_FunctionalTests/  -k test_query_substring

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          eunice.huang Eunice Huang (Inactive) created issue -
          eunice.huang Eunice Huang (Inactive) made changes -
          Field Original Value New Value
          Attachment function.upper.android-2.5.3.txt [ 72498 ]
          Attachment function.upper.android-2.6.txt [ 72499 ]
          jimb Jim Borden made changes -
          Component/s LiteCore [ 15347 ]
          Component/s Java-Android [ 15344 ]
          jimb Jim Borden made changes -
          Labels android
          eunice.huang Eunice Huang (Inactive) made changes -
          Attachment network down x-android replicator stopped.txt [ 72583 ]
          eunice.huang Eunice Huang (Inactive) made changes -
          Attachment network down x-android replicator stopped.txt [ 72583 ]
          daniel.petersen Daniel Petersen made changes -
          Component/s Java-Android [ 15344 ]
          Component/s LiteCore [ 15347 ]
          daniel.petersen Daniel Petersen made changes -
          Labels android known_issue
          daniel.petersen Daniel Petersen made changes -
          Fix Version/s Mercury [ 16188 ]
          jimb Jim Borden made changes -
          Component/s LiteCore [ 15347 ]
          Component/s Java-Android [ 15344 ]
          jimb Jim Borden made changes -
          Labels known_issue android known_issue
          jamiltz James Nocentini made changes -
          Security Private [ 10332 ] Public [ 10333 ]
          daniel.petersen Daniel Petersen made changes -
          Story Points 3
          daniel.petersen Daniel Petersen made changes -
          Assignee The Lite [ cbgto ] Jayahari Vavachan [ jayahari.vavachan ]
          daniel.petersen Daniel Petersen made changes -
          Sprint CBL Sprint 3 [ 891 ]
          daniel.petersen Daniel Petersen made changes -
          Rank Ranked higher
          Jayahari.Vavachan Jay Vavachan made changes -
          Rank Ranked higher
          Jayahari.Vavachan Jay Vavachan made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Jayahari.Vavachan Jay Vavachan made changes -
          Status In Progress [ 3 ] In Review [ 10107 ]
          Jayahari.Vavachan Jay Vavachan made changes -
          Status In Review [ 10107 ] In Progress [ 3 ]
          Jayahari.Vavachan Jay Vavachan made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          Jayahari.Vavachan Jay Vavachan made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Jayahari.Vavachan Jay Vavachan made changes -
          Assignee Jayahari Vavachan [ jayahari.vavachan ] Eunice Huang [ eunice.huang ]
          eunice.huang Eunice Huang (Inactive) made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          jamiltz James Nocentini made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          jamiltz James Nocentini made changes -
          Labels android known_issue android
          jamiltz James Nocentini made changes -
          Resolution Fixed [ 1 ]
          Status Reopened [ 4 ] Resolved [ 5 ]
          jamiltz James Nocentini made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          jamiltz James Nocentini made changes -
          Resolution Fixed [ 1 ]
          Status Reopened [ 4 ] Resolved [ 5 ]
          jamiltz James Nocentini made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          daniel.petersen Daniel Petersen made changes -
          Link This issue blocks CBL-397 [ CBL-397 ]

          People

            eunice.huang Eunice Huang (Inactive)
            eunice.huang Eunice Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty