Skip to content

Race condition with setSignatureAlgorithm #1320

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

Closed
tresf opened this issue Mar 3, 2025 · 1 comment
Closed

Race condition with setSignatureAlgorithm #1320

tresf opened this issue Mar 3, 2025 · 1 comment
Assignees
Labels
Milestone

Comments

@tresf
Copy link
Contributor

tresf commented Mar 3, 2025

As identified in #1319, there's a potential race condition for environments such as ReactJS which may call qz.security.setSignatureAlgorithm() more than once.

qz-tray.js:768 Uncaught TypeError: Cannot read properties of undefined (reading '0')

The workaround discovered in #1319 was to ensure that the security functions were only called once. A permanent solution would be to ensure that the semver logic is hardened against race conditions.

Related: #1319, #538, #524, #1301

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

No branches or pull requests

2 participants