Skip to content

fix: enhance app icon download logic to include file existence check#11796

Merged
zhengkunwang223 merged 2 commits into
1Panel-dev:dev-v2from
HynoR:fix/appd
Feb 5, 2026
Merged

fix: enhance app icon download logic to include file existence check#11796
zhengkunwang223 merged 2 commits into
1Panel-dev:dev-v2from
HynoR:fix/appd

Conversation

@HynoR
Copy link
Copy Markdown
Contributor

@HynoR HynoR commented Feb 5, 2026

- Updated the downloadAppIcon function to parse the icon field for the file name and ETag.
- Added a condition to check if the icon file exists before setting the If-None-Match header for the request.
@f2c-ci-robot
Copy link
Copy Markdown

f2c-ci-robot Bot commented Feb 5, 2026

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@f2c-ci-robot
Copy link
Copy Markdown

f2c-ci-robot Bot commented Feb 5, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign zhengkunwang223 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

- Updated GetAppIcon method to include filename in the response.
- Added a condition to ensure the ETag header is set only if both ETag and filename are present, enhancing the integrity of the caching mechanism.
@zhengkunwang223 zhengkunwang223 merged commit a13c58e into 1Panel-dev:dev-v2 Feb 5, 2026
0 of 3 checks passed
justadri pushed a commit to justadri/1Panel that referenced this pull request Feb 13, 2026
…Panel-dev#11796)

* fix: enhance app icon download logic to include file existence check

- Updated the downloadAppIcon function to parse the icon field for the file name and ETag.
- Added a condition to check if the icon file exists before setting the If-None-Match header for the request.

* fix: improve app icon retrieval logic by adding filename check

- Updated GetAppIcon method to include filename in the response.
- Added a condition to ensure the ETag header is set only if both ETag and filename are present, enhancing the integrity of the caching mechanism.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants