-
Notifications
You must be signed in to change notification settings - Fork 12
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
String encoding issue #20
Comments
That's weird - looks like a bug to me. @iahmad-khan can you check if this is a terraform issue by attempting to post the same body directly to the REST API? |
@ndavidson-pulse currently i have fixed it by sending |
I'm seeing the same issue on the ldap_group_filter property of the vtm_user_authenticator resource. I was reading about this method https://golang.org/pkg/encoding/json/#HTMLEscape which is described as:
Does this need to be set in the go-vtm (https://github.com/pulse-vadc/go-vtm/blob/master/7.0/config_user_authenticator.go) code where the json is marshalled in the "Apply" method? |
We need to properly escape the JSON in order for certain unicode code-points to work at all - so far your description makes it sound like some double encoding issue, I believe you've said the following two things:
|
I tested the rest API directly using curl and json. The api seems to work as expected and is not encoding the "&". Working:
Broken:
|
@pdabel does putting in the backslash work properly? e.g. does |
We see this issue of string encoding with few more special characters that include the tags like: <, /, ", >. |
Strange , have a look at this body regex: after terrafrom push itlooks this on traffic manager:
then it looks this on the problematic one ( corrected ) so if we are going to fix one , the other is broken , both vtms are using same version 18.2 |
There are actually two related issues:
These issues may be addressed in a future release. If you have a current support contract and have an urgent need for this issue, please contact us via https://support.pulsesecure.net to request prioritization. |
Here is my monitor configuration:
when I push this through terraform , the http_path is not correct in the VTM , the resultant configuration done by terraform is with http_path:
& is replaced by u0026 , how can i fix this,
thanks
The text was updated successfully, but these errors were encountered: