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

Inconsistent capitalisation requirements in REST and clients

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6.10
    • Fix Version/s: fts 3.7.8
    • Component/s: None
    • Security Level: Public Data (This ticket is visible to anyone on the internet and will be indexed by search engines)
    • Labels:
      None

      Description

      It seems that our REST CLI expects capitalised keywords whereas the REST interface rejects them. Can we relax the capitalisation requirement in the cpp client?

      Tested with fts-rest-cli-3.6.10 vs fts-rest-3.7.0 (pilot).

      Scenario 1

      {
      "files": [
      {
      "sources": [
      "srm://dpmhead-rc.cern.ch:8446/srm/managerv2?SFN=/dpm/cern.ch/home/dteam/tf01"
      ],
      "destinations": [
      "srm://domehead-trunk.cern.ch:8446/srm/managerv2?SFN=/dpm/cern.ch/home/dteam/tf01"
      ]
      }
      ],
      "params": {
      "retry": 1,
      "reuse": false,
      "spacetoken": "OMMMMmmmmm2",
      "job_metadata": "Test job",
      "verify_checksum": true,
      "overwrite": true
      }
      }

      With this file, submission via curl works, but fts-transfer-submit --json-submission gives

      The array of files does not exist

      Scenario 2

      {
       "Files": [
       {
       "sources": [
       "srm://dpmhead-rc.cern.ch:8446/srm/managerv2?SFN=/dpm/cern.ch/home/dteam/tf01"
       ], 
       "destinations": [
       "srm://domehead-trunk.cern.ch:8446/srm/managerv2?SFN=/dpm/cern.ch/home/dteam/tf01"
       ]
       }
       ], 
       "Params": {
       "retry": 1, 
       "reuse": false, 
       "spacetoken": "OMMMMmmmmm2",
       "job_metadata": "Test job", 
       "verify_checksum": true, 
       "overwrite": true
       }
      }

      fts-transfer-submit works OK, but curl submission fails

      400 Bad Request

      Scenario 3

      {
       "files": [
       {
       "sources": [
       "srm://dpmhead-rc.cern.ch:8446/srm/managerv2?SFN=/dpm/cern.ch/home/dteam/tf01"
       ], 
       "destinations": [
       "srm://domehead-trunk.cern.ch:8446/srm/managerv2?SFN=/dpm/cern.ch/home/dteam/tf01"
       ]
       }
       ], 
       "Params": {
       "retry": 1, 
       "reuse": false, 
       "spacetoken": "OMMMMmmmmm2",
       "job_metadata": "Test job", 
       "verify_checksum": true, 
       "overwrite": true
       }
      }

      Here fts-transfer-submit fails (same error as above), curl submission succeeds but the parameters are not respected (eg overwrite is not set).

        Attachments

          Activity

            People

            Assignee:
            aalvarez Alejandro Alvarez Ayllon (Inactive)
            Reporter:
            okeeble Oliver Keeble
            Component Watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: