<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jeff.johnston.mn" rel="nofollow">Jeff Johnston</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7040?redirect=false" rel="nofollow">SPR-7040</a></strong> and commented</p>
<p dir="auto">I found a bug that surfaced in Spring 3.0.1. The problem is with binding a value to a map with the form select tag.</p>
<p dir="auto">In my JSP I have the following select tag. This will bind to a Map&lt;String, String&gt; field in my command object.</p>
<p dir="auto">&lt;form:select path="questions[${question.key}]" cssClass="${question.key}" items="${question.answers}" itemValue="key" itemLabel="name"/&gt;</p>
<p dir="auto">If I do a view source I can clearly see the problem.</p>
<p dir="auto">In Spring 3.0 I have this:</p>
<p dir="auto">&lt;select id="questionsARTISAN_ARMOIRE_WOOD" name="questions[ARTISAN_ARMOIRE_WOOD]" class="ARTISAN_ARMOIRE_WOOD"&gt;&lt;option value="001" selected="selected"&gt;Cherry&lt;/option&gt;&lt;option value="002"&gt;Walnut&lt;/option&gt;&lt;/select&gt;</p>
<p dir="auto">In Spring 3.0.1 I have this:</p>
<p dir="auto">&lt;select id="questionsARTISAN_ARMOIRE_WOOD" name="questionsARTISAN_ARMOIRE_WOOD" class="ARTISAN_ARMOIRE_WOOD"&gt;&lt;option value="001" selected="selected"&gt;Cherry&lt;/option&gt;&lt;option value="002"&gt;Walnut&lt;/option&gt;&lt;/select&gt;</p>
<p dir="auto">Notice how the name is "questionsARTISAN_ARMOIRE_WOOD" instead of "questions[ARTISAN_ARMOIRE_WOOD]". The brackets got dropped in 3.0.1.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.1</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="398103128" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11537" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11537/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11537">#11537</a> Spring MVC regression: binding to indexed properties is broken (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=michalf" rel="nofollow">Michal Fijas</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7603?redirect=false" rel="nofollow">SPR-7603</a></strong> and commented</p>
<p dir="auto">We use AbstractPollingMessageListenerContainer with default receiveTimeout. When timeout expires the following code executes:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="noMessageReceived(invoker, sessionToUse);
// Nevertheless call commit, in order to reset the transaction timeout (if any).
commitIfNecessary(session, message);"><pre class="notranslate"><code class="notranslate">noMessageReceived(invoker, sessionToUse);
// Nevertheless call commit, in order to reset the transaction timeout (if any).
commitIfNecessary(session, message);
</code></pre></div>
<p dir="auto">but session is null, causing NPE in commitIfNecessary(). Shouldn't it be commitIfNecessary(sessionToUse, message) instead?</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.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="398106931" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12136" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12136/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12136">#12136</a> Setup of JMS message listener invoker failed for destination when upgrading from 3.0.2 to 3.0.4 (<em><strong>"duplicates"</strong></em>)</li>
</ul>