Re: [PATCH virt-viewer v3 2/2] ovirt: Allow to cancel authentication without showing error dialog

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> So, did you investigate whether it would be possible to modify
> libgovirt / librest to return a 'CANCELLED' error status (or similar)
> from ovirt_proxy_fetch_api() so that we don't need to track this
> ourselves with an extra struct? That seems like a cleaner long-term
> solution.
> 
> But this patch is fine for the current behavior. ACK.
> 
> Jonathon
> 

I should have mentioned in the patch:

According to [1] the "authenticate" signal returns FALSE when credentials are not set, returns TRUE when they are set, I don't see a way how to "forward" info why they weren't set.
However the "CANCELLED" error exists in librest [2] so maybe implementing new signal / api in librest and handling REST_PROXY_ERROR_CANCELLED in libgovirt is possible solution

[1] https://developer.gnome.org/rest/0.7/RestProxy.html#RestProxy-authenticate
[2] https://developer.gnome.org/rest/0.7/RestProxy.html#REST-PROXY-ERROR:CAPS

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux