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(frontend): RSSウィジェットでURLエンコードを二重に行っている問題を修正 #15272

Merged

Conversation

kakkokari-gtyih
Copy link
Contributor

@kakkokari-gtyih kakkokari-gtyih commented Jan 13, 2025

What

べつにバックエンドどうこうの問題ではなくURLSearchParamsを使っているのに二重でURLエンコーディングをしているのが問題だったとみられる

Why

Fix #15014
Close #15015

Additional info (optional)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

dakkar and others added 2 commits January 13, 2025 22:44
`url.searchParams.set()` already encodes the values passed!

(this is a partial revert of 0472d43,
the change in `statusbar-rss.vue` was correct)
@github-actions github-actions bot added the packages/frontend Client side specific issue/PR label Jan 13, 2025
Copy link

codecov bot commented Jan 13, 2025

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 20.06%. Comparing base (13439e0) to head (b810311).
Report is 3 commits behind head on develop.

Files with missing lines Patch % Lines
packages/frontend/src/widgets/WidgetRss.vue 0.00% 1 Missing ⚠️
packages/frontend/src/widgets/WidgetRssTicker.vue 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           develop   #15272       +/-   ##
============================================
- Coverage    40.31%   20.06%   -20.26%     
============================================
  Files         1564      729      -835     
  Lines       198083   104054    -94029     
  Branches      3837     1198     -2639     
============================================
- Hits         79863    20875    -58988     
+ Misses      117617    82627    -34990     
+ Partials       603      552       -51     

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

@kakkokari-gtyih kakkokari-gtyih added this to the v2025.1.0 milestone Jan 13, 2025
@kakkokari-gtyih kakkokari-gtyih changed the title fix(frontend): RSSウィジェットでURLエンコーディングを二重に行っている問題を修正 fix(frontend): RSSウィジェットでURLエンコードを二重に行っている問題を修正 Jan 13, 2025
@mi-gh-maintainer mi-gh-maintainer bot merged commit d86c772 into misskey-dev:develop Jan 14, 2025
23 checks passed
Copy link

Thank you 🙏

@kakkokari-gtyih kakkokari-gtyih deleted the fix-double-url-encoding branch January 14, 2025 00:30
Ruruke pushed a commit to Ruruke/misskey that referenced this pull request Jan 14, 2025
* don't double-url-encode rss urls

`url.searchParams.set()` already encodes the values passed!

(this is a partial revert of 0472d43,
the change in `statusbar-rss.vue` was correct)

* Update Changelog

---------

Co-authored-by: dakkar <dakkar@thenautilus.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages/frontend Client side specific issue/PR
Projects
Development

Successfully merging this pull request may close these issues.

api/fetch-rssにエンコードされたURLを送るとエラーが発生する
2 participants