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

Javalab: Code doesn't run for users under 13 #41794

Merged
merged 1 commit into from
Jul 29, 2021

Conversation

sanchitmalhotra126
Copy link
Contributor

Root cause here is that the XML parser used by for blockly projects in sanitize_for_under_13 expects a string but Javalab sources were being stored as un-stringified JSON. This fix just converts the source JSON to a string if it's a hash.

Links

https://codedotorg.atlassian.net/browse/CSA-593
Slack discussion thread: https://codedotorg.slack.com/archives/C01EF4GJ9GE/p1627500338261700

Testing story

Tested locally.

Deployment strategy

Follow-up work

Privacy

Security

Caching

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@sanchitmalhotra126 sanchitmalhotra126 requested a review from a team July 28, 2021 23:40
Copy link
Contributor

@molly-moen molly-moen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix!

Copy link
Contributor

@jmkulwik jmkulwik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sanchitmalhotra126 sanchitmalhotra126 merged commit f718e65 into staging Jul 29, 2021
@sanchitmalhotra126 sanchitmalhotra126 deleted the javalab-under-13 branch July 29, 2021 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants