-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.1.0
-
Fix Version/s: 2.1.2
-
Labels:
-
Severity of Issue:Major
-
Git Pull Request:
Assumptions
- At least one catalog
Steps to Reproduce - Specifications
- Create a product (Control Panel → Commerce → Products)
- Fill in the required fields and Publish
- Go to the Details tab → Add Specifications
- In the input box, enter a string with spaces, e.g. Specification with Spaces
- Click "Create New"
- Look at the specification's key, either by searching for it in the Add Specification box or in the list of Specifications (Control Panel → Commerce → Products → Specifications)
Expected Result
The key is autogenerated and replaces spaces with dashes, e.g. specification-with-spaces
Actual Result
. They key is autogenerate but doesn't replaces spaces with dashes but instead encodes them as 20, e.g. specification20with20spaces
Steps to Reproduce - Options
- Create a product (Control Panel → Commerce → Products)
- Fill in the required fields and Publish
- Go to the Options tab → Add Options
- In the input box, enter a string with spaces, e.g. Option One Two Three
- Click "Create New"
- Look at the option's key, either by searching for it in the Add Option box or in the list of Option Templates (Control Panel → Commerce → Products → Options)
Expected Result
The key is autogenerated and replaces spaces with dashes, e.g. option-one-two-three
Actual Result
. They key is autogenerate but doesn't replaces spaces with dashes but instead encodes them as 20, e.g. option20one20two20three
Notes
- The issue is limited to the item finder component. If you create an option template or specification label in Control Panel → Commerce → Products → Options/Specifications, you'll see that spaces are converted into dashes.
Reproduced On
7.2
Tomcat 9.0.33 + HSQL 2.3.3
DXP 7.2 FP5
Commerce marco-leo/liferay-portal-ee:7.1.x git hash 81d645a88651067f4dda24f226b90657efa5180f
7.1
Tomcat 9.0.33 + HSQL 2.3.3
DXP 7.1 FP17
Commerce marco-leo/liferay-portal-ee:7.1.x git hash 81d645a88651067f4dda24f226b90657efa5180f
- Discovered while testing
-
COMMERCE-3175 As a product specialist, I want to see the product option's key in the product details to distinguish between option templates with the same name
-
- Closed
-
- is related to
-
COMMERCE-2668 Commerce Product FriendlyURL generation cannot handle non-English characters
-
- Closed
-