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

Sometimes bucket with set sasl password is created without password

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 1.8.1
    • Fix Version/s: 2.1.0
    • Component/s: ns_server
    • Security Level: Public
    • Labels:
      None

      Description

      I found a strange behavior of Couchbase Server 1.8.1:
      I create bucket on server by sending http -request (using curl) with parameters like that
      name=MyBucket&ramQuotaMB=200&authType=sasl&replicaNumber=1&saslPassword=password&
      After that Couchbase server creates bucket, but at first few seconds it doesn't contain password (I saw it from web interface).
      And after some time password is set, but sometimes it is never set.

      I found, that password isn't set when I make another request to Server (get status for example) in time befor password is set by server.

      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 -

        See above

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - See above
        Hide
        Haster Haster added a comment -

        It's very strange. Because I make only to requests. First request creates bucket and the second receives status of bucket.
        If I share example that allow to reproduce the problem can you analise it?

        Show
        Haster Haster added a comment - It's very strange. Because I make only to requests. First request creates bucket and the second receives status of bucket. If I share example that allow to reproduce the problem can you analise it?
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Maybe. Cannot promise that given your code is probably some sort of PHP or whatever.

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Maybe. Cannot promise that given your code is probably some sort of PHP or whatever.
        Hide
        Haster Haster added a comment -

        No, I use C library curl for making http request.
        And main thing is that I create only one bucket - it always works well. But if I start two applications in the same time, that creates different buckets when bug is occures.

        Show
        Haster Haster added a comment - No, I use C library curl for making http request. And main thing is that I create only one bucket - it always works well. But if I start two applications in the same time, that creates different buckets when bug is occures.
        Hide
        Haster Haster added a comment -

        I investigate the problem and found that for getting status of bucket you should use GET-requestб not POST.

        Show
        Haster Haster added a comment - I investigate the problem and found that for getting status of bucket you should use GET-requestб not POST.

          People

          • Assignee:
            alkondratenko Aleksey Kondratenko (Inactive)
            Reporter:
            Haster Haster
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes