[ https://issues.apache.org/jira/browse/WW-5272?focusedWorklogId=835885&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-835885 ]
ASF GitHub Bot logged work on WW-5272: -------------------------------------- Author: ASF GitHub Bot Created on: 28/Dec/22 09:20 Start Date: 28/Dec/22 09:20 Worklog Time Spent: 10m Work Description: sonarcloud[bot] commented on PR #649: URL: https://github.com/apache/struts/pull/649#issuecomment-1366497044 Kudos, SonarCloud Quality Gate passed! [![Quality Gate passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/passed-16px.png 'Quality Gate passed')](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=649) [![Bug](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/bug-16px.png 'Bug')](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=649&resolved=false&types=BUG) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=649&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=649&resolved=false&types=BUG) [![Vulnerability](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/vulnerability-16px.png 'Vulnerability')](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=649&resolved=false&types=VULNERABILITY) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=649&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=649&resolved=false&types=VULNERABILITY) [![Security Hotspot](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/security_hotspot-16px.png 'Security Hotspot')](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=649&resolved=false&types=SECURITY_HOTSPOT) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=649&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=649&resolved=false&types=SECURITY_HOTSPOT) [![Code Smell](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/code_smell-16px.png 'Code Smell')](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=649&resolved=false&types=CODE_SMELL) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=649&resolved=false&types=CODE_SMELL) [1 Code Smell](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=649&resolved=false&types=CODE_SMELL) [![100.0%](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/CoverageChart/100-16px.png '100.0%')](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=649&metric=new_coverage&view=list) [100.0% Coverage](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=649&metric=new_coverage&view=list) [![0.0%](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/Duplications/3-16px.png '0.0%')](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=649&metric=new_duplicated_lines_density&view=list) [0.0% Duplication](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=649&metric=new_duplicated_lines_density&view=list) Issue Time Tracking ------------------- Worklog Id: (was: 835885) Time Spent: 20m (was: 10m) > java.lang.UnsupportedOperationException in the Time component > ------------------------------------------------------------- > > Key: WW-5272 > URL: https://issues.apache.org/jira/browse/WW-5272 > Project: Struts 2 > Issue Type: Bug > Affects Versions: 6.0.3 > Reporter: Massimiliano Del Matto > Priority: Major > Fix For: 6.2.0 > > Time Spent: 20m > Remaining Estimate: 0h > > We are facing a java.lang.UnsupportedOperationException on some java.sql.Time > fields in our frontend after migrating from 2.5.26 to 6.0.3. > Error 12/22/2022 09:52:20:122 Caused by: > java.lang.UnsupportedOperationException > Error 12/22/2022 09:52:20:122 at java.sql.Time.toInstant(Time.java:291) > Error 12/22/2022 09:52:20:122 at > org.apache.struts2.components.Date.end(Date.java:299) > Error 12/22/2022 09:52:20:122 at > org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:40) > Error 12/22/2022 09:52:20:122 at > JEE_jsp_pages_ReadTicketGoing_1671640129851._jspx_method_s_date_2(JEE_jsp_pages_ReadTicketGoing_1671640129851.java:408) > Error 12/22/2022 09:52:20:122 at > JEE_jsp_pages_ReadTicketGoing_1671640129851._jspx_method_s_form_0(JEE_jsp_pages_ReadTicketGoing_1671640129851.java:1950) > Error 12/22/2022 09:52:20:122 at > JEE_jsp_pages_ReadTicketGoing_1671640129851._jspService(JEE_jsp_pages_ReadTicketGoing_1671640129851.java:60) > ... > > At line 299 in Date.java there is no code related to java.sql.Time > [https://github.com/apache/struts/blob/STRUTS_6_0_3/core/src/main/java/org/apache/struts2/components/Date.java#L299] > > java.sql.Time extends java.util.Date so when dateObject is java.sql.Time is > treated like an instanceof java.util.Date and toInstant() throws the > UnsupportedOperationException. -- This message was sent by Atlassian Jira (v8.20.10#820010)