Giter VIP home page Giter VIP logo

Comments (3)

jovinson-ms avatar jovinson-ms commented on May 22, 2024

Hi @mhassaninmsft, can you clarify what tool you're using to send the GET request? If you enabled the Swagger UI, that's not currently supported due to accessibility issues.

I did just check your scenario against the Postman collection, and I was able to retrieve a study as a multipart response successfully. Looking at your request, there are two things that stand out:

  • When specifying the content type in either the Accept or Content-Type header, you need to include surrounding quotes, like Accept:multipart/related; type="application/dicom". According to the spec, the media type is surrounded by quotes when a multipart response is requested.
  • You don't include a Content-Type header in a WADO-RS request since there's no body.

Please let me know if this works for you!

from dicom-server.

jovinson-ms avatar jovinson-ms commented on May 22, 2024

And the spec does say that the media type param value can be quoted or unquoted - that's a bug on us.

edit: this is generally true, but not in this case, see below

from dicom-server.

jovinson-ms avatar jovinson-ms commented on May 22, 2024

Correction of above - our current handling of quotes is correct according to the Dicom standard:

  • according to 8.7, in general, media type parameter values can be quoted or unquoted (i.e. text/html; q=0.3 and text/html; q="0.3" are both valid)
  • according to 8.7.1, in the special case where the media type is multipart/related there must be a type parameter present, and it must be quoted (i.e. multipart/related; type=application/dicom is not valid)

Closing this issue - thanks for raising it!

from dicom-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.