Uploaded image for project: 'Pentaho Schema Workbench'
  1. Pentaho Schema Workbench
  2. PSW-128

Fix for PSW-125 to handle special characters in http basic authentication

    XMLWordPrintable

    Details

    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.

      Description

      Fix for PSW-125 to handle special characters in http basic authentication

      The problem described in PSW-125 occurs if you have special characters (e.g. german umlauts "öäü") in the password field.

      Did some testing to find the cause of this bug (e.g. upgrading to httpclient-4.1.2, but changes were reverted)
      Found a "smaller" solution, by adding 3 lines of code.

      The "solution" can perhaps be applied to other tools like Pentaho Report Designer (did not test that).

      Technical problem description:
      The httpclient-library converts the UsernamePasswordCredentials to charset "US-ASCII" per default.
      Due to this the special characters are replaced by a question mark. [äöü] --> [?].
      This can be fixed by setting the charset for the Headers to "UTF-8".

      Now passwords with special characters and normal passwords work.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ldeng Li Deng
              Reporter:
              mst_nbg Michael Stumpf
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: