Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-10172

description option of aplication create doesn't support characters other than ascii

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 2.13.2 GA
    • Toolbox
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

    Description

      description option of aplication create doesn't support characters other than ascii.

      $ podman run registry.redhat.io/3scale-amp2/toolbox-rhel8:3scale2.13 3scale application create  --description="ใƒ†ใ‚นใƒˆ" https://<ACCESS_TOKEN>@3scale-admin.example.com 3 2 7 test
      {
        "code": "E_UNKNOWN",
        "message": "\"\\xE3\" from ASCII-8BIT to UTF-8",
        "class": "Encoding::UndefinedConversionError",
        "stacktrace": [
          "/usr/share/ruby/json/common.rb:224:in `generate'",
          "/usr/share/ruby/json/common.rb:224:in `generate'",
          "/opt/toolbox/vendor/bundle/ruby/2.7.0/gems/3scale-api-1.6.0/lib/3scale/api/http_client.rb:150:in `encode'",
          "/opt/toolbox/vendor/bundle/ruby/2.7.0/gems/3scale-api-1.6.0/lib/3scale/api/http_client.rb:105:in `serialize'",
          "/opt/toolbox/vendor/bundle/ruby/2.7.0/gems/3scale-api-1.6.0/lib/3scale/api/http_client.rb:52:in `post'",
          "/opt/toolbox/vendor/bundle/ruby/2.7.0/gems/3scale-api-1.6.0/lib/3scale/api/client.rb:89:in `create_application'",
          "/opt/toolbox/lib/3scale_toolbox/remote_cache.rb:186:in `public_send'",
          "/opt/toolbox/lib/3scale_toolbox/remote_cache.rb:186:in `method_missing'",
          "/opt/toolbox/lib/3scale_toolbox/entities/application.rb:6:in `create'",
          "/opt/toolbox/lib/3scale_toolbox/commands/application_command/create_command.rb:41:in `run'",
          "/opt/toolbox/vendor/bundle/ruby/2.7.0/gems/cri-2.15.11/lib/cri/command_runner.rb:34:in `call'",
          "/opt/toolbox/vendor/bundle/ruby/2.7.0/gems/cri-2.15.11/lib/cri/command_dsl.rb:294:in `block in runner'",
          "/opt/toolbox/vendor/bundle/ruby/2.7.0/gems/cri-2.15.11/lib/cri/command.rb:362:in `run_this'",
          "/opt/toolbox/vendor/bundle/ruby/2.7.0/gems/cri-2.15.11/lib/cri/command.rb:298:in `run'",
          "/opt/toolbox/vendor/bundle/ruby/2.7.0/gems/cri-2.15.11/lib/cri/command.rb:316:in `run'",
          "/opt/toolbox/vendor/bundle/ruby/2.7.0/gems/cri-2.15.11/lib/cri/command.rb:316:in `run'",
          "/opt/toolbox/lib/3scale_toolbox/cli.rb:48:in `block in run'",
          "/opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:5:in `block in error_watchdog'",
          "/opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:11:in `error_watchdog'",
          "/opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:5:in `error_watchdog'",
          "/opt/toolbox/lib/3scale_toolbox/cli.rb:45:in `run'",
          "/opt/toolbox/exe/3scale:15:in `<top (required)>'",
          "/opt/toolbox/bin/3scale:29:in `load'",
          "/opt/toolbox/bin/3scale:29:in `<main>'"
        ]
      

      FYI: Application Create API supports that with url encoded characters.

      curl -v  -X POST "https://3scale-admin.example.com/admin/api/accounts/3/applications.xml" -d 'access_token=<ACCESS_TOKEN>&plan_id=7&name=test&description=%E3%83%86%E3%82%B9%E3%83%88'
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-tkonishi Takayuki Konishi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: