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