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

Expected string in extra_fields.rb

XMLWordPrintable

    • False
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • No
    • Hide

      Not yet reproduced

      Show
      Not yet reproduced

      Caught by Bugsnag.

      100th event in production from System in admin/api/accounts#index (details)
       
      Unhandled error
      NoMethodError: undefined method `strip' for 2100:Integer
      Location
      app/lib/fields/extra_fields.rb:62 - block (2 levels) in extra_fields_to_xml

      DEV NOTES:
      Turns out the extra_fields are not validated to be strings. When updating an account and passing the parameters in JSON format, extra_fields can get integers therefore causing this error permanently until then affected record is updated again.

      Besides enforcing future extra_fields to be String, we need to update the affected customer records in the DB for this error to stop.

              Unassigned Unassigned
              jgallaso Jose Miguel Gallas Olmedo
              Alexander Zgabur Alexander Zgabur
              Jose Miguel Gallas Olmedo Jose Miguel Gallas Olmedo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: