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

Handler code is reading binary data

    XMLWordPrintable

Details

    • Untriaged
    • Yes

    Description

      Build: 6.5.0-2943 , failed between 6.5.0-2343 and 6.5.0-2360

      Seeing that handler is reading binary data

      ./testrunner -i vikas-nodes.ini -t eventing.eventing_negative.EventingNegative.test_read_binary_data_from_the_function,nodes_init=1,services_init=kv:eventing:index:n1ql,dataset=default,groups=simple,reset_services=True,skip_cleanup=True 

      • Create handler code which reads binary docs (as per requirement we should not able to read binary data within handler code).

        function OnUpdate(doc, meta) {
            var doc_id = meta.id;
            log('reading document from dst_bucket : ', doc_id);
                dst_bucket[meta.id + "11111111"] = dst_bucket[doc_id];
        } 

        * Deploy this handler code and we are expecting bucket op should fail. But we are seeing doc with "undefined" data in the bucket

       

      Attachments

        For Gerrit Dashboard: MB-33839
        # Subject Branch Project Status CR V

        Activity

          People

            jeelan.poola Jeelan Poola
            vikas.chaudhary Vikas Chaudhary
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty