Skip to content

multiple instance of V1Meta register new username/password given #24

Description

@little-button

If I create an instance of V1Meta with the correct username/password, and later on create another instance of V1Meta where the username/password is incorrect. The second instance of V1Meta will still be able to access the same information the first V1Meta instance can access.

v1 = V1Meta(address="www14.v1host.com", instance="v1sdktesting", username="api", password="api", scheme="https")
v1.Member(20).Name
'Administrator'
v2 = V1Meta(address="www14.v1host.com", instance="v1sdktesting", username="api", password="fake", scheme="https")
v2.Member(20).Name
'Administrator'

Now the same can go if I flip this around and use a bad password in the first instance. If I create a second instance with the correct password, it will no longer work. So it does not appear we can have more than one instance of a V1Meta that will work as expected.

from v1pysdk import V1Meta
v1 = V1Meta(address="www14.v1host.com", instance="v1sdktesting", username="api", password="fake", scheme="https")
v1.Member(20).Name
Traceback (most recent call last):
....
urllib2.HTTPError: HTTP Error 401: basic auth failed
v2 = V1Meta(address="www14.v1host.com", instance="v1sdktesting", username="api", password="api", scheme="https")
v2.Member(20).Name
Traceback (most recent call last):
....
urllib2.HTTPError: HTTP Error 401: basic auth failed

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions