Hi,

good catch, updated on trunk
https://issues.apache.org/jira/browse/OPENEJB-1923

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




2012/10/24 kp.gores <[email protected]>

> Hi,
>
> I've found a bug with `openejb cipher` when trying to encrypt a
> password. The password I used looked like a MAC address.
>
> To reproduce the bug enter:
>
> openejb-3.1.4/bin/openejb cipher AA-DA-AA
>
> This throws an exception:
>
> Exception in thread "main" java.lang.StringIndexOutOfBoundsException:
> String index out of range: -5
>         at java.lang.String.substring(String.java:1937)
>         at
> org.apache.openejb.cli.MainImpl.processSystemProperties(MainImpl.java:211)
>         at org.apache.openejb.cli.MainImpl.main(MainImpl.java:65)
>         at org.apache.openejb.cli.Bootstrap.main(Bootstrap.java:103)
>
>
> The problem is the '-DA' in my password.
>
>
> Regards
> kp
>

Reply via email to