Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-7119

UI unable to handle error generated when view query has negative value for skip

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: UI
    • Security Level: Public
    • Environment:
      latest cluster run

      Description

      This ticket is for the UI issue faced during bug http://www.couchbase.com/issues/browse/MB-7117.

      UI is unable to handle the error returned when view query has negative value for skip and displays "webpage is not available" error(screenshot attached)

      negative SKIP Query
      bash> curl -v -s 'http://127.0.0.1:9500/beer-sample/_design/beer/_view/brewery_beers?connection_timeout=60000&skip=-2&limit=10'

      • About to connect() to 127.0.0.1 port 9500 (#0)
      • Trying 127.0.0.1... connected
      • Connected to 127.0.0.1 (127.0.0.1) port 9500 (#0)
        > GET /beer-sample/_design/beer/_view/brewery_beers?connection_timeout=60000&skip=-2&limit=10 HTTP/1.1
        > User-Agent: curl/7.21.4 (x86_64-unknown-linux-gnu) libcurl/7.21.4 OpenSSL/1.0.1 zlib/1.2.3.4
        > Host: 127.0.0.1:9500
        > Accept: /
        >
        < HTTP/1.1 200 OK
        < Transfer-Encoding: chunked
        < Server: MochiWeb/1.0 (Any of you quaids got a smint?)
        < Date: Wed, 07 Nov 2012 10:03:58 GMT
        < Content-Type: text/plain;charset=utf-8
        < Cache-Control: must-revalidate
        <
      • Received problem 2 in the chunky parser
      • Closing connection #0
      1. 127.0.0.1-9000-diag.txt.gz
        160 kB
        Deepkaran Salooja
      1. Negativeskip.png
        79 kB
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Have you changed skip in address line manually?

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Have you changed skip in address line manually?
        Hide
        deepkaran.salooja Deepkaran Salooja added a comment -

        Yes that was done manually. I actually entered a negative value while using curl and the didn't get a proper error message. Tried the same thing from the browser.

        Show
        deepkaran.salooja Deepkaran Salooja added a comment - Yes that was done manually. I actually entered a negative value while using curl and the didn't get a proper error message. Tried the same thing from the browser.
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - - edited

        In which case IMHO that falls into category:

        "indeed good to have to, but too insignificant compared to other work we have in this area"

        IMHO WontFix

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - - edited In which case IMHO that falls into category: "indeed good to have to, but too insignificant compared to other work we have in this area" IMHO WontFix
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        adding this to release notes.

        the server side bug is fixed

        Show
        farshid Farshid Ghods (Inactive) added a comment - adding this to release notes. the server side bug is fixed
        Hide
        kzeller kzeller added a comment -

        Added to RN as:

        The Couchbase Web Console is unable to handle errors returned when a query result has a
        negative value to skip pagination. It erroneously displays 'webpage is not available' error.

        Show
        kzeller kzeller added a comment - Added to RN as: The Couchbase Web Console is unable to handle errors returned when a query result has a negative value to skip pagination. It erroneously displays 'webpage is not available' error.

          People

          • Assignee:
            alkondratenko Aleksey Kondratenko (Inactive)
            Reporter:
            deepkaran.salooja Deepkaran Salooja
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes