-
Notifications
You must be signed in to change notification settings - Fork 498
Contact diary person and place with more than 250 letters can be saved (EXPOSUREAPP-5400) #2476
Contact diary person and place with more than 250 letters can be saved (EXPOSUREAPP-5400) #2476
Conversation
…place-with-more-than-250-letters-can-be-saved
…place-with-more-than-250-letters-can-be-saved
...src/main/java/de/rki/coronawarnapp/contactdiary/storage/entity/ContactDiaryLocationEntity.kt
Outdated
Show resolved
Hide resolved
...p/src/main/java/de/rki/coronawarnapp/contactdiary/storage/entity/ContactDiaryPersonEntity.kt
Show resolved
Hide resolved
…d-place-with-more-than-250-letters-can-be-saved' into fix/5400-Contact-diary-person-and-place-with-more-than-250-letters-can-be-saved
@SamuraiKek asked me to remove some unnecessary style items, see 👆 |
...src/main/java/de/rki/coronawarnapp/contactdiary/storage/entity/ContactDiaryLocationEntity.kt
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm.
tested on pixel 2 device
...p/src/main/java/de/rki/coronawarnapp/contactdiary/storage/entity/ContactDiaryPersonEntity.kt
Show resolved
Hide resolved
…place-with-more-than-250-letters-can-be-saved
…place-with-more-than-250-letters-can-be-saved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Tested on Nokia 3 (Android 9). Tried by pasting randomly generated strings of 250 characters and then typing in more from the keyboard but couldn't.
…d-place-with-more-than-250-letters-can-be-saved' into fix/5400-Contact-diary-person-and-place-with-more-than-250-letters-can-be-saved
108b9bc
Clarified the I added another commit for that: 3f429aa |
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the fix. Tested on Pixel (Android 10)
Testers reported that it was possible to store more than 250 characters for names of persons and locations in our contact diary.
This fix now sets a maxLength to the input fields so that users can't even add more than 250 characters and also trims the string again before writing to the database.
I also applied this 250 character restriction to the email + phone fields of persons and locations.