Uploaded image for project: 'FTS'
  1. FTS
  2. FTS-1095

Internal Server error on /config/se POST when se_info is missing

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • fts-rest 3.8.0
    • REST API
    • Security Level: Public Data (This ticket is visible to anyone on the internet and will be indexed by search engines)
    • None

    Description

      the json should be validated otherwise this code will throw an exception

      we don't enter this block
      https://gitlab.cern.ch/fts/fts-rest/blob/develop/src/fts3rest/fts3rest/controllers/config/se.py#L58

      therefore we return a se_info without assigning a value
      https://gitlab.cern.ch/fts/fts-rest/blob/develop/src/fts3rest/fts3rest/controllers/config/se.py#L93

      local variable 'se_info' referenced before assignment
      

      Attachments

        Activity

          People

            marsuaga Maria Arsuaga Rios
            amanzi Andrea Manzi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Actual Start: