Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-604

ValidationMessages_da.properties contains invalid format strings

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 5.0.18
    • Fix Version/s: 5.1.0.5
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      The ValidationMessages_da.properties contains two invalid formatter strings:

      minimum-string-length=%$2s skal mindst være på %1$d tegn.
      maximum-string-length=%$2s må højst være på %1$d tegn.

      Note the %$2s . It should be %2$s like the other format strings. This gave me the following root cause message:

      Caused by: java.util.UnknownFormatConversionException: Conversion = '$'
      at java.util.Formatter.checkText(Formatter.java:2502)
      at java.util.Formatter.parse(Formatter.java:2466)
      at java.util.Formatter.format(Formatter.java:2413)
      at java.util.Formatter.format(Formatter.java:2366)
      at java.lang.String.format(String.java:2814)
      at org.apache.tapestry5.ioc.internal.util.MessageFormatterImpl.format(MessageFormatterImpl.java:49)
      at org.apache.tapestry5.validator.MinLength.buildMessage(MinLength.java:42)
      at org.apache.tapestry5.validator.MinLength.render(MinLength.java:48)
      at org.apache.tapestry5.validator.MinLength.render(MinLength.java:26)
      at org.apache.tapestry5.internal.services.FieldValidatorImpl.render(FieldValidatorImpl.java:56)
      at org.apache.tapestry5.internal.services.CompositeFieldValidator.render(CompositeFieldValidator.java:45)
      at org.apache.tapestry5.corelib.base.AbstractTextField.begin(AbstractTextField.java:172)
      at org.apache.tapestry5.corelib.base.AbstractTextField.beginRender(AbstractTextField.java)
      at org.apache.tapestry5.internal.structure.ComponentPageElementImpl$11$1.run(ComponentPageElementImpl.java:352)
      at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:925)
      ... 123 more

        Attachments

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              jjagged Hannes Heijkenskjöld
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: