Re: Upload Form field name [struts.token.name] is not accepted

Łukasz Lenart <[email protected]> Wed, 12 Feb 2025 06:56:35 +0100
Newsgroups gmane.comp.jakarta.struts.devel
Message-ID <CAMopvkPSjrk4ymjf2RECJ4q4aY28PixKHRK17Qy1vkO04_h+-w@mail.gmail.com>
śr., 12 lut 2025 o 04:50 戸田 栞太(HARP) <[email protected]> napisał(a):
>
> In versions prior to 6.7.2, struts.token.name was successfully retrieved as a token. However, the current issue of not being able to retrieve it occurs in an Interceptor instead of a Normal Action.
>
> [2025-02-12 09:36:30.309] INFO  Dispatcher              - Unable to find 'struts.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir
> [2025-02-12 09:36:30.427] WARN  JakartaMultiPartRequest - Form field name [struts.token.name] is not accepted
> [2025-02-12 09:36:30.460] WARN  TokenHelper             - Could not find token name in params.
>
> Is the inability to use this feature in this version an intentional change? If so, is there an alternative method available?

This is due to hardening file upload logic, please consider this as a
bug. I'll try to figure out a better solution.


Cheers
Lukasz