[rfc][icedtea-web][policyeditor] Disable "paste" until "copy" is performed

Andrew Azores aazores at redhat.com
Mon Jun 30 14:07:45 UTC 2014


Hi,

The "Copy" in question copies the permissions for a codebase in the PolicyEditor. Then when you go to "Paste", it asks you for a new codebase URL, and creates a new entry in the editor with that URL but all of the permissions duplicated from the codebase that you copied. So there isn't really any way to "copy it from somewhere else" as it doesn't actually use the system clipboard, just a "clipboard" within PolicyEditor.

Thanks,

Andrew A

----- Original Message -----
> On 06/27/2014 05:27 PM, Andrew Azores wrote:
> > Hi,
> >
> > This patch adds a check in the "paste" button action so that the dialog
> > prompting the user for the new URL to paste with does not appear if a
> > codebase has not been previously copied. This would also guard against the
> > dialog appearing when a keyboard shortcut is used to paste. Additionally,
> > the "paste" button in the Edit menu is now disabled until "copy" has been
> > pressed for the first time.
> >
> > Thanks,
> >
> This seems a bit wrong to me.
> 
> What if user copied it from somewhere else?
> 
> I was not checking the original "add copy and paste" functinality but.
> 
> What is codebase?
> 
> If it is plain string, then you definitely should not do this.
>   - Just check if something is in clipboard, and if it is string, enable
>   paste.
> 
> If it si not string, have it its own flavour, or syntax which cna be
> recognized?
>   - If so, and it was recognized as codebase, please, enable paste it.
> 
> Otherwise disable paste, and if ctrl+v is forced,, then show error.
> 
> 
> What do you think?
> 
>    J.
> 


More information about the distro-pkg-dev mailing list