chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurent Mignon (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CMIS-993) String concatenation error when specifying custom headers with BrowserBinding
Date Fri, 05 Aug 2016 06:12:20 GMT

     [ https://issues.apache.org/jira/browse/CMIS-993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Laurent Mignon updated CMIS-993:
--------------------------------
    Description: 
{code}
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:

{code}

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

  was:


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


> String concatenation error when specifying custom headers with BrowserBinding
> -----------------------------------------------------------------------------
>
>                 Key: CMIS-993
>                 URL: https://issues.apache.org/jira/browse/CMIS-993
>             Project: Chemistry
>          Issue Type: Bug
>          Components: python-cmislib
>         Environment: Linux, python 2.7x, Alfresco 5.0.x, cmislib dev
>            Reporter: Laurent Mignon
>
> {code}
> 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:
> {code}
> https://github.com/lmignon/python-cmislib/commit/159f0202d7dd012230b31a42ef13ef0d03b46f96?diff=unified



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message