-
Notifications
You must be signed in to change notification settings - Fork 473
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
Abnormal execution result if the script has a null character(0x0) #32
Comments
Fixed this bug to be trimmed null characters while saving a script. But, I didn't consider to handle this when compile a script, so this fixed didn't be a solution if there has already included a null character in a script.
Fixed this bug to be trimmed null characters while saving a script. But, I didn't consider to handle this when compile a script, so this fixed didn't be a solution if there has already included a null character in a script. |
Good change! |
This fix is only for using rest api. So, when user use svn to save a script on outside of ngrinder, ngrinder can't ensure this abnormal issue. I think, the easy way is to fixed in get entry methods, but I don't like this way. |
@newpcraft However, Is it best design to block null characters in the controller level? Just blocking. |
@junoyoon I think you are right. If there is only one behavior to be fixed, the replacement logic might be suitable because of convenience for user. But, currently, after I fixed, I got to know that my fix was not a perfect solution because I found another place where I need to fix. |
- Rollback this code because wrong script might user fault.
Rollbacked because wrong script might user fault. |
While running a test, the agent shows the following exception if it has a null character even the script has no error.
When it is saved by the editor of ngrinder controller, there are no issue because the null character has already trimmed by the editor. However, while saving a script content by rest api, null characters are not handled.
So, it maybe need to trim a null character in the script content due to improve reliability.
The text was updated successfully, but these errors were encountered: