Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid infinite recursion in Resource.__getattr__ #1722

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sparrowt
Copy link

Otherwise the self.raw access within the except handler below comes back through and if the originally requested item isn't actually in self.raw then it loops forever.

Fixes: #1721

I haven't added a test as it seems pretty niche but there is a repro test case on the issue linked above which we can incorporate if desired?

Otherwise the `self.raw` access within the except handler
below comes back through and if the originally requested
item isn't actually in self.raw then it loops forever.
@adehad adehad temporarily deployed to ack September 28, 2023 12:49 — with GitHub Actions Inactive
@adehad
Copy link
Collaborator

adehad commented Sep 28, 2023

@sparrowt would be great if you can add that test case into: https://github.com/pycontribs/jira/blob/main/tests/test_client.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

resources.py __getattr__ causing stack overflow
2 participants