Files
Lukasz Lenart fd87425863 fix(spring): WW-3647 change autowire alwaysRespect default to true (#1571)
Change the default value of struts.objectFactory.spring.autoWire.alwaysRespect
from false to true to fix the Spring constructor autowiring issue.

When a Spring String bean exists (e.g., JNDI lookup with default-value),
Spring's AUTOWIRE_CONSTRUCTOR strategy incorrectly injects that value into
ALL String parameters of ServletActionRedirectResult constructors, causing
malformed redirect URLs.

Setting alwaysRespect to true by default ensures the configured autowire
strategy (AUTOWIRE_BY_NAME) is consistently used, preventing unintended
bean injection.

Users who rely on the legacy constructor autowiring behavior can restore
it by setting:
<constant name="struts.objectFactory.spring.autoWire.alwaysRespect" value="false" />

Fixes https://issues.apache.org/jira/browse/WW-3647

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2026-02-09 10:08:33 +02:00
..

Thoughts Directory Structure

This directory structure supports Claude Code research and documentation workflows.

Directory Structure

  • shared/ - Team-shared documents and research
  • $USER/ - User-specific personal notes and drafts
  • global/ - Cross-repository documentation
  • searchable/ - Search index for all thoughts (managed automatically)

Usage

The Claude Code agents use this structure to organize research findings, ticket analysis, and architectural documentation for the Apache Struts project.