Re: allowed-methods tag not working

2024-02-08 Thread Lukasz Lenart
czw., 8 lut 2024 o 16:39 apacheStrutsUsers8 napisał(a): > > I have a Struts app which I am upgrading from Struts 2.5 to Struts 6. In my > struts xml file, I currently have actions which have the allowed-methods tag > like this: > > > /done.jsp > start, finish, next &g

allowed-methods tag not working

2024-02-08 Thread apacheStrutsUsers8
I have a Struts app which I am upgrading from Struts 2.5 to Struts 6. In my struts xml file, I currently have actions which have the allowed-methods tag like this: /done.jsp start, finish, next However, when I try to call someAction!start.action, the start method is not called and it looks

Re: SMI allowed methods not working for struts 2.5.17

2020-06-02 Thread Dave Newton
On Tue, Jun 2, 2020 at 03:14 Lukasz Lenart wrote: > wt., 2 cze 2020 o 09:05 Sailaja S napisał(a): > > How do I invoke multiple methods with the same action? I did post this in > > stackover flow as well. I appreciate your time and inputs. > > Where? https://stackoverflow.com/questions/6206869

Re: SMI allowed methods not working for struts 2.5.17

2020-06-02 Thread Lukasz Lenart
wt., 2 cze 2020 o 09:05 Sailaja S napisał(a): > When I set Dynamic method invocation to false allowed methods is not > working. Should allowed-methods work with SMI? Those two different things, you can enable DMI but you still need to define allowed methods. > How do I invoke multipl

SMI allowed methods not working for struts 2.5.17

2020-06-02 Thread Sailaja S
Hi, Currently I have an app sec issue with Struts Dynamic method invocation being set to true in my struts.xml file. We are using struts2.5. When I set Dynamic method invocation to false allowed methods is not working. Should allowed-methods work with SMI? How do I invoke multiple methods

Re: Allowed methods

2018-01-25 Thread Lukasz Lenart
2018-01-25 13:00 GMT+01:00 Britta Katzenbach : > I tried to put it in the package-info.java. It worked as long as I did not > add an additional method to a certain action, i.e. SpecifyMailTask. If I add > here the annotation to allow the methods "changeLanguage", > "deleteAttachment“, "uploadMailAt

Re: Allowed methods

2018-01-25 Thread Britta Katzenbach
The JIRA entry is: https://issues.apache.org/jira/projects/WW/issues/WW-4912 Regards, Britta Katzenbach > Am 25.01.2018 um 12:02 schrieb Lukasz Lenart : > > 2018-01-25 10:50 GMT+01:00 Britta Katzenbach >: >> struts.xml: >> >> > "uploadMailAttachment"}) >> public

Re: Allowed methods

2018-01-25 Thread Britta Katzenbach
Yes, you are right we do not declare actions in struts.xml and just use the Convention. I tried to put it in the package-info.java. It worked as long as I did not add an additional method to a certain action, i.e. SpecifyMailTask. If I add here the annotation to allow the methods "changeLangua

Re: Allowed methods

2018-01-25 Thread Lukasz Lenart
2018-01-25 10:50 GMT+01:00 Britta Katzenbach : > struts.xml: > > "uploadMailAttachment"}) > public class SpecifyMailTask extends AbstractTask { > > @AllowedMethods(value = {"saveInputAndSuccess"}) > public abstract class AbstractTask extends AbstractBasicJbpmTask implements > ModelDriven, Preparab

Re: Allowed methods

2018-01-25 Thread Britta Katzenbach
orian Schlittgen Registergericht: Amtsgericht Berlin HRB 25607 > Am 25.01.2018 um 10:32 schrieb Lukasz Lenart : > > 2018-01-25 9:31 GMT+01:00 Britta Katzenbach : >> Hello! >> >> we migrated a project to struts 2.5. Therefore we had to add the allowed >>

Re: Allowed methods

2018-01-25 Thread Lukasz Lenart
2018-01-25 9:31 GMT+01:00 Britta Katzenbach : > Hello! > > we migrated a project to struts 2.5. Therefore we had to add the allowed > methods to the actions. We use a bit of inheritance in the action and would > appreciate, if the allowed methods would be inherited as well. We tri

Allowed methods

2018-01-25 Thread Britta Katzenbach
Hello! we migrated a project to struts 2.5. Therefore we had to add the allowed methods to the actions. We use a bit of inheritance in the action and would appreciate, if the allowed methods would be inherited as well. We tried as well to define some additional allowed methods on certain