[infinispan-issues] [JBoss JIRA] (ISPN-7228) Administration console - creating wrong schema doesn't show error message
Adrian Nistor (JIRA)
issues at jboss.org
Thu Jan 26 05:15:01 EST 2017
[ https://issues.jboss.org/browse/ISPN-7228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13353766#comment-13353766 ]
Adrian Nistor commented on ISPN-7228:
-------------------------------------
ProtobufMetadataManager's javadoc is unfortunatelly wrong. Method registerProtofiles fails with exception only if the registration did not happen at all due to whatever unlikely cache failure. Syntax or semantic errors in the file do not cause the registration to fail with exception. The file is still written to the cache.
getFileErrors and getFilesWithErrors methods should be used to determine if there are syntax or semantic errors. Please note that due to imports you could have an error in a completely different file than the one updated.
> Administration console - creating wrong schema doesn't show error message
> -------------------------------------------------------------------------
>
> Key: ISPN-7228
> URL: https://issues.jboss.org/browse/ISPN-7228
> Project: Infinispan
> Issue Type: Bug
> Components: JMX, reporting and management
> Affects Versions: 9.0.0.Alpha4
> Reporter: Roman Macor
> Assignee: Vladimir Blagojevic
> Priority: Minor
> Attachments: ISPN-7228.txt
>
>
> Click on cache container -> Configuration -> Schemas -> Add -> Fill in incorrect scheme: (schema name: wrong_schema, Schema: nonsense)
> Result: The dialog is closed and no schema is created.
> Expected message:
> Error There has been an error executing the operation: DGISPN0118: Failed to invoke operation: org.infinispan.protostream.DescriptorParserException: java.lang.IllegalStateException: Syntax error in nonsense.proto at 1:9: unexpected label: nonsense
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the infinispan-issues
mailing list