Skip to content

[SecurityBundle] Remove unused memory users’ name attribute from the XSD #57520

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

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

MatTheCat
Copy link
Contributor

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues N/A
License MIT

The related config has been deprecated in #40403 and removed in #41613.

@nicolas-grekas
Copy link
Member

Thank you @MatTheCat.

@nicolas-grekas nicolas-grekas merged commit 28ad602 into symfony:6.4 Jun 28, 2024
8 of 10 checks passed
@MatTheCat MatTheCat deleted the xsd_in-memory_name branch June 28, 2024 07:42
@xabbuh
Copy link
Member

xabbuh commented Jun 28, 2024

Shouldn’t we do this change on 7.2 only? This change now risks that someone receives errors on the next patch release if their XML config still makes use of the now removed attribute.

nicolas-grekas added a commit that referenced this pull request Jun 28, 2024
…` attribute from the XSD (MatTheCat)"

This reverts commit 28ad602, reversing
changes made to f8c5cf0.
@nicolas-grekas
Copy link
Member

@xabbuh right, see cdb8354

nicolas-grekas added a commit that referenced this pull request Jun 28, 2024
* 6.4:
  Revert "bug #57520 [SecurityBundle] Remove unused memory users’ `name` attribute from the XSD (MatTheCat)"
  [HttpKernel] Enable optional cache-warmers when cache-dir != build-dir
  [Filesystem] Fix Filesystem::remove() on Windows
  [DoctrineBridge] Fix compat with DI >= 6.4
  [String] Fix *String::snake methods
nicolas-grekas added a commit that referenced this pull request Jun 28, 2024
* 7.0:
  Revert "bug #57520 [SecurityBundle] Remove unused memory users’ `name` attribute from the XSD (MatTheCat)"
  [HttpKernel] Enable optional cache-warmers when cache-dir != build-dir
  [Filesystem] Fix Filesystem::remove() on Windows
  [DoctrineBridge] Fix compat with DI >= 6.4
  [String] Fix *String::snake methods
@MatTheCat
Copy link
Contributor Author

@xabbuh @nicolas-grekas using name would have made the config crash after #41613 so no one could be using it.

nicolas-grekas added a commit that referenced this pull request Jun 28, 2024
…ibute from the XSD (MatTheCat)

This PR was merged into the 6.4 branch.

Discussion
----------

[SecurityBundle] Remove unused memory users’ `name` attribute from the XSD

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | Fix cdb8354
| License       | MIT

#57520 has been reverted because

> [The] change […] risks that someone receives errors on the next patch release if their XML config still makes use of the now removed attribute.

But nobody could use it since v6.0: as #41613 removed the BC layer, the config would crash.

Keeping `name` in the XSD for 6.4, 7.0 and 7.1 branches means people using these versions would have their IDE suggesting an attribute which would make their app crash.

Commits
-------

ed5c26c [SecurityBundle] Remove unused memory users’ `name` attribute from the XSD
This was referenced Jun 28, 2024
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.

4 participants