epam-debrecen-rft-2015 / atsy

Applicant Tracking System
Apache License 2.0
9 stars 1 forks source link

The error message doesn't show the correct error text #209

Open nemetrajmund opened 6 years ago

nemetrajmund commented 6 years ago

Reporters: Veres Dávid, Német Rajmund Date: 2018.March. 20 Priority: Minor Status: Unresolved

Description: If "Összeg" or "Bér" fields are filled with long number[>=20 character], then an incorrect error message appears.

Preconditions: Have at least one candidate in the database with at least one application, that still pending.

Steps to reproduce:

  1. Log in.
  2. Choose a candidate from the list.
  3. Choose an application.
  4. Go forward until the "Ajánlat" state.
  5. Fill the "Bér" or "Összeg" fields with a number, longer then 19 character.
  6. Click on the "Mentés" button.

Actual results :

  1. Error shows: "Could not read document: Can not construct instance of long from String value '20000000000000000000000000000000000000000000': not a valid Long value at [Source: java.io.PushbackInputStream@480ea221; line: 1, column: 382] (through reference chain: com.epam.rft.atsy.web.StateHistoryViewRepresentation["offeredMoney"]); nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of long from String value '20000000000000000000000000000000000000000000': not a valid Long value at [Source: java.io.PushbackInputStream@480ea221; line: 1, column: 382] (through reference chain: com.epam.rft.atsy.web.StateHistoryViewRepresentation["offeredMoney"])"

Expected results :

  1. Error message is saying: "Kérjük adjon meg 20 karakternél kisebb számot!"