[jbpm-issues] [JBoss JIRA] Updated: (JBPM-2746) Broken NON-LATIN characters in project/node names/values during the replication Process Definition to the DB

Konstantin Kasatkin (JIRA) jira-events at lists.jboss.org
Tue Jan 12 05:03:31 EST 2010


     [ https://jira.jboss.org/jira/browse/JBPM-2746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konstantin Kasatkin updated JBPM-2746:
--------------------------------------

    Attachment: patch.zip


> Broken NON-LATIN characters in project/node names/values during the replication Process Definition to the DB
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: JBPM-2746
>                 URL: https://jira.jboss.org/jira/browse/JBPM-2746
>             Project: jBPM
>          Issue Type: Patch
>      Security Level: Public(Everyone can see) 
>          Components: Runtime Engine
>    Affects Versions: jBPM 4.x, jBPM 4.3, jBPM 4.2, jBPM 4.1
>            Reporter: Konstantin Kasatkin
>            Priority: Critical
>         Attachments: patch.zip
>
>   Original Estimate: 10 minutes
>  Remaining Estimate: 10 minutes
>
> This issue is continuation of story described here https://jira.jboss.org/jira/browse/GPD-384
> Please apply our patch over the source code.
> It fixes improper treatment with non-latin character encoding during rooming process definition into DB.
> Patch contains 2 modified classed from source code JBPM-4.2
> Class StringStreamInput.java fixed by adding explicit encoding of source XML stream "UTF-8"
>   public InputStream openStream() {
>     byte[] bytes = string.getBytes();
>     return new ByteArrayInputStream(bytes);
>   }
> changed to
>   public InputStream openStream() {
>     try {
>         byte[] bytes = string.getBytes("UTF-8");
>         return new ByteArrayInputStream(bytes);
>     } catch (UnsupportedEncodingException e) {
>         e.printStackTrace();
>         throw new RuntimeException("Unsupported encoding UTF-8");
>     }
>   }
> Method checkKey(...) in Class ProcessDeployer.java fixed by commenting unnecessary replacing of non-latin characters to "_"
>       processDefinitionKey = processDefinitionName.replaceAll("\\W", "_");
> changed to
>       processDefinitionKey = processDefinitionName;

-- 
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