Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
6.1
-
all
Description
having a DIH with DB datasource and propertyWriter such as:
<propertyWriter dateFormat="yyyy-MM-dd HH:mm:ss.SSSSSS" type="SimplePropertiesWriter" locale="en_US" />
does not work with locale in form en_US as mentioned in documentation;
Locale is being looked up by Locale.getDisplayName() which returns human readable representation as opposed to Locale.toLanguageTag, which returns form such as en-US.
Propertywirter with locale in this form works:
<propertyWriter dateFormat="yyyy-MM-dd HH:mm:ss.SSSSSS" type="SimplePropertiesWriter" locale="Slovak" />
Problematic line code:
https://github.com/apache/lucene-solr/blob/branch_6_1/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/SimplePropertiesWriter.java#L95
Attachments
Attachments
Issue Links
- relates to
-
LUCENE-6978 Make LuceneTestCase use language tags instead of parsing locales by hand
- Reopened