[ 
https://issues.apache.org/jira/browse/NIFI-3465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15886222#comment-15886222
 ] 

Scott Aslan commented on NIFI-3465:
-----------------------------------

This is indeed an issue caused by the jQuery upgrade. The upgrade guide states: 
When using the .offset() method, the first item in the jQuery collection must 
be a DOM element that has a DOM getBoundingClientRect() method. (All browsers 
supported by jQuery 3.0 have this API.) Any other input may result in jQuery 
throwing an error. Also note that the element must be visible and currently in 
a document (i.e., not disconnected).

For the qtip2 tooltip in question we are setting the viewport: $(window) which 
does not meet the criteria outlined in the jQuery upgrade guide. I believe we 
can simply change the viewport for this tooltip to be $('#shell-container')...

One other note: while the tooltips do seem to be functioning properly (aside 
from the issue stated here) it should be noted that the qtip2 docs state that: 
"qTip2 requires jQuery 1.6 and up, and is also compatible with the new jQuery 
2.x releases." and do not mention support for jQuery 3.x... 

> Controller Services Validation Tooltips Not Working
> ---------------------------------------------------
>
>                 Key: NIFI-3465
>                 URL: https://issues.apache.org/jira/browse/NIFI-3465
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core UI
>    Affects Versions: 1.2.0
>            Reporter: James Wing
>            Assignee: Scott Aslan
>         Attachments: nifi-controller-service-validation-tooltip-small.png
>
>
> The tooltips for Controller Services validation errors are not working in 
> recent master builds.  Repro steps:
> # Open the Process Group Configuration dialog
> # Select the Controller Services tab
> # Add a new Controller Service
> # Select AWSCredentialsProviderControllerService and click Add
> # Make it invalid, for example:
> #* Edit the AWSCredentialsProviderControllerService
> #* In Properties, type something into the Access Key field - "foo"
> #* Click Apply to save and close
> #* Service should now be invalid
> # Hover over the validation warning icon in the left column
> I believe the problem was introduced with the jQuery upgrade in 
> [6170f64|https://github.com/apache/nifi/commit/6170f6442ed45dd084617cb4f39085640f49ebc5],
>  but I'm not good enough with the UI to tell how it's broken.  
> There is a workaround - validation errors are coming from the server, and you 
> can see them in the network section of the browser dev tools.
> !nifi-controller-service-validation-tooltip-small.png|thumbnail!



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to