reportviewercore icon indicating copy to clipboard operation
reportviewercore copied to clipboard

External images are not rendered for the URL's versioned using OpenAPI specification/Swagger

Open bibing1988 opened this issue 1 year ago • 4 comments

The SSRS reports are not rendering the external images when the URL (an .net core API project) is OpenAPI specification versioned.

Request Reponse header. image

Image not rendered in report image

When I remove the versioning for the same endpoint, the images are rendered correctly.

image

image

bibing1988 avatar Oct 10 '24 10:10 bibing1988

Uploaded wrong image. (First image, the response header when the api versioning is done) image

bibing1988 avatar Oct 10 '24 10:10 bibing1988

Provide a minimal project based on ReportViewerCore.Sample in this repo which reproduces the behavior.

lkosson avatar Oct 11 '24 05:10 lkosson

Projects.zip

Sample project with the error is attached.

Sample output from the example. image

bibing1988 avatar Oct 23 '24 16:10 bibing1988

I see. ReportViewer indeed validates received Content-Type of images and reject anything other than image/bmp, image/jpeg, image/gif, image/png, image/x-png. This behavior is the same as in original ReportViewer/SSRS.

lkosson avatar Oct 24 '24 05:10 lkosson