Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zip file not dowloading correctly from REST source #274

Open
jimazikerlan opened this issue Jul 1, 2022 · 4 comments
Open

Zip file not dowloading correctly from REST source #274

jimazikerlan opened this issue Jul 1, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@jimazikerlan
Copy link

jimazikerlan commented Jul 1, 2022

Describe the bug
I am trying to consume a resource that points to a REST API. The retrieved resource is a zip file which I am able to dowload through a get request in the navigator. When I consume the ZIP file through the connector I receive a file without extension and with incorrect encoding so I cannot unzip it. I think that it could be because the connector is returning text instead of the context of the HTTP response.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Data Consumption
  2. Click on IDS Resources
  3. Try to get the resource
  4. The resource downloads without extension and with wrong format when trying to unzip it.

Expected behavior
Get a ZIP file

Desktop (please complete the following information):

  • OS: Docker in Windows
  • Browser Edge, Chrome
@tmberthold
Copy link
Contributor

Hello and thank you for the issue and sorry for the delay, I will forward this internally.

@tmberthold
Copy link
Contributor

Did an initial analysis, seems to be an issue in file-type vs mime-type.

I have opened an issue in the UI repo with further info:
#214

@jimazikerlan
Copy link
Author

Thank you very much!

@SebastianOpriel
Copy link
Member

file-type vs. mime-type doesn't fix the issue completely.
We reproduced the behavior with the UI and tried to reproduce it with the swagger ui. In latter case everything works fine. Thus, the issue might be related to the UI.
Will move the issue to the ui repo

@SebastianOpriel SebastianOpriel transferred this issue from International-Data-Spaces-Association/DataspaceConnector Sep 16, 2022
@SebastianOpriel SebastianOpriel added the bug Something isn't working label Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants