[hibernate-issues] [Hibernate-JIRA] Updated: (BVAL-236) Fails to load META-INF/services provider configuration files on non-ASCII platforms

Hardy Ferentschik (JIRA) noreply at atlassian.com
Fri Aug 5 03:25:02 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/BVAL-236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hardy Ferentschik updated BVAL-236:
-----------------------------------

      Description: 
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.

  was:
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 

<dependency>
  <groupId>javax.validation</groupId>
  <artifactId>validation-api</artifactId>
  <version>1.0.0.GA</version>
</dependency>

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:
BufferedReader reader = new BufferedReader( new InputStreamReader( stream ), 100 );

but I believe it should be:
BufferedReader reader = new BufferedReader( new InputStreamReader( stream, "UTF-8"), 100 );

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.

    Fix Version/s: 1.1

> 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
>              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