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

Andrew Sherman updated IMPALA-12294:
------------------------------------
    Description: 
If more than one cookie is set in a http response then only the first one is 
used in python3. In ImpalaHttpClient the http headers of the response are 
stored in an HTTPMessage object. This is deceptive as in Python2 the 
HTTPMessage is a mimetools.Message object, while in python3 it is an 
email.message.Message. An important difference is that when a header appears 
multiple times, as can happen with a ‘Set-Cookie’ header, the  
mimetools.Message merges the headers internally, while the 
email.message.Message keeps them separate.


  was:
If more than one cookie is set in a http response ten only the first one is 
used in python3. In ImpalaHttpClient the http headers of the response are 
stored in an HTTPMessage object. This is deceptive as in Python2 the 
HTTPMessage is a mimetools.Message object, while in python3 it is an 
email.message.Message. An important difference is that when a header appears 
multiple times, as can happen with a ‘Set-Cookie’ header, the  
mimetools.Message merges the headers internally, while the 
email.message.Message keeps them separate.



> Cookie handling broken In Impala Shell with python 3
> ----------------------------------------------------
>
>                 Key: IMPALA-12294
>                 URL: https://issues.apache.org/jira/browse/IMPALA-12294
>             Project: IMPALA
>          Issue Type: Bug
>            Reporter: Andrew Sherman
>            Assignee: Andrew Sherman
>            Priority: Critical
>
> If more than one cookie is set in a http response then only the first one is 
> used in python3. In ImpalaHttpClient the http headers of the response are 
> stored in an HTTPMessage object. This is deceptive as in Python2 the 
> HTTPMessage is a mimetools.Message object, while in python3 it is an 
> email.message.Message. An important difference is that when a header appears 
> multiple times, as can happen with a ‘Set-Cookie’ header, the  
> mimetools.Message merges the headers internally, while the 
> email.message.Message keeps them separate.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to