commit da4f13e7345653eba8aab5b8aceeaeff7367989e
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Mon Mar 27 15:12:06 2023 +0200
Do not convert to string ``url.URL`` objects
The SQLAlchemy method ``url.make_url`` accepts strings and ``url.URL``
object types. By default, oslo.db was converting any object to string
before calling ``url.make_url``, that parses this string. Since
SQLAlchemy 2.0, the ``url.URL.__str__`` method is removed and the
``url.URL.__repr__`` method returns a string with the password hidden.
The new utility method checks what type of object is passed and only
if the object is not a string nor a ``url.URL`` object, is converted
to a string.
Reviewed: https:/ /review. opendev. org/c/openstack /oslo.db/ +/878642 /opendev. org/openstack/ oslo.db/ commit/ da4f13e7345653e ba8aab5b8aceeae ff7367989e
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit da4f13e7345653e ba8aab5b8aceeae ff7367989e
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Mon Mar 27 15:12:06 2023 +0200
Do not convert to string ``url.URL`` objects
The SQLAlchemy method ``url.make_url`` accepts strings and ``url.URL`` URL.__repr_ _`` method returns a string with the password hidden.
object types. By default, oslo.db was converting any object to string
before calling ``url.make_url``, that parses this string. Since
SQLAlchemy 2.0, the ``url.URL.__str__`` method is removed and the
``url.
The new utility method checks what type of object is passed and only
if the object is not a string nor a ``url.URL`` object, is converted
to a string.
Closes-Bug: #2012928 a55078370ae2b47 87f00982c23
Change-Id: I84f13f378f83e2