[
https://issues.apache.org/jira/browse/NIFI-14085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17924301#comment-17924301
]
Matt Gilman commented on NIFI-14085:
------------------------------------
Thanks for filing this [~mosermw]. Starting in 2.0 the NiFi UI now uses the
system clipboard for copying and pasting. In doing so we had to remove the
ability to paste in the canvas context menu. The system clipboard is not
accessible programmatically outside of a paste event. This is a
security/permissions concern and access to something on the clipboard is only
provided through a paste event. So paste is supported with a keystroke and
would technically work if you right clicked outside the canvas (like in the
header) which will open the default browser context menu. Selecting paste there
would issue the paste event.
It's possible we could have prompted the user for access to the clipboard to
retain the existing behavior but thought that wasn't a great option to ask for
programmatic access to the clipboard.
Using the system clipboard does have some advantages. Now you can copy and
paste between different browser tabs across different NiFi instances. We also
added support for pasting a Flow Definition directly onto the canvas. Copying
to a system clipboard also makes it super simple when copying a components
configuration to paste it elsewhere.
> UI - Paste option missing
> -------------------------
>
> Key: NIFI-14085
> URL: https://issues.apache.org/jira/browse/NIFI-14085
> Project: Apache NiFi
> Issue Type: Sub-task
> Components: Core UI
> Reporter: Michael W Moser
> Priority: Major
>
> On the main branch after recent commits to support new copy/paste features,
> the Paste option is no longer visible from the right-click context menu.
> Steps to Reproduce: Select any processor and either right-click-Copy or
> press CTRL-C. Deselect all components. Right-click an empty part of the
> graph and the "Paste ^ V" option is not visible. A CTRL-V key press does
> work, though.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)