odpi / egeria

Egeria core
https://egeria-project.org
Apache License 2.0
806 stars 260 forks source link

egeria UI wrong date format parsing in case of authorization failure #3208

Closed geoHeil closed 4 years ago

geoHeil commented 4 years ago

Hi,

Details are available here: https://odpi.slack.com/archives/CBPRDQPRC/p1592157160034700

TLDR:

docker-compose -f ./egeria-tutorial.yaml rm -f
git pull
docker-compose -f egeria-tutorial.yaml pull
docker-compose -f egeria-tutorial.yaml up 

Now I open the:

  1. ‘egeria-server-config.ipynb’
  2. ‘egeria-server-start.ipynb’ and run both notebooks from start to finish. Then, the result is (when logging in with admin/admin for https://localhost:18443):

NumberFormatException: For input string: ""timestamp":"2020-06-15T14:44:25.294+00:00"

the same exception is also present when trying to create a glossary entry and permission are denied

geoHeil commented 4 years ago

full error:

atalake_1   | Mon Jun 15 14:44:25 GMT 2020 cocoMDS4 Security OPEN-METADATA-SECURITY-0006 User admin is not authorized to issue a request to server cocoMDS4
ui_1         | 2020-06-15 14:44:25.305 ERROR 1 --- [nio-8443-exec-8] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: can't parse argument number: "timestamp":"2020-06-15T14:44:25.294+00:00"] with root cause
ui_1         |
ui_1         | java.lang.NumberFormatException: For input string: ""timestamp":"2020-06-15T14:44:25.294+00:00""
ui_1         |  at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_212]
ui_1         |  at java.lang.Integer.parseInt(Integer.java:569) ~[na:1.8.0_212]
ui_1         |  at java.lang.Integer.parseInt(Integer.java:615) ~[na:1.8.0_212]
ui_1         |  at java.text.MessageFormat.makeFormat(MessageFormat.java:1427) ~[na:1.8.0_212]
ui_1         |  at java.text.MessageFormat.applyPattern(MessageFormat.java:479) ~[na:1.8.0_212]
ui_1         |  at java.text.MessageFormat.<init>(MessageFormat.java:362) ~[na:1.8.0_212]
ui_1         |  at org.odpi.openmetadata.frameworks.auditlog.MessageFormatter.formatMessage(MessageFormatter.java:38) ~[audit-log-console-connector-2.0-SNAPSHOT-jar-with-dependencies.jar:na]
ui_1         |  at org.odpi.openmetadata.frameworks.auditlog.MessageFormatter.getFormattedMessage(MessageFormatter.java:92) ~[audit-log-console-connector-2.0-SNAPSHOT-jar-with-dependencies.jar:na]
ui_1         |  at org.odpi.openmetadata.frameworks.connectors.ffdc.OCFCheckedExceptionBase.<init>(OCFCheckedExceptionBase.java:75) ~[audit-log-console-connector-2.0-SNAPSHOT-jar-with-dependencies.jar:na]
ui_1         |  at org.odpi.openmetadata.frameworks.connectors.ffdc.OCFCheckedExceptionBase.<init>(OCFCheckedExceptionBase.java:57) ~[audit-log-console-connector-2.0-SNAPSHOT-jar-with-dependencies.jar:na]
ui_1         |  at org.odpi.openmetadata.commonservices.ffdc.exceptions.OMAGCheckedExceptionBase.<init>(OMAGCheckedExceptionBase.java:29) ~[cassandra-metadata-extractor-connector-2.0-SNAPSHOT-jar-with-dependencies.jar:na]
ui_1         |  at org.odpi.openmetadata.accessservices.subjectarea.ffdc.exceptions.SubjectAreaCheckedException.<init>(SubjectAreaCheckedException.java:32) ~[subject-area-api-2.0-SNAPSHOT.jar!/:na]
ui_1         |  at org.odpi.openmetadata.accessservices.subjectarea.ffdc.exceptions.PropertyServerException.<init>(PropertyServerException.java:23) ~[subject-area-api-2.0-SNAPSHOT.jar!/:na]
ui_1         |  at org.odpi.openmetadata.accessservices.subjectarea.client.SubjectAreaBaseImpl.findRESTCall(SubjectAreaBaseImpl.java:260) ~[subject-area-client-2.0-SNAPSHOT.jar!/:na]
ui_1         |  at org.odpi.openmetadata.accessservices.subjectarea.client.SubjectAreaGlossaryImpl.findGlossary(SubjectAreaGlossaryImpl.java:132) ~[subject-area-client-2.0-SNAPSHOT.jar!/:na]
ui_1         |  at org.odpi.openmetadata.userinterface.uichassis.springboot.api.subjectarea.SubjectAreaGlossaryController.findGlossary(SubjectAreaGlossaryController.java:158) ~[classes!/:na]
ui_1         |  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_212]
ui_1         |  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_212]
ui_1         |  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_212]
ui_1         |  at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_212]
ui_1         |  at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) ~[cassandra-metadata-extractor-connector-2.0-SNAPSHOT-jar-with-dependencies.jar:5.2.7.RELEASE]
ui_1         |  at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) ~[cassandra-metadata-extractor-connector-2.0-SNAPSHOT-jar-with-dependencies.jar:5.2.7.RELEASE]
ui_1         |  at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105) ~[spring-webmvc-5.2.7.RELEASE.jar!/:5.2.7.RELEASE]
ui_1         |  at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:879) ~[spring-webmvc-5.2.7.RELEASE.jar!/:5.2.7.RELEASE]
ui_1         |  at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793) ~[spring-webmvc-5.2.7.RELEASE.jar!/:5.2.7.RELEASE]
ui_1         |  at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.2.7.RELEASE.jar!/:5.2.7.RELEASE]
ui_1         |  at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) ~[spring-webmvc-5.2.7.RELEASE.jar!/:5.2.7.RELEASE]
ui_1         |  at org.springframework.web.servlet.DispatcherServlet.doService
github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 20 days if no further activity occurs. Thank you for your contributions.