Commit Graph

1528 Commits

Author SHA1 Message Date
Lukasz Lenart c094052969 Uses Java Reflections instead BeanUtils to read property 2022-03-04 12:52:33 +01:00
Lukasz Lenart 115fef2af7 [maven-release-plugin] prepare for next development iteration 2022-02-24 07:11:22 +01:00
Lukasz Lenart 0c9f9c3400 [maven-release-plugin] prepare release STRUTS_6_0_0_RC3 2022-02-24 07:11:13 +01:00
Lukasz Lenart fe7959e5d8 WW-5168 Adjusts tests to flipped if condition 2022-02-13 10:19:01 +01:00
Lukasz Lenart d454384a4b WW-5168 Reverts condition in if statement 2022-02-13 10:00:20 +01:00
Lukasz Lenart 1c3cab2e6f WW-5168 Fixes disabled attribute across all the Javatemplate tags 2022-02-10 18:42:10 +01:00
Lukasz Lenart b1e9eae01c WW-5168 Support submit unchecked in Javatemplates and fixes logic for all FTL template 2022-02-09 17:33:46 +01:00
Lukasz Lenart 14c3a14c8f [maven-release-plugin] prepare for next development iteration 2022-01-29 17:36:34 +01:00
Lukasz Lenart f997d9b1ed [maven-release-plugin] prepare release STRUTS_6_0_0_RC2 2022-01-29 17:36:26 +01:00
Lukasz Lenart effe6875b7 WW-5022 Pass escapeHtmlBody flag to JavaTemplates tags 2022-01-07 10:07:13 +01:00
Lukasz Lenart 57f76d94f2 [maven-release-plugin] prepare for next development iteration 2021-12-19 12:50:38 +01:00
Lukasz Lenart 96aedf9bd5 [maven-release-plugin] prepare release STRUTS_6_0_0_RC1 2021-12-19 12:50:28 +01:00
Lukasz Lenart 598c069d1c WW-5157 Marks Sitemesh plugin as deprecated 2021-12-12 13:26:51 +01:00
Lukasz Lenart 794b9603e6 WW-5156 Marks Plexus plugin as deprecated 2021-12-12 13:24:36 +01:00
Lukasz Lenart d7d718a18a WW-5155 Marks OSGi plugin and bundles as deprecated 2021-12-12 13:19:00 +01:00
Lukasz Lenart 3f0f98532c WW-5154 Marks GXP plugin as deprecated 2021-12-12 13:19:00 +01:00
Lukasz Lenart 1948cca306 WW-5153 Marks Portlet related plugins as deprecated 2021-12-12 13:10:16 +01:00
Lukasz Lenart c3766f329c WW-5152 Marks the OVal plugin as deprecated 2021-12-12 12:39:06 +01:00
Lukasz Lenart e7b20da491 WW-4992 Adds a note since which version this plugin is deprecated 2021-12-12 12:38:43 +01:00
Yasser Zamani b2bfdc5c88 fix double evaluations... (#483)
* fix double evaluations...

* fix UIBean and its subclasses double evaluations
* fix Param tag used with Bean tag double evaluations
(to be continued)

Reference:
https://securitylab.github.com/research/apache-struts-double-evaluation/

* fix AliasInterceptor

* fix StreamResult

* fix JasperReportsResult

* add singleton not excluded and accepted pattern checker for non interceptors

* add missing escapedIds
2021-11-24 22:39:01 +03:30
Yuliang Fan a368cb6328 fixed flakiness in JacksonXmlHandlerTest.java (#500)
* fixed flakiness in JacksonXmlHandlerTest.java

* update whitespace/compilation error/indentation

* fixing typos

* move toString() after flush()
2021-11-02 08:08:58 +01:00
Lukasz Lenart 30e549fe57 [WW-5143] [WW-5142] Upgrades OVal to ver. 3.2.1 and upgrades XStream to ver 1.4.18 (#499)
* WW-5143 WW-5142 Upgrades OVal to ver. 3.2.1 and upgrades XStream to ver 1.4.18

* WW-5143 Improves test
2021-10-04 12:12:24 +03:30
Stefaan Dutry f1ca6d0e2a [WW-5064] Move XWork Spring support into struts2-spring-plugin 2021-09-24 11:40:16 +02:00
Lukasz Lenart 58503d422e WW-5134 Upgrades JasperReports to version 6.17.0 2021-06-19 09:12:38 +02:00
Lukasz Lenart f43a8b73bd WW-5113 Drops deprecated struts.xworkTextProvider 2021-01-23 17:47:24 +01:00
Lukasz Lenart 57db5c337c Merge pull request #462 from apache/WW-5021-static-content-path
[WW-5021] Introduces a new constant to allow define a path to static content
2021-01-11 07:33:06 +01:00
Lukasz Lenart f5ad43a51c Merge pull request #465 from apache/WW-5099-upgrade-jfreechart
[WW-5099] Upgrades JFreeChart to version 1.5.1
2021-01-10 11:52:19 +01:00
Lukasz Lenart 1775e0e6cf WW-5000 Extracts string literals as constants 2021-01-03 10:56:46 +01:00
Lukasz Lenart 22ee49151b WW-5099 Upgrades JFreeChart to version 1.5.1 2021-01-03 10:15:09 +01:00
Lukasz Lenart ef72783f50 WW-5021 Introduces a new constant to allow define a path to static content 2021-01-02 17:52:29 +01:00
Lukasz Lenart fbdcd2c4a7 WW-5063 Adds tests to cover new functionality 2020-12-24 16:39:29 +01:00
Lukasz Lenart f2540192bf WW-5063 Adds null check for ActionInvocation 2020-12-24 15:45:46 +01:00
Lukasz Lenart 7840fa1333 Merge pull request #453 from apache/WW-3877-removes-alt-syntax
[WW-3877] Drops altSyntax option
2020-12-10 16:35:06 +01:00
yilinwang fb49bc4705 classMethods 2020-12-07 04:02:14 -06:00
yilinwang 40d529c439 sort getMethods 2020-12-07 02:44:51 -06:00
Lukasz Lenart eec9eb3c0c WW-3877 Drops altSyntax option 2020-12-06 09:59:01 +01:00
Lukasz Lenart b4bc5dcf75 WW-5078 Removes support for <xwork> DTDs 2020-11-29 15:51:18 +01:00
Lukasz Lenart 5186d348d5 Merge pull request #447 from apache/WW-5095-cherry-pick
[WW-5095] Cherry picks changes from 2-5-x branch
2020-11-20 07:45:55 +01:00
Lucas Cabral 0339ff4550 Fix meaningless close 2020-11-17 19:04:53 -03:00
Lukasz Lenart 8bbe1949e1 Avoids recursion in tags 2020-11-13 19:31:41 +01:00
Lukasz Lenart a6cd7a0c25 WW-5095 Sets ActionMapping when preparing a test nv 2020-11-13 18:51:32 +01:00
Lukasz Lenart f2a3c3955a Merge pull request #434 from salcho/post-ww-5083
Refactoring Nonce Propagation in Struts Tags for CSP
2020-09-21 10:03:23 +02:00
Ecenaz Ozmen 62424ef30c Refactoring script and link elements for CSP nonce propagation 2020-08-31 11:39:57 +03:00
Aleksandr Mashchenko 6210afa747 Merge pull request #430 from salcho/post-ww-5083
WW-5084: Add Content Security Policy support to Struts
2020-08-30 23:37:16 +03:00
JCgH4164838Gh792C124B5 cb3ca4b311 Initial attempt to fix OSGi Plugin issues discovered during examination of
WW-5075.
- Draws on PR#427 and utilizes similar code, but updated for JDK8.
- Updated OSGi plugin dependencies to OSGi R7.
- Indication is that the OSGi Plugin has been failing since Struts 2.3.4.
- Applied fix to ResourceFinder to restore 2.3.x logic that was broken in
  2.5.x.
- Implemented changes to restore OSGi Plugin functionality for 2.6.x.
- Applied changes to the OSGi Admin Bundle to function under 2.6.x.
- Applied changes to the OSGi Demo Bundle to function under 2.6.x.
- Updated the OSGi Admin Bundle JS libraries and related CSS to newer
  versions.
- Added new unit tests for the OSGi plugin.
- The OSGi plugin will only function properly with exploded/expanded WAR
  files.
- BundlePackageLoader changes suggested by L. Lenart (from PR#427).
- FelixOsgiHost changes to better handle Felix bundle cache location
  processing (Windows and Linux).
- FelixOsgIHost test modified to not fail if felix-cache directory
  cannot be created (warn only) to avoid failing the whole build.
- FelixOsgIHost test modified to not fail if felix-cache directory
  bundle load issues arise (warn only) to avoid failing the whole build.
2020-08-21 16:04:19 -04:00
gchatz22 4d8bec5d0a Cspinterceptor (#2)
Support for CSP in Struts 2:

- Implements a CSP Interceptor that adds a nonce-based, strict-dynamic policy to HTTP responses.
- Implements custom JSP and FTL <script> tags that add nonces to script blocks automatically. This makes these tags compatible with CSP with minimal refactoring.
- Implements an extensible action that can be used to collect CSP reports out of the box. This behaviour is extensible, so developers can customise the processing of CSP reports. 

Co-authored-by: Ecenaz Jen Ozmen <eo2419@columbia.edu>
Co-authored-by: Giannis Chatziveroglou <giannisc@google.com>
Co-authored-by: Sal <salchoman@gmail.com>
2020-07-28 15:52:50 +02:00
JCgH4164838Gh792C124B5 d29c2f6161 Minor post WW-5030 Cleanup:
- Correction/fix for test within testMockPortletSession(), following
recent changes.
- Fix TestMockMultipartFile.isEmpty() bug in both original logic and recent
changes.
2020-05-16 14:24:55 -04:00
Lukasz Lenart 91d4ab553e Fixes lastAccessedTime not modified once session was invalidated 2020-05-16 08:54:29 +02:00
Lukasz Lenart 0129d30abf Merge pull request #397 from apache/action-context-boost
[WW-4789] [WW-3788] ActionContext refactoring
2020-05-04 07:06:32 +02:00
JCgH4164838Gh792C124B5 a6711251a6 Proposed WW-5074 Fix:
- Exclude ASM 3.3.1 from inclusion as a dependency for commons-digester3
  (also mark commons-digester3 as optional dependency since it is only
  listed to allow the exclusion).
- Provide explicit test dependency of ASM 3.3.1 for portlet-plugin
  (otherwise its jmock tests are unable to execute).
2020-05-03 12:58:37 -04:00