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
ISPN-11042 TaskResource should allow filtering admin tasks #7648
ISPN-11042 TaskResource should allow filtering admin tasks #7648
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if there is no other place where the validation of the name should be added to avoid users creating '@@' tasks
@@ -64,10 +64,15 @@ public Invocations getInvocations() { | |||
} | |||
|
|||
private CompletionStage<RestResponse> createScriptTask(RestRequest request) { | |||
NettyRestResponse.Builder builder = new NettyRestResponse.Builder(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
appart from REST, there is no other place to create a task where the name validation should be added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know for sure, it appears the only way is to get hold of a ScriptManager and register a task
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will only be possible for embedded though. Hot Rod does not allow the creation of tasks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I will remove this validation stuff. This should be part of another JIRA, what we are doing here is to filter out internal tasks...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, done
df4a4b6
to
6db9fd9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if is good for Jenkins
related test failing in Cli |
Ok, looks like CLI wants to see the internal tasks, but the console doesn't...What should it be then? 😄 |
I think all the internal tasks perform actions that are available via REST, so they are kind of redundant, will fix that test |
6db9fd9
to
c78dad2
Compare
Ok @karesti, I changed my mind 😄 |
Failures in thread leaks on the SoftFileIndex can't be related to this, so CI is fine |
Merged, thanks |
https://issues.redhat.com/browse/ISPN-11042