-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
country.name can not deal with special characters #5669
Comments
@bernardsilenou @Juliane-D here the bug report for the ivory coast issue. @MartinWahnschaffe @Candice-Louw @T-Hundt for your information. |
@kwa20 I would vote for the option to not use the name of server country but a some form of a code; So when server is initialize, there is a code assign to the server country + country created as a country in the system. If user then change the name of the country, then code is not changed. |
Looks like we have to make sure the country name also supports white spaces and other signs and/or is validated if there are good reasons to not allow this. |
@MartinWahnschaffe @kwa20 |
@kwa20 A short term solution can be to set the country name to just a string "CoteDivoir", and rename the country name in the regions data, maybe this may help to allow us import facilities. |
|
@MartinWahnschaffe I guess another problem that occurs at the same time is that no infrastructure data below the region hierarchy can be imported for any other countries besides the deposited server country right? I'm not sure if we can account for that by allowing the country.name to allow additional formats. |
@kwa20 No, that shouldn't be a problem. If you have a region associated to a different country, you should be able to import districts for that region. @MartinWahnschaffe @StefanKock Is it difficult to "simply" allow whitespaces for the country.name property? That would indeed be (by far) the best solution in my eyes. Also, this is a critical bug that needs to be resolved in the upcoming release. |
@MateStrysewske when I try importing data for a region in a different country I get this error message. Do you know what the reason for this could be? |
@kwa20 Ooh, okay, I see - looks like we disabled it then. Can't tell why though... @MartinWahnschaffe Do you recall anything related to this? |
I defined When taking the given in example When making sure that For me it looks more like an encoding problem when setting the country.name. Some research showed that from JDK 9 on, the encoding is UTF-8 per default, but has a fallback. Here is a statement, that encoding special characters as Naming the country |
Implemented a hot fix + opened #5821 |
…ding #5669 Fix country name encoding issue in sormas.properties
Bug Description
when defining a country.name in the properties, only specific formats can be read. This is a problem when countries are missing in the standard import (cf. #4782 (comment)) or were generally added to the list. These countries, to count as the server country, need to be set according to the deposited value. However, the properties file does not allow spaces, quotations marks, apostrophes or special characters. This leads to country names having to be adjusted in undesired ways in order to allow importing of districts.
Steps to Reproduce
Expected Behavior
Any deposited country should be able to be set as country.name and still maintain its proper caption
Screenshots
System Details
Additional Information
tested country.name options
error report:
sormas_import_error_ivorycoast(1).txt
district import template:
sormas_import_district_template_ivoryCoast(1).txt
Possible solutions
[These should merely be suggestions with the limited knowledge I have about the technical details]
The text was updated successfully, but these errors were encountered: