Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1490

FlexBase64 doesn't use URL table for encoding ByteBuffer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.0.18.Final
    • 2.0.15.Final
    • Core
    • None

    Description

      When debugging issue WFLY-11639 I found a bug in the FlexBase64 encoder on line 264.

      The code is:

          public static String encodeStringURL(ByteBuffer source, boolean wrap) {
              return Encoder.encodeString(source, wrap, false);
          }
      

      But should be:

          public static String encodeStringURL(ByteBuffer source, boolean wrap) {
              return Encoder.encodeString(source, wrap, true);
          }
      

      I'll send a pull request.

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-rhusar Radoslav Husar
              andreasasplund Andreas Asplund (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: