Uploaded image for project: 'Wink'
  1. Wink
  2. WINK-208

Fix issue with UriEncoder with internationalized characters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.0
    • Common
    • None

    Description

      Need to be slightly more permissive in international characters. Exception:

      java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 227
      at org.apache.wink.common.internal.uri.UriEncoder.decodeString(UriEncoder.java:460)
      at org.apache.wink.common.internal.uri.UriEncoder.normalize(UriEncoder.java:435)
      at org.apache.wink.common.internal.utils.UriHelper.normalize(UriHelper.java:486)
      at org.apache.wink.server.internal.contexts.UriInfoImpl.buildRequestPath(UriInfoImpl.java:338)
      at org.apache.wink.server.internal.contexts.UriInfoImpl.getPath(UriInfoImpl.java:165)
      at org.apache.wink.server.internal.contexts.UriInfoImpl.getPathSegments(UriInfoImpl.java:206)
      at org.apache.wink.server.internal.handlers.FindRootResourceHandler.handleRequest(FindRootResourceHandler.java:53)
      at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
      at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
      at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:55)
      at org.apache.wink.server.internal.handlers.HeadMethodHandler.handleRequest(HeadMethodHandler.java:47)
      at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
      at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
      at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:55)
      at org.apache.wink.server.internal.handlers.OptionsMethodHandler.handleRequest(OptionsMethodHandler.java:42)
      at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
      at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)

      when using a normalized URI with Japanese characters.

      Attachments

        Activity

          People

            bluk Bryant Luk
            bluk Bryant Luk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: