-
Notifications
You must be signed in to change notification settings - Fork 13
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
Rate plan ids are not URL-safe and breaks the site #287
Comments
Probably simply converting path parameters with a slash to query parameters is not going to work, possibly a new URL safe identity needs to be used in paths. |
That is even worse than I expected... you can create a rate plan with almost ANY character in the rate plan name and ID inherits it as-is... no sanitization. ID is officially not URL safe. (Fun fact, you can create a rate plan like this but you cannot edit it because it also breaks the Monetization UI). @cnovak Maybe this worth sharing with engineering. |
/
in their name/id breaks the site
and this issue also causes troubles with caching
|
Bump :) |
Description
/
is an acceptable character in rate plan names by the Monetization API/MGMT UI. The auto-generated rate plan id also contains the/
from the name. (See updated findings below in comments)Steps to Reproduce
Steps to reproduce the behavior:
/
in its name, e.g.:Actual Behavior
/
in their ID are not visible on "Pricing & Plans".Expected Behavior
Everything works as expected :) ™️
Screenshots
Notes
https://www.drupal.org/docs/8/api/routing-system/parameters-in-routes/using-parameters-in-routes#s-example
I wonder what other entity ids are not URL-safe in monetization, like package/product bundle ids?
Version Info
1.10.0
The text was updated successfully, but these errors were encountered: