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

Error in expiration time calculation

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • fts-rest 3.8.1
    • fts-rest 3.8.2
    • 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 rest client interprets the UTC expiration time as local, meaning that e.g. in the CERN timezone you can't use a proxy with a lifetime of < 1hr.

      The action is here

      https://gitlab.cern.ch/fts/fts-rest/blob/develop/src/fts3/rest/client/context.py#L100

      we should be using
      not_after.get_datetime() 
      as it stands the "Ugly hack for Python 2.4" is invoked and gives the wrong answer.

       

      Attachments

        Activity

          People

            amanzi Andrea Manzi (Inactive)
            okeeble Oliver Keeble
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Actual End: