Jump to content
Welcome to our new Citrix community!
  • 0

API issue


Rob Rains

Question

One of our vendors, Team Dynamix, is using a connecting software called iPaaS to drop attachments from one of their forms into our ShareFile instance.  The API and connection have worked great until very recently, when a persistent problem started.  The following is from our vendor's developer:

 

Around 3/25 it appears ShareFile’s PrepareUpload might be handing out bad URLS, OR … URLS that need to be handled differently for some reason.  None of which is apparent from ShareFile’s API documentation.

 

I will be more than happy to talk with ShareFile if we can get someone from ShareFile involved, but It would be helpful to get them the information below.

 

Here are the two test runs I documented. One was yesterday (3/28), where the uploading to the folder worked. And one was this morning where uploading to the same folder failed (NOT FOUND).  Note: the two runs show a ChunkUri that highly different and the failed ChunkUri always seems to fail.

 

3/28 @ 6:25pm to Folders > HHUNY > 1.Referrals  (id = fo075290-7f1f-4e38-b2e8-a3d05c0a20a4)

RESULT:  SUCCESS

 

PrepareUpload: Input

 

{

    "folderID": "fo075290-7f1f-4e38-b2e8-a3d05c0a20a4",

    "method": "standard",

    "raw": false

}

 

PrepareUpload: Response

 

{

  "Response": {

    "Method": "Standard",

    "ChunkUri": "https://storage-hipaa-161.sharefile.com/upload.aspx?uploadid=a5033376-c95d-4ebf-9166-c66a18db1b29&cid=wdhc_61vP0KT0oEeQCbikw&tool=apiv3&batchid=7476e81d-4ab9-4521-8a80-c55e8439a5bb&encparams=ZfK03RzObZ06f6zz1oj3wVM268zU8YfsXqG_0UVXtEc0u18wJIdP7eVu0hVavmsX6VJPbA5GHbozI_V3_Al4A0bHnPNNSdUjTTyayijNNADgaxBu_LREwaFazk44aPO4RbifdDhaNK1htp97E7cgO_klM9wN-uGlVV6S47pH9JU15Nvulz2DREkSrXgGR5CTpDDXECJW-uWXTvf1jOq9_3UzHF6cgvW44YmMZxJlZoYcwsVUGj5qA914i2jV2920iE9ar4BjjVwjiEsahyycT8-4eVhA_7GvKZq8iexiIAtSektNVgyqg8MNfHw6P5qZYQw0XW7JcWAgVkbJY1OP6GwfHFdqEZzYEu0INLOwAaoSxW8tSApwr7432L8xTm2wiAJzk5VmnkSH55LH9yUPN646HeVd4M_tV0yhdT6g1vwwq0xB5XhXQzMit1KoW57SxwqNIUu0UJi7NQdpgOey9sCKEfGggAlwDIIwTuT1OSY6W3b7-7ELOCUgU96EeqhlKW23fM_5lbd9ggwUkfL-aKE28aZzjQ2p9sDODUhuy6iqLwE-FCaaQtJQiu-XxQc9P2vhigdnCaufieYSQtmILQzMohps0OO2xv7lCP29vDQseFzhUtN-ByhgMdS_GbYbXsAx4gExmguP&zoneid=zpB65440AE-4FBC-4405-BE2F-2B9CDE962C82&exp=1648592729&zsid=F1&h=QBP0uakdToGll42lJs4sJ9CFGfzjDw1962IFoj%2FCKlI%3D",

    "ProgressData": "a5033376-c95d-4ebf-9166-c66a18db1b29%2chttps%3a%2f%2fstorage-hipaa-161.sharefile.com%2fuploadstatus.ashx%2cAmazon-Standard%2czpB65440AE-4FBC-4405-BE2F-2B9CDE962C82%2cm3yg6xB1pmJty6lJrSlHgBTB1bG5NgV4%2f3tgVqYrB5c%3d%2cF1",

    "IsResume": false,

    "ResumeIndex": 0,

    "ResumeOffset": 0,

    "ResumeFileHash": "",

    "MaxNumberOfThreads": 4,

    "CanAcceptParamsInHeaders": false,

    "odata.metadata": "https://hhuny.sharefile.com/sf/v3/$metadata#UploadSpecification/ShareFile.Api.Models.UploadSpecification@Element",

    "odata.type": "ShareFile.Api.Models.UploadSpecification"

  },

  "Headers": {

    "Date": "Mon, 28 Mar 2022 22:25:29 GMT",

    "Connection": "keep-alive",

    "Set-Cookie": "AWSALBTG=59osDIWgwJncHLFkrJ1cVeOP1nGqAG6G8wflNCWQkOESoHm1vocjWRoB1rZD0ph9u0JQAcMjqBNaggiF3zoJcEigoDTHw+4ycYbY57bJDvSd1Z2j0PPpEoUvheNI8EMPTidnllNRhyyrpevIPscg9JMBqMXcvGpXFLKHNJmhi/mk; Expires=Mon, 04 Apr 2022 22:25:29 GMT; Path=/",

    "Cache-Control": "no-store, no-cache",

    "Pragma": "no-cache",

    "Vary": "Accept-Encoding",

    "Server": "Microsoft-IIS/10.0",

    "X-SFAPI-RequestID": "637840887298067343",

    "Citrix-TransactionId": "c141a4b8-5463-4853-aeaf-0ccb70b3bfe8",

    "CorrelationId": "wdhc_61vP0KT0oEeQCbikw",

   "X-Content-Type-Options": "nosniff",

    "X-XSS-Protection": "1; mode=block",

    "X-Frame-Options": "DENY",

    "X-SFAPI-AuthenticatedUserId": "ae978d2f-5b86-4580-8e8b-d34d955f4567",

    "X-SFAPI-UserIsImpersonated": "False",

    "X-SFAPI-AccountId": "a2832669-32f9-e5da-f214-4476ae02b471",

    "X-SFAPI-OAuthClientId": "VGNlvLJPOoLEPih8N9dZKFb4dbwwFKIn",

    "X-SFAPI-AppCode": "ThirdParty",

    "X-Robots-Tag": "noindex"

  },

  "HTTPResponseCode": "200: OK"

}

 

