You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "mARK bLOORE (JIRA)" <qp...@incubator.apache.org> on 2009/06/23 19:32:07 UTC
[jira] Created: (QPID-1939) util.URL mis-parses username:password
util.URL mis-parses username:password
-------------------------------------
Key: QPID-1939
URL: https://issues.apache.org/jira/browse/QPID-1939
Project: Qpid
Issue Type: Bug
Components: Python Client
Environment: any.
Reporter: mARK bLOORE
in python/qpid/util.py, lines 84-87 are
RE = re.compile(r"""
# [ <scheme>:// ] [ <user> [ / <password> ] @] <host> [ :<port> ]
^ (?: ([^:/@]+)://)? (?: ([^:/@]+) (?: / ([^:/@]+) )? @)? ([^@:/]+) (?: :([0-9]+))?$
""", re.X)
this matches user/password in a (partial) URL. it should be user:password.
qpid.util.URL('scheme://user:pass@host:12')
raises a ValueError.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org