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
pseudovar $ru not in sync with $rz,$rU,$rp, etc #3762
Comments
Debug log with EXTRA_DEBUG enabled for call scenario 100:
|
Well this all is caused by the phone2tel parameter defaulting to "on" and the fact that the pseudovars $rU/$rp/$rz/etc are NOT in sync with what is in $ru. |
gaaf
changed the title
User-params parsing fails in multiple ways
pseudovar $ru not in sync with $rz,$rU,$rp, etc
Mar 5, 2024
This issue is stale because it has been open 6 weeks with no activity. Remove stale label or comment or this will be closed in 2 weeks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The uri parser seems to fail in multiple ways on username-parameters. The ways it fails depends on the presence of user-params in the incoming request and on adjustments to $ru, $rd and $rU in the script.
My expectation is that the whole username, including user-params is always visible in $rU. In reality, the user-params are absent or present depending on manipulations to the uri in the script.
When setting $rU to a value with a user-param, that user-param is represented when reading $ru, but not in $rU.
Troubleshooting
Reproduction
I used below config script to test various scenario's.
Outputs:
Setting $rU with a user-param sets it correctly in $ru, but reading $rU back fails.
Same when setting $rd in advance.
When setting $ru first with no user-param lets a later asssignment to $rU with user-param succeed.
Setting $ru with a user-params succeeds. Subsequently overwriting the user part with $rU with a user-param also succeeds.
Same as previous, but with incoming user-param.
This one fails in an interesting way. The incoming uri has a user-param. When overwriting $rU with a user-param, the user-param from the incoming request is kept in addition to the new one instead of being overwritten. $rU still misses (both) user-params.
Debugging Data
I have no build (yet) with EXTRA_DEBUG enabled.
The text was updated successfully, but these errors were encountered: