akvo / akvo-flow

A data collection and monitoring tool that works anywhere.
http://akvo.org/products/akvoflow/
GNU Affero General Public License v3.0
65 stars 31 forks source link

Cascade number level string causes crash in flow services #3331

Closed muloem closed 3 years ago

muloem commented 4 years ago

When filling in cascade levels to import a cascade in flow services, its possible to enter a string in the field for the number of levels of a cascade. This causes a crash in flow services.

java.lang.NumberFormatException: For input string: "1 "
  File "NumberFormatException.java", line 65, in java.lang/forInputString
  File "Long.java", line 589, in java.lang/parseLong
  File "Long.java", line 631, in java.lang/parseLong
  File "cascade.clj", line 447, in akvo.flow-services.cascade.UploadCascadeJob/akvo.flow-services.cascade.UploadCascadeJob
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.