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

Weird behavior with ActiveDocs that have a number as system name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • System
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      A very confusing issue with active docs...
      The setup is:

      • an ActiveDoc::Service with ID: 5, system_name: 20 (to represent swagger 2.0)
      • an ActiveDoc::Service with ID: 20, system_name: new

      When in the Active Docs index I trigger Publish/Hide actions for the *new* spec, actually they do NOT apply to the selected spec, instead they are applied to the one with system_name: 20

      I assume that's because of this strange way to fetch the spec: find_by_id_or_system_name!.

      Probably, kind of a corner case, but I haven't found any issue about it, so I thought I'd open it in case somebody faces it too.

              Unassigned Unassigned
              rhn-support-dmayorov Daria Mayorova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: