Uploaded image for project: 'Chemistry'
  1. Chemistry
  2. CMIS-993

String concatenation error when specifying custom headers with BrowserBinding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • cmislib 0.6.0
    • python-cmislib
    • None
    • Linux, python 2.7x, Alfresco 5.0.x, cmislib dev

    • Patch

    Description

      diff --git a/src/cmislib/net.py b/src/cmislib/net.py
      index 59b3038..9a3db18 100644
      --- a/src/cmislib/net.py
      +++ b/src/cmislib/net.py
      @@ -51,7 +51,7 @@ class RESTService(object):
                   if 'headers' in kwargs:
                       headers = kwargs['headers']
                       del kwargs['headers']
      -                self.logger.debug('Headers passed in:' + headers)
      +                self.logger.debug('Headers passed in: %s', headers)
                   if url.find('?') >= 0:
                       url = url + '&' + urlencode(kwargs)
                   else:
      @@ -74,7 +74,7 @@ class RESTService(object):
                   if 'headers' in kwargs:
                       headers = kwargs['headers']
                       del kwargs['headers']
      -                self.logger.debug('Headers passed in:' + headers)
      +                self.logger.debug('Headers passed in %s', headers)
                   if url.find('?') >= 0:
                       url = url + '&' + urlencode(kwargs)
                   else:
      @@ -107,7 +107,7 @@ class RESTService(object):
                   if 'headers' in kwargs:
                       headers = kwargs['headers']
                       del kwargs['headers']
      -                self.logger.debug('Headers passed in:' + headers)
      +                self.logger.debug('Headers passed in: %s',  headers)
                   if url.find('?') >= 0:
                       url = url + '&' + urlencode(kwargs)
                   else:
      @@ -141,7 +141,7 @@ class RESTService(object):
                   if 'headers' in kwargs:
                       headers = kwargs['headers']
                       del kwargs['headers']
      -                self.logger.debug('Headers passed in:' + headers)
      +                self.logger.debug('Headers passed in: %s' % headers)
                   if url.find('?') >= 0:
                       url = url + '&' + urlencode(kwargs)
                   else:
      
      

      https://github.com/lmignon/python-cmislib/commit/159f0202d7dd012230b31a42ef13ef0d03b46f96?diff=unified

      Attachments

        Activity

          People

            jpotts Jeffrey Taylor Potts
            lmi Laurent Mignon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: