[ 
https://issues.apache.org/jira/browse/WW-2963?focusedWorklogId=1009238&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1009238
 ]

ASF GitHub Bot logged work on WW-2963:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 12/Mar/26 07:55
            Start Date: 12/Mar/26 07:55
    Worklog Time Spent: 10m 
      Work Description: lukaszlenart opened a new pull request, #1623:
URL: https://github.com/apache/struts/pull/1623

   ## Summary
   
   - Port of PR #1614 from Struts 7 to Struts 6.x
   - When `default-action-ref` points to an action name that only exists as a 
wildcard pattern (e.g. `"movie-input"` matching `"movie-*"`), the framework now 
falls back to wildcard matching after the exact lookup fails
   - Adds 3 tests covering wildcard resolution, exact match, and no-match 
scenarios
   
   ## Changes
   
   - **`DefaultConfiguration.java`** — 3-line addition: wildcard matcher 
fallback after exact `defaultActionRef` lookup fails
   - **`ConfigurationTest.java`** — 3 new tests: 
`testDefaultActionRefWithWildcard`, `testDefaultActionRefWithExactMatch`, 
`testDefaultActionRefWithWildcardNoMatch`
   - **`xwork-sample.xml`** — 3 new test packages with corresponding namespaces
   
   ## Test plan
   
   - [x] `./mvnw -pl core test 
-Dtest=com.opensymphony.xwork2.config.ConfigurationTest` — all 21 tests pass
   - [ ] Full core test suite: `./mvnw -pl core clean test`
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)




Issue Time Tracking
-------------------

    Worklog Id:     (was: 1009238)
    Time Spent: 40m  (was: 0.5h)

> default-action-ref fails to find wildcard named actions
> -------------------------------------------------------
>
>                 Key: WW-2963
>                 URL: https://issues.apache.org/jira/browse/WW-2963
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.1.6
>         Environment: Windows XP, jetty 6.1.5, Java 1.6
>            Reporter: Tomasz Nurkiewicz
>            Assignee: Lukasz Lenart
>            Priority: Minor
>             Fix For: 6.9.0, 7.2.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> With {{struts.xml}} fragment given below:
> {code:xml}
> <default-action-ref name="movie-list" />
> <action name="movies" class="moviesAction" method="list">
>   <!-- -->
> </action>
> <action name="movie-*" method="{1}" class="moviesAction">
>   <!-- -->
> </action>
> {code}
> Struts2 returns 404: "There is no Action mapped for namespace / and action 
> name ." Specifying action with no wildcard name (e.g. {{<default-action-ref 
> name="movies" />}}) works as expected.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to