Uploaded image for project: 'CLOUDIFY (R&D)'
  1. CY-214

Error reporting exceptions with non-ascii messages

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Unprioritized
    • Resolution: Fixed
    • Fix Version/s: 4.4, 4.3.1
    • Labels:
      None
    • Steps to Reproduce:
      Hide
      Environment:
      OS (CLI), HA cluster, cloud provider
      ------------------------------------


      Steps to reproduce:
      ------------------
      1. Create a blueprint with a python script in an operation (example attached)
      2. Install the blueprint, and execute the script, by doing eg. {{ cfy exe sta -dd1 execute_operation -p operation=foo.bar -f }}


      Expected result:
      ---------------
      The error message is shown in the log

      Actual result:
      -------------
      An UnicodeEncodeError is thrown (in both cases) and the original error is not shown.
      Show
      Environment: OS (CLI), HA cluster, cloud provider ------------------------------------ Steps to reproduce: ------------------ 1. Create a blueprint with a python script in an operation (example attached) 2. Install the blueprint, and execute the script, by doing eg. {{ cfy exe sta -dd1 execute_operation -p operation=foo.bar -f }} Expected result: --------------- The error message is shown in the log Actual result: ------------- An UnicodeEncodeError is thrown (in both cases) and the original error is not shown.
    • Severity:
      Medium
    • Target Version:
      4.4
    • Premium Only:
      no
    • Found In Version:
      4.4
    • Sprint:
      4.4 Sprint 2, 4.4 Sprint 3
    • Epic Link:
    • Bug Type:
      legacy bug
    • Customer Encountered:
      Yes
    • Customer Name:
      Metaswitch
    • Release Notes:
      yes

      Description

      When an exception is thrown in a plugin, we serialize it to show it to the user. If the exception message contains non-ascii characters, an error is thrown (both if it's a bytestring, or if it's a unicode object).

      We should make sure to not obscure the original exception, and to format the message in such a way that non-ascii characters are handled correctly.

        Attachments

          Activity

            People

            • Assignee:
              lukasz.maksymczuk Łukasz Maksymczuk
              Reporter:
              lukasz.maksymczuk Łukasz Maksymczuk
              QA Owner:
              Lital Hamami (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: