qpid-proton mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ken Giusti (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PROTON-777) [python] Url does not properly set default port if no scheme given
Date Thu, 18 Dec 2014 18:55:13 GMT

    [ https://issues.apache.org/jira/browse/PROTON-777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14252030#comment-14252030
] 

Ken Giusti commented on PROTON-777:
-----------------------------------

Seems like this behavior is by-design: when converting the Url's port to string give the symbolic
name if available, e.g. print 'amqp' instead of '5672'.

Assigning to Rafi: close this if Not-A-Bug, thanks.

> [python] Url does not properly set default port if no scheme given
> ------------------------------------------------------------------
>
>                 Key: PROTON-777
>                 URL: https://issues.apache.org/jira/browse/PROTON-777
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: python-binding
>    Affects Versions: 0.9
>            Reporter: Ken Giusti
>            Assignee: Ken Giusti
>             Fix For: 0.9
>
>
> >>> import proton
> >>> url = proton.Url(username='me', password='secret', host='myhost', path='foobar')
> >>> str(url)
> 'amqp://me:secret@myhost:amqp/foobar'
> =====================^^^^^^^^
> should be :5672 methinks.



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

Mime
View raw message