Rename RedirectLeadingSlashesSubscriber

Created on 22 August 2022, almost 3 years ago
Updated 17 February 2023, over 2 years ago

Problem/Motivation

This is a followup to #2852361: Ignore repeated slashes in the incoming path like Drupal <= 7 . In that issue RedirectLeadingSlashesSubscriber was modified to handle multiple successive slashes in the URL and thus the name no longer reflects what the method actually does.

See #2852361-26: Ignore repeated slashes in the incoming path like Drupal <= 7 .

Steps to reproduce

Proposed resolution

Rename RedirectLeadingSlashesSubscriber to RedirectSuccessiveSlashesSubscriber

Remaining tasks

Patch
Review
Commit

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Needs work

Version

10.0

Component
Routing 

Last updated 3 days ago

Created by

🇳🇿New Zealand quietone

Live updates comments and jobs are added and updated live.
  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States smustgrave

    This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.

    This will need a change record as the service may in use by others right?

    Shouldn't this be deprecated first before replacing?

  • 🇬🇧United Kingdom longwave UK

    I could find no uses of the class or service in contrib, and as per the link in #8 event subscribers are not considered API - extending them usually doesn't make much sense, so I don't think we need to spend the effort deprecating this. We can however write a short change notice just in case, that is a simple task that keeps a record of what has happened here.

  • Status changed to Needs review over 1 year ago
  • 🇺🇦Ukraine _shy Ukraine, Lutsk 🇺🇦

    Added change notice, please, take a look.

  • Status changed to RTBC over 1 year ago
  • 🇬🇧United Kingdom longwave UK

    Thanks!

  • Open in Jenkins → Open on Drupal.org →
    Environment: PHP 8.1 & MySQL 5.7
    last update over 1 year ago
    28,526 pass
  • Open in Jenkins → Open on Drupal.org →
    Environment: PHP 8.1 & MySQL 5.7
    last update over 1 year ago
    28,526 pass
  • Open in Jenkins → Open on Drupal.org →
    Environment: PHP 8.1 & MySQL 5.7
    9:58
    54:37
    Running
  • Open in Jenkins → Open on Drupal.org →
    Environment: PHP 8.1 & MySQL 5.7
    last update over 1 year ago
    28,526 pass
  • Status changed to Needs work over 1 year ago
  • The Needs Review Queue Bot tested this issue.

    While you are making the above changes, we recommend that you convert this patch to a merge request . Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)

  • @_shy opened merge request.
  • Status changed to Needs review over 1 year ago
  • 🇺🇦Ukraine _shy Ukraine, Lutsk 🇺🇦

    Created MR and all tests are green.
    Also, changed the target branch.

  • 🇺🇦Ukraine _shy Ukraine, Lutsk 🇺🇦
  • Status changed to RTBC over 1 year ago
  • 🇺🇸United States smustgrave

    Reroll to MR seems fine.

  • Status changed to Needs work over 1 year ago
  • 🇺🇸United States xjm

    A service machine name is public API; therefore, a CR alone is not sufficient for that change. We should deprecate the old service for removal in D11. We should also provide best-effort BC and deprecation for the class name, which is internal API. Thanks!

  • Status changed to Postponed over 1 year ago
  • 🇺🇸United States xjm

    My kneejerk about the core service definition machine names might be wrong here; discussing with the other release managers. Hold on changes for now.

  • 🇳🇿New Zealand quietone

    Changing to the DX special tag defined on Issue tags -- special tags .

  • Status changed to Needs work 13 days ago
  • 🇬🇧United Kingdom catch

    xjm credited catch .

  • 🇺🇸United States xjm

    I am so sorry that this fell off my radar! I was waiting on feedback from another release manager but then lost track of the issue somehow. Basically everything I said was wrong; the CR is plenty for this because it's an event subscriber, not a normal service. Therefore, even changing the machine name of the service is fine. Per @catch:

    Yeah the very worst that could happen is:
    Someone is calling it directly (why???)
    Someone is decorating it (why???)
    It'd be like implementing hook_module_implements_alter() to replace a hook with one that could have just been implemented as an extra hook. Or calling template_preprocess_node() directly. It's not impossible but it's not our fault.

    Obviously, the merge request will need to be updated after all this time, but once it's updated and reviewed the RTBC should be restored. Apologies again!

  • 🇺🇸United States xjm

    Saving credits.

Production build 0.71.5 2024