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

fix "Cannot assign to read only property '0' of string 'Task.Add.Hotspare'" #328

Merged
merged 1 commit into from May 8, 2018

Conversation

lanchongyizu
Copy link
Member

@lanchongyizu lanchongyizu commented May 8, 2018

Issue:
Cannot assign to read only property '0' of string 'Task.Add.Hotspare'

https://rackhd.atlassian.net/browse/RAC-6774

Root Cause:
After upgrading node from v4 to v8, the property '0' of string turned
out read-only.

Done:

  • Refine the code to avoid assigning to read only property of string. Only when the target is an array or object, we will recursively call the _redact function.
  • Add unit test

@RackHD/corecommitters @nortonluo @iceiilin

Issue:
Cannot assign to read only property '0' of string 'Task.Add.Hotspare'

Root Cause:
After upgrading node from v4 to v8, the property '0' of string turned
out read-only.

Done:
* Refine the code to avoid assigning to read only property of string.
* Add unit test
@keedya keedya merged commit d56b5f1 into RackHD:master May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants