[ECOMMERCE-321] [Check] Several exceptions on log when click on "View product detail" Created: 05/Aug/20 Updated: 07/Aug/20 Resolved: 07/Aug/20 |
|
| Status: | Closed |
| Project: | E-commerce |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.2 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Chuong Doan Huy | Assignee: | Jesus Alonso |
| Resolution: | Not an issue | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||
| Date of First Response: | |||||||||
| Epic Link: | E-com improvements 1.0 - 1.1.1 - 1.2 | ||||||||
| Sprint: | Add-Ons 44 | ||||||||
| Story Points: | 2 | ||||||||
| Description |
|
When click on "View product detail" action, although no errors happens on the screen, several exceptions was thrown on the error log or console. Also noticed that all products don't have preview image. Should check to see if they are actually don't have image or due to error - may relate to above mentioned exceptions. |
| Comments |
| Comment by Jesus Alonso [ 06/Aug/20 ] |
|
Viewing product detail I do see exceptions such as:
2020-08-06 12:43:27,336 ERROR ommerce.app.productdetail.field.MultipleImageField: Couldn't get image height for url: https://40.114.149.179:9002/medias/?context=bWFzdGVyfGltYWdlc3w3ODEzfGltYWdlL2pwZWd8aW1hZ2VzL2gxNi9oZTcvODc5NzI0NDk4MTI3OC5qcGd8YmVmYWMxNjY3NjQ5NjJmZmYwNzhhZmU2NTk3ZjU1ZmViY2Q0NDVkMTgwODM5OTYyZmIxYTc5NTkyYjJiNGNjYg, image ratio: 60.2020-08-06 12:43:27,336 ERROR ommerce.app.productdetail.field.MultipleImageField: Couldn't get image height for url: https://40.114.149.179:9002/medias/?context=bWFzdGVyfGltYWdlc3w3ODEzfGltYWdlL2pwZWd8aW1hZ2VzL2gxNi9oZTcvODc5NzI0NDk4MTI3OC5qcGd8YmVmYWMxNjY3NjQ5NjJmZmYwNzhhZmU2NTk3ZjU1ZmViY2Q0NDVkMTgwODM5OTYyZmIxYTc5NTkyYjJiNGNjYg, image ratio: 60.javax.imageio.IIOException: Can't get input stream from URL! at javax.imageio.ImageIO.read(ImageIO.java:1395) ~[?:1.8.0_231] at info.magnolia.ecommerce.app.productdetail.field.MultipleImageField.getImageHeight(MultipleImageField.java:92) ~[magnolia-ecommerce-ui-1.2-SNAPSHOT.jar:?] at info.magnolia.ecommerce.app.productdetail.field.MultipleImageField.lambda$doSetValue$0(MultipleImageField.java:77) ~[magnolia-ecommerce-ui-1.2-SNAPSHOT.jar:?] at java.util.ArrayList.forEach(ArrayList.java:1257) ~[?:1.8.0_231] at info.magnolia.ecommerce.app.productdetail.field.MultipleImageField.doSetValue(MultipleImageField.java:70) ~[magnolia-ecommerce-ui-1.2-SNAPSHOT.jar:?] at info.magnolia.ecommerce.app.productdetail.field.MultipleImageField.doSetValue(MultipleImageField.java:39) ~[magnolia-ecommerce-ui-1.2-SNAPSHOT.jar:?]
Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names matching IP address 40.114.149.179 foundCaused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names matching IP address 40.114.149.179 found at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) ~[?:1.8.0_231] at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946) ~[?:1.8.0_231] at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:316) ~[?:1.8.0_231] at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:310) ~[?:1.8.0_231]
This is exception is due to the SAP endpoint *https://40.114.149.179:9002* uses an IP instead of a domain. This is not standard and avoid verifying the domain matches with the SSL certificate (and then we have this SSLHandshakeException) I would ignore these exceptions as in a standard installation, the endpoint would always use a domain and not an IP. Notice too we have had to update our code to be able to work with such endpoint and we have |