lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shalin Shekhar Mangar (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (SOLR-9430) Locale in <propertyWriter in DIH is looked up based on Locale displayName (language tag "en-US" or legacy name "en_US" does not work, English works)
Date Mon, 12 Sep 2016 02:13:20 GMT

     [ https://issues.apache.org/jira/browse/SOLR-9430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shalin Shekhar Mangar reopened SOLR-9430:
-----------------------------------------

Re-opened to back-port to 6.2.1

> Locale in <propertyWriter in DIH is looked up based on Locale displayName (language
tag "en-US" or legacy name "en_US" does not work, English works)
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-9430
>                 URL: https://issues.apache.org/jira/browse/SOLR-9430
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: contrib - DataImportHandler, update
>    Affects Versions: 6.1
>         Environment: all
>            Reporter: Boris Steiner
>            Assignee: Uwe Schindler
>            Priority: Minor
>              Labels: DIH, SimpePropertiesWriter, locale, propertyWriter
>             Fix For: 6.3, 6.x, master (7.0)
>
>         Attachments: SOLR-9430.patch, SOLR-9430.patch
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message