<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=grzegorzborkowski" rel="nofollow">Grzegorz Borkowski</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7122?redirect=false" rel="nofollow">SPR-7122</a></strong> and commented</p>
<p dir="auto">According to Hibernate Validator documentation, the JPA 2 provider (like Hibernate 3.5) will detect presence of validator implementation on classpath, and automatically validate <code class="notranslate">@Entities</code> during persist or merge calls. However, it doesn't work for me in Spring app - the validation is not called, I must call it explicitly (I don't use <code class="notranslate">@Valid-marked</code> controller inputs, becuase it doesn't fit well our needs. We call Spring DataBinder explicitly, and we have to call it's validate() method to trigger Hibernate Validator to run). Why validation is not triggered by Hibernate automatically? Is it something specific to Spring environment, perhaps it is disabled intentionally (e.g. to not duplicate validation after validating controller inputs)? Or it's Hibernate bug? (I tested it with Hibernate 3.5.0)</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.2</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/19429/SPR-7122.zip" rel="nofollow">SPR-7122.zip</a> (<em>5.63 kB</em>)</li>
</ul>
<p dir="auto">1 votes, 3 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=lkoe" rel="nofollow">Lars Ködderitzsch</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4912?redirect=false" rel="nofollow">SPR-4912</a></strong> and commented</p>
<p dir="auto">I wanted to use ConfigurableMimeFileTypeMap to easily map some common file endings to their mime type.<br>
All looked good until I got "application/x-pointplus" for a CSS resource (filename bla.css) where I would have expected the more commonly used "text/css".</p>
<p dir="auto">Looking into org/springframework/mail/mime.types it became quickly clear that the "css" ending is mapped twice - it seems that the latter mapping won in this case.<br>
I don't know if that is exactly a bug - I myself was quite surprised, and need to "workaround" now using a custom mime types mapping file.<br>
No big deal but I thought you should be made aware of this "issue".</p>
<p dir="auto">Best regards,<br>
Lars Ködderitzsch</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.8, 2.5.4</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398091099" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9850" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9850/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9850">#9850</a> Included mime.types file contains duplicate settings for CSS extension making it return application/x-pointplus instead of text/css (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto"><strong>Backported to:</strong> <a href="https://github.com/spring-projects/spring-framework/milestone/46?closed=1">2.0.9</a></p>