[jbpm-issues] [JBoss JIRA] Commented: (JBPM-2762) XML Schema Validation errors in jpdl files don't get reported when deploying them
Ronald van Kuijk (JIRA)
jira-events at lists.jboss.org
Tue Jan 26 13:30:19 EST 2010
[ https://jira.jboss.org/jira/browse/JBPM-2762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12508485#action_12508485 ]
Ronald van Kuijk commented on JBPM-2762:
----------------------------------------
Great, I have the same knowledge (past and current) but no time to work on it.
Curious to what your preference is though regarding JBPM-2166
Say hi from me to Vincent Partington if you see him.
> XML Schema Validation errors in jpdl files don't get reported when deploying them
> ---------------------------------------------------------------------------------
>
> Key: JBPM-2762
> URL: https://jira.jboss.org/jira/browse/JBPM-2762
> Project: jBPM
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Runtime Engine
> Affects Versions: jBPM 4.3, jBPM 4.2
> Reporter: Erwin Bolwidt
> Priority: Minor
>
> When I deploy an invalid JPDL file (take a valid file, add <abc/> at some random location, voila) through the RepositoryService, the deployment succeeds. I can see that the validation error is reported internally, but an exception is not thrown.
> It is also not possible for the caller to determine that there was a validation error, unless the caller is willing to cast NewDeployment to DeploymentImpl and invoke the methods from the ProblemList superclass.
> The thing is, DeployerManager (line 49, jbpm 4.3) checks that there haven't been any errors using ProblemList#hasErrors(). And ProblemList#hasErrors() returns true if there is at least one problem with severity ProblemImpl.TYPE_ERROR. However, validation errors are reported with severity ProblemImpl.TYPE_XML_VALIDATION_ERROR.
> Of course I don't know the reasons why the developer of this code choose this implementation, but to me it seems that this was an oversight and the hasErrors() should have checked for TYPE_XML_VALIDATION_ERROR as well.
> I haven't had a chance yet to see how a process definition with an invalid jpdl file functions in practice, but it doesn't seem right that you can deploy an incorrect process definition.
> And if it was right, for some reason, then I think the caller should have a chance to find out, so in that case the interface NewDeployment could be extended with methods to retrieve any problems during deployment.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbpm-issues
mailing list