Skip to content

Authorize spec history instead of current specs for supervisor history API#5501

Merged
gianm merged 1 commit intoapache:masterfrom
jon-wei:sup_hist_fix
Mar 16, 2018
Merged

Authorize spec history instead of current specs for supervisor history API#5501
gianm merged 1 commit intoapache:masterfrom
jon-wei:sup_hist_fix

Conversation

@jon-wei
Copy link
Copy Markdown
Contributor

@jon-wei jon-wei commented Mar 16, 2018

The auth checks on the /history and /{id}/history endpoints in the SupervisorResource are incorrect, they filter based on the current specs of supervisors, instead of filtering the lists of spec history.

This PR fixes the checks so that they filter the spec history properly.

@gianm
Copy link
Copy Markdown
Contributor

gianm commented Mar 16, 2018

The CI failure was #5502, which doesn't seem related to this patch. I restarted the tests.

Copy link
Copy Markdown
Contributor

@gianm gianm left a comment

Choose a reason for hiding this comment

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

LGTM

}

@Override
public int hashCode()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I usually use the "java.util.Objects (Java 7+)" template for equals/hashCode in IntelliJ; it is more concise. No need to change this but just an FYI for the future.

@gianm gianm merged commit 30e6bde into apache:master Mar 16, 2018
gianm pushed a commit to implydata/druid-public that referenced this pull request Mar 16, 2018
gianm pushed a commit to implydata/druid-public that referenced this pull request Mar 16, 2018
@gianm gianm added this to the 0.12.1 milestone Apr 9, 2018
gianm pushed a commit to gianm/druid that referenced this pull request Apr 9, 2018
fjy pushed a commit that referenced this pull request Apr 10, 2018
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.

2 participants