You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Ken Giusti (JIRA)" <ji...@apache.org> on 2014/12/18 19:55:13 UTC

[jira] [Commented] (PROTON-777) [python] Url does not properly set default port if no scheme given

    [ 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)