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

Fix Incorrect file name from Download component DownloadServlet.java #2903

Merged
merged 3 commits into from
Feb 21, 2025

Conversation

zivkos
Copy link
Contributor

@zivkos zivkos commented Dec 15, 2024

Incorrect file name from Download component for "inline" asset #2751

Q                       A
Fixed Issues? #2751
Patch: Bug Fix?
Minor: New Feature?
Major: Breaking Change?
Tests Added + Pass? Yes
Documentation Provided Yes (code comments and or markdown)
Any Dependency Changes?
License Apache License, Version 2.0

in com.adobe.cq.wcm.core.components.internal.servlets.DownloadServlet, have Change the following line:
response.setHeader(CONTENT_DISPOSITION_HEADER, "inline");
to
response.setHeader(CONTENT_DISPOSITION_HEADER, "inline; filename="" + filename + """);

Incorrect file name from Download component for "inline" asset adobe#2751
@zivkos zivkos marked this pull request as draft December 15, 2024 20:23
@zivkos zivkos marked this pull request as ready for review December 15, 2024 20:24
@zivkos zivkos closed this Dec 15, 2024
@zivkos zivkos reopened this Dec 15, 2024
@zivkos
Copy link
Contributor Author

zivkos commented Dec 19, 2024

Hi @vladbailescu, hope you are well. Is it possible for this PR to be review ? Many thanks
Zivko

@zivkos
Copy link
Contributor Author

zivkos commented Feb 9, 2025

Can someone review PR please ?
@vladbailescu

@vladbailescu
Copy link
Member

@zivkos , this change is causing a unit test to break:

DownloadServletTest.testInlineAssetDownload:88 expected: <inline> but was: <inline; filename="Download_Test_PDF.pdf">

@zivkos
Copy link
Contributor Author

zivkos commented Feb 20, 2025

@zivkos , this change is causing a unit test to break:

DownloadServletTest.testInlineAssetDownload:88 expected: <inline> but was: <inline; filename="Download_Test_PDF.pdf">

Ok i will fix test..

@zivkos
Copy link
Contributor Author

zivkos commented Feb 21, 2025

@vladbailescu, test have been fix, can you please take a look ?

Copy link

codecov bot commented Feb 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.14%. Comparing base (d8834a1) to head (874fad7).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #2903   +/-   ##
=========================================
  Coverage     87.14%   87.14%           
  Complexity     2697     2697           
=========================================
  Files           235      235           
  Lines          7202     7202           
  Branches       1104     1104           
=========================================
  Hits           6276     6276           
  Misses          366      366           
  Partials        560      560           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vladbailescu vladbailescu merged commit 64acead into adobe:main Feb 21, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants