[jira] [Updated] (WW-5369) Re-define a minimal library set for Struts 6.x

2023-12-06 Thread Lukasz Lenart (Jira)


 [ 
https://issues.apache.org/jira/browse/WW-5369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart updated WW-5369:
--
Description: 
I had to add the following dependencies to the minimal set of jar provided to 
make it work:

caffeine-2.9.3.jar
javassist-3.29.0-GA.jar

  was:
I had to add the following dependencies to the minimal set of jar provided to 
make it work:

caffeine-2.9.3.jar
commons-fileupload2-core-2.0.0-M1.jar
javassist-3.29.0-GA.jar
struts2-freemarker-jakarta-7.0.0-SNAPSHOT.jar


> Re-define a minimal library set for Struts 6.x
> --
>
> Key: WW-5369
> URL: https://issues.apache.org/jira/browse/WW-5369
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Core
>Reporter: Lukasz Lenart
>Priority: Minor
>  Labels: M1
> Fix For: 6.4.0
>
>
> I had to add the following dependencies to the minimal set of jar provided to 
> make it work:
> caffeine-2.9.3.jar
> javassist-3.29.0-GA.jar



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


[jira] [Updated] (WW-5367) Re-define a minimal library set

2023-12-06 Thread Lukasz Lenart (Jira)


 [ 
https://issues.apache.org/jira/browse/WW-5367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart updated WW-5367:
--
Fix Version/s: (was: 6.4.0)

> Re-define a minimal library set
> ---
>
> Key: WW-5367
> URL: https://issues.apache.org/jira/browse/WW-5367
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Core
>Reporter: Lukasz Lenart
>Priority: Minor
>  Labels: M1
> Fix For: 7.0.0
>
>
> I had to add the following dependencies to the minimal set of jar provided to 
> make it work:
> caffeine-2.9.3.jar
> commons-fileupload2-core-2.0.0-M1.jar
> javassist-3.29.0-GA.jar
> struts2-freemarker-jakarta-7.0.0-SNAPSHOT.jar



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


[jira] [Created] (WW-5369) Re-define a minimal library set for Struts 6.x

2023-12-06 Thread Lukasz Lenart (Jira)
Lukasz Lenart created WW-5369:
-

 Summary: Re-define a minimal library set for Struts 6.x
 Key: WW-5369
 URL: https://issues.apache.org/jira/browse/WW-5369
 Project: Struts 2
  Issue Type: Improvement
  Components: Core
Reporter: Lukasz Lenart
 Fix For: 7.0.0


I had to add the following dependencies to the minimal set of jar provided to 
make it work:

caffeine-2.9.3.jar
commons-fileupload2-core-2.0.0-M1.jar
javassist-3.29.0-GA.jar
struts2-freemarker-jakarta-7.0.0-SNAPSHOT.jar



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


[jira] [Updated] (WW-5369) Re-define a minimal library set for Struts 6.x

2023-12-06 Thread Lukasz Lenart (Jira)


 [ 
https://issues.apache.org/jira/browse/WW-5369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart updated WW-5369:
--
Labels:   (was: M1)

> Re-define a minimal library set for Struts 6.x
> --
>
> Key: WW-5369
> URL: https://issues.apache.org/jira/browse/WW-5369
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Core
>Reporter: Lukasz Lenart
>Priority: Minor
> Fix For: 6.4.0
>
>
> I had to add the following dependencies to the minimal set of jar provided to 
> make it work:
> caffeine-2.9.3.jar
> javassist-3.29.0-GA.jar



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


[jira] [Updated] (WW-5367) Re-define a minimal library set for JakartaEE

2023-12-06 Thread Lukasz Lenart (Jira)


 [ 
https://issues.apache.org/jira/browse/WW-5367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart updated WW-5367:
--
Summary: Re-define a minimal library set for JakartaEE  (was: Re-define a 
minimal library set)

> Re-define a minimal library set for JakartaEE
> -
>
> Key: WW-5367
> URL: https://issues.apache.org/jira/browse/WW-5367
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Core
>Reporter: Lukasz Lenart
>Priority: Minor
>  Labels: M1
> Fix For: 7.0.0
>
>
> I had to add the following dependencies to the minimal set of jar provided to 
> make it work:
> caffeine-2.9.3.jar
> commons-fileupload2-core-2.0.0-M1.jar
> javassist-3.29.0-GA.jar
> struts2-freemarker-jakarta-7.0.0-SNAPSHOT.jar



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


[jira] [Updated] (WW-5369) Re-define a minimal library set for Struts 6.x

2023-12-06 Thread Lukasz Lenart (Jira)


 [ 
https://issues.apache.org/jira/browse/WW-5369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart updated WW-5369:
--
Fix Version/s: 6.4.0
   (was: 7.0.0)

> Re-define a minimal library set for Struts 6.x
> --
>
> Key: WW-5369
> URL: https://issues.apache.org/jira/browse/WW-5369
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Core
>Reporter: Lukasz Lenart
>Priority: Minor
>  Labels: M1
> Fix For: 6.4.0
>
>
> I had to add the following dependencies to the minimal set of jar provided to 
> make it work:
> caffeine-2.9.3.jar
> commons-fileupload2-core-2.0.0-M1.jar
> javassist-3.29.0-GA.jar
> struts2-freemarker-jakarta-7.0.0-SNAPSHOT.jar



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


[jira] [Updated] (WW-5367) Re-define a minimal library set

2023-12-06 Thread Lukasz Lenart (Jira)


 [ 
https://issues.apache.org/jira/browse/WW-5367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart updated WW-5367:
--
Fix Version/s: 6.4.0

> Re-define a minimal library set
> ---
>
> Key: WW-5367
> URL: https://issues.apache.org/jira/browse/WW-5367
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Core
>Reporter: Lukasz Lenart
>Priority: Minor
>  Labels: M1
> Fix For: 6.4.0, 7.0.0
>
>
> I had to add the following dependencies to the minimal set of jar provided to 
> make it work:
> caffeine-2.9.3.jar
> commons-fileupload2-core-2.0.0-M1.jar
> javassist-3.29.0-GA.jar
> struts2-freemarker-jakarta-7.0.0-SNAPSHOT.jar



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


[jira] [Updated] (WW-5367) Re-define a minimal library set

2023-12-06 Thread Lukasz Lenart (Jira)


 [ 
https://issues.apache.org/jira/browse/WW-5367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart updated WW-5367:
--
Summary: Re-define a minimal library set  (was: Re-define a minimal library 
set for JakartaEE)

> Re-define a minimal library set
> ---
>
> Key: WW-5367
> URL: https://issues.apache.org/jira/browse/WW-5367
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Core
>Reporter: Lukasz Lenart
>Priority: Minor
>  Labels: M1
> Fix For: 7.0.0
>
>
> I had to add the following dependencies to the minimal set of jar provided to 
> make it work:
> caffeine-2.9.3.jar
> commons-fileupload2-core-2.0.0-M1.jar
> javassist-3.29.0-GA.jar
> struts2-freemarker-jakarta-7.0.0-SNAPSHOT.jar



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


[jira] [Updated] (WW-5367) Re-define a minimal library set

2023-12-06 Thread Lukasz Lenart (Jira)


 [ 
https://issues.apache.org/jira/browse/WW-5367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart updated WW-5367:
--
Description: 
I had to add the following dependencies to the minimal set of jar provided to 
make it work:

caffeine-2.9.3.jar
commons-fileupload2-core-2.0.0-M1.jar
javassist-3.29.0-GA.jar
struts2-freemarker-jakarta-7.0.0-SNAPSHOT.jar

  was:
I had to add the following dependencies to the minimal set of jar provided to 
make it work:

caffeine-2.9.3.jar
commons-fileupload2-core-2.0.0-M1.jar
javassist-3.29.0-GA.jar
struts2-freemarker-jakarta-7.0.0-SNAPSHOT.jar



> Re-define a minimal library set
> ---
>
> Key: WW-5367
> URL: https://issues.apache.org/jira/browse/WW-5367
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Core
>Reporter: Lukasz Lenart
>Priority: Minor
>  Labels: M1
> Fix For: 6.4.0, 7.0.0
>
>
> I had to add the following dependencies to the minimal set of jar provided to 
> make it work:
> caffeine-2.9.3.jar
> commons-fileupload2-core-2.0.0-M1.jar
> javassist-3.29.0-GA.jar
> struts2-freemarker-jakarta-7.0.0-SNAPSHOT.jar



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


[jira] [Work logged] (WW-5141) Support for JEE 9+

2023-12-06 Thread ASF GitHub Bot (Jira)


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

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

Author: ASF GitHub Bot
Created on: 07/Dec/23 06:30
Start Date: 07/Dec/23 06:30
Worklog Time Spent: 10m 
  Work Description: lukaszlenart commented on code in PR #778:
URL: https://github.com/apache/struts/pull/778#discussion_r1418452454


##
apps/showcase/pom.xml:
##
@@ -145,6 +146,48 @@
 
 
 
+
+  org.apache.maven.plugins
+  maven-dependency-plugin
+  
+
+  
+  copy-dependencies
+  package
+  
+copy

Review Comment:
   It should be possible to play with `` and explicitly defining the 
re-packaged jakarta libs, but this can be done after merge





Issue Time Tracking
---

Worklog Id: (was: 894432)
Time Spent: 6h 40m  (was: 6.5h)

> Support for JEE 9+ 
> ---
>
> Key: WW-5141
> URL: https://issues.apache.org/jira/browse/WW-5141
> Project: Struts 2
>  Issue Type: New Feature
>  Components: Core
>Reporter: Daniel Le Berre
>Priority: Major
>  Labels: M1
> Fix For: 7.0.0
>
> Attachments: pom.xml
>
>  Time Spent: 6h 40m
>  Remaining Estimate: 0h
>
> JEE 9 breaks the JEE API by replacing javax domain by jakarta.
> Tomcat 10 implements some specifications of JEE 9.
> Struts 2.5 has some dependencies with the javax servlet API.
> Struts would require some changes to run on Tomcat 10+.
> Is there any plan to support JEE 9+ in the future?
>  



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


[jira] [Commented] (WW-5368) Access warning when get resource bundle which its name starts with "label"

2023-12-06 Thread Lukasz Lenart (Jira)


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

Lukasz Lenart commented on WW-5368:
---

The tag {{}} is on the top of the ValueStack when evaluating 
expressions {{{}%{...{ so that's why you see the warning and access to 
{{getLabel()}} is blocked.

I would suggest adding a method to an action and used it instead of the 
expression, eg.
{code:java}
public String createLabel(String suffix) {
  return getText("label.reasonOfTransaction." + suffix)
}
{code}
and the in the tag
{code:html}
 
{code}

> Access warning when get resource bundle which its name starts with "label"
> --
>
> Key: WW-5368
> URL: https://issues.apache.org/jira/browse/WW-5368
> Project: Struts 2
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 6.3.0
>Reporter: Alireza Fattahi
>Priority: Critical
> Fix For: 6.4.0
>
>
> The below:
> {code:java}
>  listKey="top" listValue="%{getText('label.reasonOfTransaction.'+top)}"/> 
> {code}
> generates this warning for each item in the list, so if the 
> `reasonOfTransactionList` has seven items I see this error seven time:
> {code:java}
> ognl.SecurityMemberAccess: Access to non-public [protected java.lang.String 
> org.apache.struts2.components.UIBean.label] is blocked!
>  
> {code}
>  
> But this works fine If I  just rename resource bundle and removes `label` 
> from its name
>  
> {code:java}
>  listKey="top" listValue="%{getText('reasonOfTransaction.'+top)}"/> {code}



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


[jira] [Updated] (WW-5368) Access warning when get resource bundle which its name starts with "label"

2023-12-06 Thread Lukasz Lenart (Jira)


 [ 
https://issues.apache.org/jira/browse/WW-5368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart updated WW-5368:
--
Fix Version/s: 6.4.0

> Access warning when get resource bundle which its name starts with "label"
> --
>
> Key: WW-5368
> URL: https://issues.apache.org/jira/browse/WW-5368
> Project: Struts 2
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 6.3.0
>Reporter: Alireza Fattahi
>Priority: Critical
> Fix For: 6.4.0
>
>
> The below:
> {code:java}
>  listKey="top" listValue="%{getText('label.reasonOfTransaction.'+top)}"/> 
> {code}
> generates this warning for each item in the list, so if the 
> `reasonOfTransactionList` has seven items I see this error seven time:
> {code:java}
> ognl.SecurityMemberAccess: Access to non-public [protected java.lang.String 
> org.apache.struts2.components.UIBean.label] is blocked!
>  
> {code}
>  
> But this works fine If I  just rename resource bundle and removes `label` 
> from its name
>  
> {code:java}
>  listKey="top" listValue="%{getText('reasonOfTransaction.'+top)}"/> {code}



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


[jira] [Created] (WW-5368) Access warning when get resource bundle which its name starts with "label"

2023-12-06 Thread Alireza Fattahi (Jira)
Alireza Fattahi created WW-5368:
---

 Summary: Access warning when get resource bundle which its name 
starts with "label"
 Key: WW-5368
 URL: https://issues.apache.org/jira/browse/WW-5368
 Project: Struts 2
  Issue Type: Bug
  Components: Core
Affects Versions: 6.3.0
Reporter: Alireza Fattahi


The below:
{code:java}
 {code}
generates this warning for each item in the list, so if the 
`reasonOfTransactionList` has seven items I see this error seven time:
{code:java}
ognl.SecurityMemberAccess: Access to non-public [protected java.lang.String 
org.apache.struts2.components.UIBean.label] is blocked!
 
{code}
 

But this works fine If I  just rename resource bundle and removes `label` from 
its name

 
{code:java}
 {code}



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