share is broken

share is broken in master! I don't know if its broken for all types or not... at least share is not working using email address I get :

an error occured when Fluxcards tried to share your card set!

latest changes should check... last time I shared in days ago.

logs:
22:46:42.311 [play-akka.actor.default-dispatcher-4] ERROR controllers.CardSets - Sharing a cardSet failed
java.lang.StringIndexOutOfBoundsException: String index out of range: 5
  at java.lang.String.substring(String.java:1907) ~[na:1.7.0_55]
  at global.Helper.getLang(Helper.java:171) ~[classes/:na]
  at controllers.CardSets.shareWithPotentialUser(CardSets.java:434) ~[classes/:na]
  at controllers.CardSets.shareCardSet(CardSets.java:361) ~[classes/:na]
  at Routes$$anonfun$routes$1$$anonfun$applyOrElse$47$$anonfun$apply$47.apply(routes_routing.scala:637) [classes/:na]
  at Routes$$anonfun$routes$1$$anonfun$applyOrElse$47$$anonfun$apply$47.apply(routes_routing.scala:637) [classes/:na]
  at play.core.Router$HandlerInvoker$$anon$7$$anon$2.invocation(Router.scala:183) [play_2.10.jar:2.2.3]
  at play.core.Router$Routes$$anon$1.invocation(Router.scala:377) [play_2.10.jar:2.2.3]
  at play.core.j.JavaAction$$anon$1.call(JavaAction.scala:56) [play_2.10.jar:2.2.3]
  at global.Global$2.call(Global.java:187) [classes/:na]
  at play.mvc.Security$AuthenticatedAction.call(Security.java:45) [play_2.10.jar:2.2.3]
  at play.core.j.JavaAction$$anon$3.apply(JavaAction.scala:91) [play_2.10.jar:2.2.3]
  at play.core.j.JavaAction$$anon$3.apply(JavaAction.scala:90) [play_2.10.jar:2.2.3]
  at play.core.j.FPromiseHelper$$anonfun$flatMap$1.apply(FPromiseHelper.scala:82) [play_2.10.jar:2.2.3]
  at play.core.j.FPromiseHelper$$anonfun$flatMap$1.apply(FPromiseHelper.scala:82) [play_2.10.jar:2.2.3]
  at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:251) [scala-library.jar:na]
  at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:249) [scala-library.jar:na]
  at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32) [scala-library.jar:na]
  at play.core.j.HttpExecutionContext$$anon$2.run(HttpExecutionContext.scala:37) [play_2.10.jar:2.2.3]
  at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:42) [akka-actor_2.10.jar:2.2.0]
  at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386) [akka-actor_2.10.jar:2.2.0]
  at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) [scala-library.jar:na]
  at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) [scala-library.jar:na]
  at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) [scala-library.jar:na]
  at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) [scala-library.jar:na]

it seems problem is with getLang()

Status

Issue is closed for Release alpha 0.

Comments

Post a comment



optional
optional