CMPUT301W14T08/GeoChan

App crashes on trying to post comment containing special characters.

Closed this issue · 6 comments

Trying to post a comment with something like a "ä" crashes the app.
Logcat output: 03-22 16:31:53.766: E/AndroidRuntime(1475): java.lang.RuntimeException: An error occured while executing doInBackground()

This also interferes with out elastic search and adds null comments to the comment list.

When posting only locally, special characters work; moreover, when saved as favourite, serializers correctly save and load the comments with special characters. This means this is an elasticSearch issue.

In that case, should we just disable inputting of special characters in the app? (if possible)

Thats the current plan. This looks promising, I'll give it a try after pounding out this sequence diagram.

http://stackoverflow.com/questions/14438237/how-to-block-the-special-character-and-smaller-case-characters-in-android-editte

Fixed by restricting the chars that can be entered in any user input field. Until ElasticSearch can be updated, make sure any new EditText items have android:digits="@string/legal_chars" in their xml block.

Sorry Germany, Japan, and Russia.