Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-12885

[Fuse Online] Add option for 'ignoreExportTimestamp' to API

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • fuse-7.7-GA
    • fuse-7.5-GA
    • Fuse Online

    Description

      When we want to export only one integration in an environment, the curl command failed with HTTP/1.1 204 No Content even if the integration is marked CI/CD env "sit":

      curl -v -k -L -H "Content-Type: application/json" -H "SYNDESIS-XSRF-TOKEN: awesome" https://api.apps.cluster-aboucham-8de7.aboucham-8de7.example.opentlc.com/api/v1/public/environments\?withUses\=true -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJzeW5kZXNpcyIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJjaWNkLWNsaWVudC10b2tlbi1rNDJqNSIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50Lm5hbWUiOiJjaWNkLWNsaWVudCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjY5NjdmY2RmLTQwZWMtMTFlYS1iNzBmLTA2M2MwNzVkOWZmMCIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpzeW5kZXNpczpjaWNkLWNsaWVudCJ9.DeL6LJBxvJtU8V0DeOgqKo_5CRbuIKPT3ofrb9Ci3zkL4-fL4VhwDylfCIZzqAF9JDrgPkBZuxx7HQRJlMPoX4aBXoDJrxiulXsZREJYA7xmu5xiYu7Gakbk3XA2xxIeYFJw6egbaGdYcHORGqwUyFHLHM1kaHTHldoQPKc3dNdTTLSxs42rzXh0fYT62q26FmWg6NUl_s3ChEhWSrya3OLfWEU1NRP6iFBFnhxpBK8keBj3NU_fx5hi6LB4TeNdEU7iZ3OLUhOwv-kAy3ncYZUcELL4edAhCBYUWc_Vy-Z2SVaNKSdXm9hlFL5WFfTK2MHUp3WDguEyXpzrKlCrIw'
      
      [{"name":"sit","uses":1},{"name":"dev","uses":0}]%
      

      The export command:

      curl -v -k -L -H "SYNDESIS-XSRF-TOKEN: awesome" https://api.apps.cluster-aboucham-8de7.aboucham-8de7.example.opentlc.com/api/v1/public/integrations/sit/export.zip -o exportenv.zip -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJzeW5kZXNpcyIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJjaWNkLWNsaWVudC10b2tlbi1rNDJqNSIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50Lm5hbWUiOiJjaWNkLWNsaWVudCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjY5NjdmY2RmLTQwZWMtMTFlYS1iNzBmLTA2M2MwNzVkOWZmMCIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpzeW5kZXNpczpjaWNkLWNsaWVudCJ9.DeL6LJBxvJtU8V0DeOgqKo_5CRbuIKPT3ofrb9Ci3zkL4-fL4VhwDylfCIZzqAF9JDrgPkBZuxx7HQRJlMPoX4aBXoDJrxiulXsZREJYA7xmu5xiYu7Gakbk3XA2xxIeYFJw6egbaGdYcHORGqwUyFHLHM1kaHTHldoQPKc3dNdTTLSxs42rzXh0fYT62q26FmWg6NUl_s3ChEhWSrya3OLfWEU1NRP6iFBFnhxpBK8keBj3NU_fx5hi6LB4TeNdEU7iZ3OLUhOwv-kAy3ncYZUcELL4edAhCBYUWc_Vy-Z2SVaNKSdXm9hlFL5WFfTK2MHUp3WDguEyXpzrKlCrIw' -H "Content-Type: multipart/form-data"
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
        0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 35.159.6.5...
      * TCP_NODELAY set
      * Connected to api.apps.cluster-aboucham-8de7.aboucham-8de7.example.opentlc.com (35.159.6.5) port 443 (#0)
        0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0* ALPN, offering h2
      * ALPN, offering http/1.1
      * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
      * successfully set certificate verify locations:
      *   CAfile: /etc/ssl/cert.pem
        CApath: none
      * TLSv1.2 (OUT), TLS handshake, Client hello (1):
      } [270 bytes data]
      * TLSv1.2 (IN), TLS handshake, Server hello (2):
      { [93 bytes data]
      * TLSv1.2 (IN), TLS handshake, Certificate (11):
      { [1652 bytes data]
      * TLSv1.2 (IN), TLS handshake, Server key exchange (12):
      { [333 bytes data]
      * TLSv1.2 (IN), TLS handshake, Server finished (14):
      { [4 bytes data]
      * TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
      } [70 bytes data]
      * TLSv1.2 (OUT), TLS change cipher, Client hello (1):
      } [1 bytes data]
      * TLSv1.2 (OUT), TLS handshake, Finished (20):
      } [16 bytes data]
      * TLSv1.2 (IN), TLS change cipher, Client hello (1):
      { [1 bytes data]
      * TLSv1.2 (IN), TLS handshake, Finished (20):
      { [16 bytes data]
      * SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
      * ALPN, server did not agree to a protocol
      * Server certificate:
      *  subject: CN=*.apps.cluster-aboucham-8de7.aboucham-8de7.example.opentlc.com
      *  start date: Jan 27 09:09:37 2020 GMT
      *  expire date: Jan 26 09:09:38 2022 GMT
      *  issuer: CN=ingress-operator@1580116177
      *  SSL certificate verify result: self signed certificate in certificate chain (19), continuing anyway.
      > GET /api/v1/public/integrations/sit/export.zip HTTP/1.1
      > Host: api.apps.cluster-aboucham-8de7.aboucham-8de7.example.opentlc.com
      > User-Agent: curl/7.54.0
      > Accept: */*
      > SYNDESIS-XSRF-TOKEN: awesome
      > Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJzeW5kZXNpcyIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJjaWNkLWNsaWVudC10b2tlbi1rNDJqNSIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50Lm5hbWUiOiJjaWNkLWNsaWVudCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjY5NjdmY2RmLTQwZWMtMTFlYS1iNzBmLTA2M2MwNzVkOWZmMCIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpzeW5kZXNpczpjaWNkLWNsaWVudCJ9.DeL6LJBxvJtU8V0DeOgqKo_5CRbuIKPT3ofrb9Ci3zkL4-fL4VhwDylfCIZzqAF9JDrgPkBZuxx7HQRJlMPoX4aBXoDJrxiulXsZREJYA7xmu5xiYu7Gakbk3XA2xxIeYFJw6egbaGdYcHORGqwUyFHLHM1kaHTHldoQPKc3dNdTTLSxs42rzXh0fYT62q26FmWg6NUl_s3ChEhWSrya3OLfWEU1NRP6iFBFnhxpBK8keBj3NU_fx5hi6LB4TeNdEU7iZ3OLUhOwv-kAy3ncYZUcELL4edAhCBYUWc_Vy-Z2SVaNKSdXm9hlFL5WFfTK2MHUp3WDguEyXpzrKlCrIw
      > Content-Type: multipart/form-data
      >
      < HTTP/1.1 204 No Content
      < Cache-Control: no-cache, no-store, max-age=0, must-revalidate, proxy-revalidate, s-maxage=0
      < Date: Thu, 30 Jan 2020 11:16:26 GMT
      < Gap-Auth: system:serviceaccount:syndesis:cicd-client@cluster.local
      < Gap-Upstream-Address: syndesis-server
      < Strict-Transport-Security: max-age=31536000 ; includeSubDomains
      < Syndesis-Xsrf-Token: awesome
      < X-Application-Context: application
      < X-Content-Type-Options: nosniff
      < X-Frame-Options: DENY
      < X-Xss-Protection: 1; mode=block
      < Set-Cookie: 5a0238778f012eb1758c52afef20348d=05714d5461be04a3ea77bf143ac4def9; path=/; HttpOnly; Secure
      <
        0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
      * Connection #0 to host api.apps.cluster-aboucham-8de7.aboucham-8de7.example.opentlc.com left intact
      

      Attachments

        Activity

          People

            dbokde Dhiraj Bokde
            rhn-support-aboucham Abel Bouchama
            Matej Kralik Matej Kralik
            Matej Kralik Matej Kralik
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: