Stacktrace with bcrypt()
LadyCailinBot opened this issue ยท 2 comments
CMDHELPER-2785 - Reported by Hekta
bcrypt('test', 3)
on or around E:\Documents\Desktop\afaire\serv\bukkit\RequiCraft\plugins\CommandHelper\LocalPackages\RequiCraft\aliases.msa:1.
Please report this error to the developers, and be sure to include the version numbers: Server version: 1.6.2-R0.2-SNAPSHOT; CommandHelper version: 3.3.1-SNAPSHOT:2349-cdce8f1,master. Here's the stacktrace:
java.lang.IllegalArgumentException: Bad number of rounds
at com.laytonsmith.libs.org.mindrot.jbcrypt.BCrypt.crypt_raw(BCrypt.java:614)
at com.laytonsmith.libs.org.mindrot.jbcrypt.BCrypt.hashpw(BCrypt.java:682)
at com.laytonsmith.core.functions.Crypto$bcrypt.exec(Crypto.java:302)
at com.laytonsmith.core.Script.eval(Script.java:301)
at com.laytonsmith.core.Script.eval(Script.java:265)
at com.laytonsmith.core.Script.seval(Script.java:211)
at com.laytonsmith.core.functions.Meta$eval.execs(Meta.java:411)
at com.laytonsmith.core.Script.eval(Script.java:257)
at com.laytonsmith.core.Script.eval(Script.java:265)
at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1489)
at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1454)
at com.laytonsmith.core.Script.run(Script.java:165)
at com.laytonsmith.core.AliasCore.alias(AliasCore.java:140)
at com.laytonsmith.commandhelper.CommandHelperServerListener.onServerCommand(CommandHelperServerListener.java:41)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at net.minecraft.server.v1_6_R2.DedicatedServer.ar(DedicatedServer.java:258)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:227)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)```
Comment by LadyCailin
After looking into it, apparently workload can only be between 5 and 31. I've wrapped the exception, and updated the docs in the next build.