You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2010/10/23 21:04:19 UTC
[jira] Resolved: (WW-3509) JSONResult.setIncludeProperties()
constructs incorrect patterns
[ https://issues.apache.org/jira/browse/WW-3509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart resolved WW-3509.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.2.2
Patch applied, thanks!
> JSONResult.setIncludeProperties() constructs incorrect patterns
> ---------------------------------------------------------------
>
> Key: WW-3509
> URL: https://issues.apache.org/jira/browse/WW-3509
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - JSON
> Affects Versions: 2.2.1
> Reporter: John Lindal
> Assignee: Lukasz Lenart
> Fix For: 2.2.2
>
>
> // Add a pattern that does not have the indexed property
> // matching (ie. list\[\d+\] becomes list).
> if (patternPiece.endsWith("\\]")) {
> - this.includeProperties.add(Pattern.compile(patternExpr.substring(0, patternPiece
> + this.includeProperties.add(Pattern.compile(patternExpr.substring(0, patternExpr
> .lastIndexOf("\\["))));
>
> if (LOG.isDebugEnabled())
> LOG.debug("Adding include property expression: "
> - + patternExpr.substring(0, patternPiece.lastIndexOf("\\[")));
> + + patternExpr.substring(0, patternExpr.lastIndexOf("\\[")));
> }
>
> this.includeProperties.add(Pattern.compile(patternExpr));
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.