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 inaccurate information about permitting the FORWARD dispatcher in Kotlin #13729

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

username1103
Copy link
Contributor

closes gh-13728

This PR includes both of the methods suggested in the issue. Therefore, once one of them is adopted, the commits related to the other changes will be removed. Please provide your opinion on which method would be preferable.

@pivotal-cla
Copy link

@username1103 Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-cla
Copy link

@username1103 Thank you for signing the Contributor License Agreement!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 21, 2023
Copy link
Contributor

@marcusdacoregio marcusdacoregio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution, I've left my feedback inline.

Can you also please rebase your branch with 6.1.x and change the target branch for this PR to 6.1.x as well?

@@ -31,7 +31,7 @@ If you have a question, check Stack Overflow using
https://stackoverflow.com/questions/tagged/spring-security+or+spring-ldap+or+spring-authorization-server+or+spring-session?tab=Newest[this list of tags].
Find an existing discussion, or start a new one if necessary.

If you believe there is an issue, search through https://github.com/spring-projects/spring-security/issues[existing issues] trying a few different ways to find discussions, past or current, that are related to the issue.
If you believe there is an issue, search through https://github.com/spring-projects/spring-security/issues[existing issues] trying a few different ways to find discussions, past or current, that are related to the issue.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep the PR focused on focusing on that single part of the documentation. If needed you can open another PR that fix the typos.

@@ -79,7 +79,7 @@ See https://github.com/spring-projects/spring-security/tree/main#building-from-s

The wiki pages https://github.com/spring-projects/spring-framework/wiki/Code-Style[Code Style] and https://github.com/spring-projects/spring-framework/wiki/IntelliJ-IDEA-Editor-Settings[IntelliJ IDEA Editor Settings] define the source file coding standards we use along with some IDEA editor settings we customize.

To format the code as well as check the style, run `./gradle format check`.
To format the code as well as check the style, run `./gradlew format check`.
Copy link
Contributor

@marcusdacoregio marcusdacoregio Aug 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep the PR focused on fixing that single part of the documentation. If needed you can open another PR that fixes the typos.

* @param access the [AuthorizationManager] to secure the matching request
* (i.e. created via hasAuthority("ROLE_USER"))
*/
fun authorize(dispatcherType: DispatcherType,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not add this new method since there is the option to do authorize(DispatcherTypeRequestMatcher(DispatcherType.FORWARD), permitAll) and the PR should only fix the documentation issue

@marcusdacoregio marcusdacoregio self-assigned this Aug 29, 2023
@marcusdacoregio marcusdacoregio added in: docs An issue in Documentation or samples type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 29, 2023
@marcusdacoregio marcusdacoregio added this to the 6.1.4 milestone Aug 29, 2023
@username1103 username1103 changed the base branch from main to 6.1.x August 30, 2023 12:58
@username1103
Copy link
Contributor Author

username1103 commented Aug 30, 2023

@marcusdacoregio In light of your feedback, I have removed the typo corrections and new method in this pr. I have kept only the commit that pertains to modifying the document

I appreciate your input. Thank you.

@marcusdacoregio
Copy link
Contributor

Thanks, @username1103, this is now merged into 6.1.x and main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: docs An issue in Documentation or samples type: bug A general bug
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Documentation contains inaccurate information about permitting the FORWARD dispatcher in Kotlin
4 participants