Upload: Response

 

{

    "Response": "OK",

    "Headers": {

      "Cache-Control": "private",

      "Vary": "Accept-Encoding",

      "Access-Control-Allow-Origin": "*",

      "Access-Control-Max-Age": "3628800",

      "Access-Control-Allow-Headers": "content-type",

      "Access-Control-Allow-Methods": "OPTIONS, TRACE, GET, HEAD, POST",

      "X-Content-Type-Options": "nosniff",

      "X-XSS-Protection": "1; mode=block",

      "X-Frame-Options": "DENY",

      "Date": "Mon, 28 Mar 2022 22:25:32 GMT",

      "x-sf-server": "storageCenter_HTTP/i-0f563668846b69754_us-east-1d",

      "Strict-Transport-Security": "max-age=16000000; includeSubDomains; preload;",

      "Connection": "close"

    },

    "HTTPResponseCode": "200: OK"

  }

 

 

3/29 @ 9:59 to Folders > HHUNY > 1.Referrals  (id = fo075290-7f1f-4e38-b2e8-a3d05c0a20a4)

RESULT:  FAILED (NOT FOUND)

PrepareUpload: Input

 

{

    "folderID": "fo075290-7f1f-4e38-b2e8-a3d05c0a20a4",

    "method": "standard",

    "raw": false

}

PrepareUpload: Response

 

  {

    "Response": {

      "Method": "Standard",

      "ChunkUri": "https://sf-apiadapter-sharefile-hipaa.sharefile.com/service/apiadapter/api/standardupload?uploadid=d5cd31aa-82d2-4fd0-9d71-075f6f2643cb&accountid=a2832669-32f9-e5da-f214-4476ae02b471&zoneid=zpB65440AE-4FBC-4405-BE2F-2B9CDE962C82&zsid=f1&h=SONkITZEOaPKROtP3KyfZMeCtzjIE7lZSyLLkDgH7Zw%3D",

      "IsResume": false,

      "ResumeIndex": 0,

      "ResumeOffset": 0,

      "ResumeFileHash": "",

      "MaxNumberOfThreads": 4,

      "odata.metadata": "https://hhuny.sharefile.com/sf/v3/$metadata#UploadSpecification/ShareFile.Api.Models.UploadSpecification@Element",

      "odata.type": "ShareFile.Api.Models.UploadSpecification"

    },

    "Headers": {

      "Date": "Tue, 29 Mar 2022 13:58:35 GMT",

      "Connection": "keep-alive",

      "Set-Cookie": "AWSALBTG=d4+GELCn9SSy1dASyNO4agwjilZp2ObtaVNRsWkN+O80eoHo5gVX/ZRhocN4hF1hRrKuadSr+8h9l9dQ+x4H+EHE/LRUom++KhvbOX29GEAbZivnwgSDBXIRL60kP6wPKO7hdaaZEfhNxUWjRdcz4zN29F90gjD0UIYInA1/EquIDPVkQ+7Jsyzv///Yk3DLNPlt4V5z7NlPrItGkk+9HqQHUZ15VZYSjDdLDw8MzcKSnMcUHVjhVT7zflLmTc2s; Expires=Tue, 05 Apr 2022 13:58:34 GMT; Path=/",

      "Cache-Control": "no-store, no-cache",

      "Pragma": "no-cache",

      "Server": "Microsoft-IIS/10.0",

      "X-SFAPI-RequestID": "637841447146395179",

      "Citrix-TransactionId": "6d55a5ad-9e73-4d72-8ecd-e6bd65dfdafa",

      "CorrelationId": "n6GNhBqCUkWdK0H_CULVdg",

      "X-Content-Type-Options": "nosniff",

      "X-XSS-Protection": "1; mode=block",

      "X-Frame-Options": "DENY",

      "X-SFAPI-AuthenticatedUserId": "ae978d2f-5b86-4580-8e8b-d34d955f4567",

      "X-SFAPI-UserIsImpersonated": "False",

      "X-SFAPI-AccountId": "a2832669-32f9-e5da-f214-4476ae02b471",

      "X-SFAPI-OAuthClientId": "VGNlvLJPOoLEPih8N9dZKFb4dbwwFKIn",

      "X-SFAPI-AppCode": "ThirdParty",

      "X-Robots-Tag": "noindex"

    },

    "HTTPResponseCode": "200: OK"

  }

 

Upload: Response

 

  {

    "Headers": {

      "Date": "Tue, 29 Mar 2022 13:59:46 GMT",

      "Connection": "keep-alive",

      "RequestId": "0HMGH7MOEIFDQ:00000029",

      "X-SFAPI-RequestId": "0HMGH7MOEIFDQ:00000029",

      "Citrix-TransactionId": "48b5d726-f6ca-4643-ab3d-6f1cb038201a"

    },

   "HTTPResponseCode": "404: NotFound"

  }

Link to comment

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...