Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E36232004F1 for ; Wed, 30 Aug 2017 17:06:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E1D2A169388; Wed, 30 Aug 2017 15:06:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 38696169386 for ; Wed, 30 Aug 2017 17:06:10 +0200 (CEST) Received: (qmail 21582 invoked by uid 500); 30 Aug 2017 15:06:09 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 21572 invoked by uid 99); 30 Aug 2017 15:06:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Aug 2017 15:06:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 9CBA3C31F6 for ; Wed, 30 Aug 2017 15:06:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 4v7b_Wo0j_x9 for ; Wed, 30 Aug 2017 15:06:07 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 885145FE2E for ; Wed, 30 Aug 2017 15:06:07 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 4C060E0EB9 for ; Wed, 30 Aug 2017 15:06:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 99C7624166 for ; Wed, 30 Aug 2017 15:06:00 +0000 (UTC) Date: Wed, 30 Aug 2017 15:06:00 +0000 (UTC) From: "Vijay Srivastava (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4684) Parameters not set to action when posting JSON MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 30 Aug 2017 15:06:11 -0000 [ https://issues.apache.org/jira/browse/WW-4684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16147399#comment-16147399 ] Vijay Srivastava commented on WW-4684: -------------------------------------- hi, I see the same issue. JSON inpur params are not converted to Java object in action. Is this fix available in 2.5.12 ? Please advise. Like you have a JSON object in the request and which is required to be converted to object as a part of request. request below is not converted to FujiLoginRequest . Can you please check ? For example vzCloud/fuji/fujiLogin.action?request.repositoryPath[0]=VZWEB:/VZMOBILE/1.jpg -------------------------------------------------- public class FujiLoginAction extends BaseAction implements InitializingBean{ private String redirectURL ; private FujiIntegrationDelegate delegate; private FujiLoginResponse fujiLoginResponse ; private FujiLoginRequest request ; public void setRequest(FujiLoginRequest request) { this.request = request; } > Parameters not set to action when posting JSON > ---------------------------------------------- > > Key: WW-4684 > URL: https://issues.apache.org/jira/browse/WW-4684 > Project: Struts 2 > Issue Type: Bug > Components: Core Actions > Affects Versions: 2.5.2 > Environment: Windows > Reporter: COMBEAU > Assignee: Lukasz Lenart > Fix For: 2.5.5 > > Attachments: ActionSample.java, login.jsp, screenshot-1.png, struts-2.3.28.xml, struts.properties, struts.xml > > > I have an issue on my webapp since I have update Struts 2 to version 2.5.2 from 2.3.28. > When I post a form with parameters via ajax call, on the action class setters are not called. All the time the setter and getter return "null" value > I used Struts2-core and struts2-json-plugin -- This message was sent by Atlassian JIRA (v6.4.14#64029)