Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2430

Malformed \uxxxx encoding in MultipleUploadField_sl.properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6
    • 1.4.2
    • None
    • None

    Description

      Apperently the MultipleUploadField_sl.properties file contains an invalid unicode character here:

      org.apache.wicket.mfu.caption.limited=Datoteke (najve\u\u010d ${max}):

      This results in an exception when this file is loaded by wicket:
      Caused by: java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
      at java.util.Properties.loadConvert(Properties.java:492)
      at java.util.Properties.load(Properties.java:331)
      at org.apache.wicket.resource.PropertiesFactory.loadPropertiesFile(PropertiesFactory.java:203)
      at org.apache.wicket.resource.PropertiesFactory.loadPropertiesFileAndWatchForChanges(PropertiesFactory.java:289)
      at org.apache.wicket.resource.PropertiesFactory.load(PropertiesFactory.java:118)
      at org.apache.wicket.resource.loader.ComponentStringResourceLoader.loadStringResource(ComponentStringResourceLoader.java:148)
      at org.apache.wicket.resource.loader.ComponentStringResourceLoader.loadStringResource(ComponentStringResourceLoader.java:225)
      at org.apache.wicket.Localizer.getString(Localizer.java:221)
      at org.apache.wicket.Localizer.getString(Localizer.java:112)
      at org.apache.wicket.Component.getString(Component.java:1799)
      at org.apache.wicket.Component.getString(Component.java:1786)
      at org.apache.wicket.markup.html.form.upload.MultiFileUploadField.renderHead(MultiFileUploadField.java:202)
      at org.apache.wicket.Component.renderHead(Component.java:2544)
      at org.apache.wicket.markup.html.form.FormComponentPanel.renderHead(FormComponentPanel.java:183)
      at org.apache.wicket.markup.html.internal.HtmlHeaderContainer$1.component(HtmlHeaderContainer.java:220)
      at org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:829)
      at org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:844)
      at org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:869)
      at org.apache.wicket.markup.html.internal.HtmlHeaderContainer.renderHeaderSections(HtmlHeaderContainer.java:211)
      at org.apache.wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:136)
      at org.apache.wicket.Component.renderComponent(Component.java:2471)
      ... 45 more

      As far as we can tell versions 1.3.2 - 1.3.6 are affected. You may want to check other versions.

      This is causing a production issue for us, but.. we will work around it by enforcing the en locale on our users.. which in this case is acceptable.

      Cheers,
      Tim

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            tim@ripe.net Tim Bruijnzeels
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: