[hibernate-issues] [Hibernate-JIRA] Resolved: (BVAL-236) Fails to load META-INF/services provider configuration files on non-ASCII platforms
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Mon Sep 26 17:12:36 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/BVAL-236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Bernard resolved BVAL-236.
-----------------------------------
Resolution: Fixed
Thanks for the report. It's not in Git's master.
> Fails to load META-INF/services provider configuration files on non-ASCII platforms
> ------------------------------------------------------------------------------------
>
> Key: BVAL-236
> URL: http://opensource.atlassian.com/projects/hibernate/browse/BVAL-236
> Project: Bean Validation
> Issue Type: Bug
> Components: ri-general - obsolete go to HValidator
> Affects Versions: 1.0 final
> Reporter: Paul Vonnahme
> Assignee: Emmanuel Bernard
> Labels: EBCDIC,, UTF-8, Validation,
> Fix For: 1.1
>
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> I'm not sure if this is the correct place for this issue, but I didn't see anything under HValidator about ri. This bug exists in the maven artifact
> {code}
> <dependency>
> <groupId>javax.validation</groupId>
> <artifactId>validation-api</artifactId>
> <version>1.0.0.GA</version>
> </dependency>
> {code}
> If there is a newer version that fixes this bug I apologize. In any case, in the jar above, the issue occurs in javax.validation.Validation$DefaultValidationProviderResolver.getValidationProviders
> Line 322 has:
> {code}
> BufferedReader reader = new BufferedReader( new InputStreamReader( stream ), 100 );
> {code}
> but I believe it should be:
> {code}
> BufferedReader reader = new BufferedReader( new InputStreamReader( stream, "UTF-8"), 100 );
> {code}
> In order to work on non-ASCII platforms (EBCDIC in my case)
> From http://download.oracle.com/javase/6/docs/technotes/guides/jar/jar.html#Provider%20Configuration%20File
> Provider-Configuration File
> A service provider identifies itself... The file must be encoded in UTF-8.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list