struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4321) ActionConfig constructor lost one properties
Date Tue, 15 Apr 2014 03:37:19 GMT

    [ https://issues.apache.org/jira/browse/WW-4321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13969181#comment-13969181
] 

yang commented on WW-4321:
--------------------------

i bulid a develop planform, overwrite ObjectFactory method:
 public Object buildAction(String actionName, String namespace, ActionConfig config, Map<String,
Object> extraContext) throws Exception;

in this method write java source code:
config.getLocation() ->value = null, after fix this bug, value= jar:file:/D:/developers/ide/apache-maven-repositories/net/newcapec/v3/v3-core/3.5.0-SNAPSHOT/v3-core-3.5.0-SNAPSHOT-v3.jar!/struts.xml

use this control action class must in this jar(v3-core-3.5.0-SNAPSHOT-v3.jar), not allow use
action not exist this jar.

> ActionConfig  constructor  lost one properties 
> -----------------------------------------------
>
>                 Key: WW-4321
>                 URL: https://issues.apache.org/jira/browse/WW-4321
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Dispatch Filter
>    Affects Versions: 2.3.18
>            Reporter: yang
>            Assignee: Lukasz Lenart
>             Fix For: 2.3.18
>
>
> {noformat}
> 16   package com.opensymphony.xwork2.config.entities
> ... ...
> 49  public class ActionConfig extends Located implements Serializable {
> ... ...
> 75    /**
> 76     * Clones an ActionConfig, copying data into new maps and lists
> 77     * @param orig The ActionConfig to clone
> 78     * @Since 2.1
> 79     */
> 80    protected ActionConfig(ActionConfig orig) {
>  ... ...
> 89        this.allowedMethods = new HashSet<String>(orig.allowedMethods);
> lost       super.location = orig.location;
> 90   }
> {noformat}
> ********************************************************
> ActionConfig constructor  lost Located properties "location" value copy.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message