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

FlexBase64 doesn't use URL table for encoding ByteBuffer

XMLWordPrintable

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

      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.

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

                Created:
                Updated:
                Resolved: