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

Small refactoring #32

Merged

Conversation

Wadeck
Copy link
Contributor

@Wadeck Wadeck commented Nov 7, 2017

Main issue was to retrieve the User by username potentially.

  • bump plugin parent pom
  • also add escape-by-default into Jelly files
  • add final to a static variable

@reviewbybees @jtnord (especially for the getById without creation)

- bump plugin parent pom
- also add escape-by-default into Jelly files
- add final to a static variable
@ghost
Copy link

ghost commented Nov 7, 2017

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

Copy link
Member

@jtnord jtnord left a comment

Choose a reason for hiding this comment

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

LGTM

@daniel-beck
Copy link
Member

Isn't it a feature that users can log in to Jenkins with their display name?

This seems to disable that.

@Wadeck Wadeck changed the title User.getById refactor Small refactoring Nov 8, 2017
@Wadeck
Copy link
Contributor Author

Wadeck commented Nov 8, 2017

As mentioned @daniel-beck we could break a feature that is potentially used : the LDAP search using the FullName (against cn ?).

The other changes are still interesting, but nothing really important.

@Wadeck
Copy link
Contributor Author

Wadeck commented Nov 14, 2017

@reviewbybees done

Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

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

System Property needs to be reverted

@@ -117,7 +117,7 @@
* See http://msdn.microsoft.com/en-us/library/aa746475(VS.85).aspx for the syntax by example.
* WANTED: The specification of the syntax.
*/
public static String GROUP_SEARCH = System.getProperty(LDAPSecurityRealm.class.getName()+".groupSearch",
public static final String GROUP_SEARCH = System.getProperty(LDAPSecurityRealm.class.getName()+".groupSearch",
Copy link
Member

Choose a reason for hiding this comment

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

After this change it won't be possible to change them dynamically in System Groovy Scripts

@oleg-nenashev
Copy link
Member

FindBugs will likely grumble, we will fix it in the master branch

@oleg-nenashev oleg-nenashev merged commit 44ea0c1 into jenkinsci:master Jan 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants