[infinispan-issues] [JBoss JIRA] (ISPN-6794) Administration console - editing javascript task name doesn't work correctly

Vladimir Blagojevic (JIRA) issues at jboss.org
Wed Nov 9 07:46:00 EST 2016


    [ https://issues.jboss.org/browse/ISPN-6794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13319503#comment-13319503 ] 

Vladimir Blagojevic commented on ISPN-6794:
-------------------------------------------

As the first and safer solution, we should make the task name non-editable. We allow users to update mode or code (body) but not the name. Otherwise, we have to first remove the old script (that might be executing) and then add the new script. Thoughts [~rmacor]?

> Administration console - editing javascript task name doesn't work correctly
> ----------------------------------------------------------------------------
>
>                 Key: ISPN-6794
>                 URL: https://issues.jboss.org/browse/ISPN-6794
>             Project: Infinispan
>          Issue Type: Bug
>          Components: JMX, reporting and management
>            Reporter: Roman Macor
>            Assignee: Vladimir Blagojevic
>            Priority: Minor
>
> Editing javascript task name, doesn't change the name of the script. If we try to edit name the script can no longer be executed.
> Console error message when trying to run edited script:
> Error Some unexpected problem happened when launching the task: DGISPN0118: Failed to invoke operation: java.lang.NullPointerException 
> Steps to reproduce:
> upload javascript
>  -  click on cache container -> Configuration -> Tasks -> Create new script
>  -  fill in the mandatory parameter (e.g. Task name: newTask, Language: javascript, Execution mode: local, script body: cache.put('key','value'))
>  -  click create script task button
> edit script
>  - click on cache container -> Configuration -> Tasks -> Edit
>  - change the name of the script
>  - click update script
> Result:
> name remains the same and script can no longer be executed
> Note that other properties such as mode or script body can be edited in this way.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the infinispan-issues mailing list