Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-514

running sgcollect_info on command with root privileges is overriding bin/sync_gateway file on MacOS

    XMLWordPrintable

Details

    • CBG Sprint 31
    • 3

    Description

      SGW Version : 2.6.0-127 -> Not a regression, looks like it is first time tested.
      SG Config: SG collect info should have
      Steps to Reproduce:

      1. Create some docs
      2. Run sgCollect_info from command line with sudo

      Actual Result:

      /opt/couchbase-sync-gateway/bin/sync_gateway file get overrided with text 

      "

      RedactLevel:partial,HashOfSalt:78d3dac761769fafb90b6fd2f6630313e5df13e8"

       Expected Result:

        bin/sync_gateway file should not get override the binary file

      SGW LOGSsgcollectsaltingtest-redacted-withoutsudo.zip

      sgcollectsaltingtest-withoutsudo.zip

      sgcollectsaltingtest1-redacted-withsudo.zip

      sgcollectsaltingtest1-withsudo.zip

      Command to run the sgcollect : 

      sudo /opt/couchbase-sync-gateway/tools/sgcollect_info --log-redaction-level=partial sgcollectsaltingtest.zip --log-redaction-salt=redacted-salt

      What is the last build this test passed: This is first time tested with sudo

      Attachments

        Issue Links

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

          Activity

            People

              jacques.rascagneres Jacques Rascagneres
              sridevi.saragadam Sridevi Saragadam (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty