Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Harmony: fix clashing namespace of called js functions #584

Merged
merged 1 commit into from
Oct 1, 2020

Conversation

antirotor
Copy link
Member

@antirotor antirotor commented Sep 30, 2020

Problem

func is already existing object in Harmony namespace. We use func() for functions we send from server to Harmony client. When they are eval()ed there, they replace Harmony object making some Hamony functions as Create keys... unusable.

Solution

Added random uuid4 prefix for all generated functions by Pype and Avalon core to minimaze possible clash.

🏴 Relates to similar PR ynput/avalon-core#199

@antirotor antirotor added type: bug Something isn't working HIGH host: Harmony labels Sep 30, 2020
@antirotor antirotor requested a review from a team September 30, 2020 16:59
@antirotor antirotor self-assigned this Sep 30, 2020
@mkolar mkolar merged commit e264883 into master Oct 1, 2020
@mkolar mkolar added this to the 2.12.3 milestone Oct 1, 2020
@mkolar mkolar deleted the hotfix/harmony-clashing-namespace branch October 6, 2020 13:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
host: Harmony type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants