Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3552

FileUploadInterceptor and TokenInterceptor should use the configured custom TextProvider

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.3.1
    • Component/s: Core Interceptors
    • Labels:
      None

      Description

      Struts2 supports the usage of a custom text provider by setting some environment constants in struts.xml:

      example:
      <bean class="test.CustomTextProvider" name="myTextProvider" type="com.opensymphony.xwork2.TextProvider" />
      <constant name="struts.xworkTextProvider" value="myTextProvider" />

      The struts2 core FileUploadInterceptor and the TokenInterceptor don't use this new custom TextProvider hence they use XWork's LocalizedTextUtil class to lookup translations. Why the translations don't get resolved via an injected TextProvider?

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              herbert01 Herbert

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment