adamcin / net.adamcin.recap

Recap - rsync for Adobe Granite
http://adamcin.net/net.adamcin.recap
16 stars 15 forks source link

Empty batch_size exception/error #6

Open paulrohrbeck opened 10 years ago

paulrohrbeck commented 10 years ago

Hey, thanks for putting this up on github!

In my logs I can see the following error:

POST ....graniteconsole.html HTTP/1.1] net.adamcin.recap.impl.RecapAdapterFactory 
failed to parse batch_size parameter:
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

I only took a very quick look at the above mentioned file, but I'm wondering why the StringUtils.isNotBlank(rpBatchSize) does not catch the empty string? I did not specify the batch size so it shouldn't even go in there, right?

adamcin commented 10 years ago

I think the double quotes may actually have been in the parameter value. I'll take a look at it.