Review Request: internal: fix connecting to WiFi when "In file (unencrypted)" secrets storage is used

Andrey Borzenkov arvidjaar at gmail.com
Mon Mar 14 16:26:16 CET 2011



> On March 14, 2011, 2:55 p.m., Andrey Borzenkov wrote:
> > libs/internals/connection.cpp, lines 277-278
> > <http://git.reviewboard.kde.org/r/100855/diff/1/?file=11363#file11363line277>
> >
> >     Should not it rather apply this logic in hasSecrets() of Security8021xSetting? It really looks like layering violation in this case.
> 
> Jirka Klimes wrote:
>     Hmm, probably yes.
>     I just saw that hasSecrets() for each connection returns true or false, so i thought that hasSecrets() actually means something like "could contain secrets".

Hmm ... all usage cases are really "do we need to check for missing secrets?" which fits in this case well.


- Andrey


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/100855/#review1935
-----------------------------------------------------------


On March 14, 2011, 3:14 p.m., Jirka Klimes wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/100855/
> -----------------------------------------------------------
> 
> (Updated March 14, 2011, 3:14 p.m.)
> 
> 
> Review request for Network Management.
> 
> 
> Summary
> -------
> 
> When 'Connection Secrets' are configured to be stored as "In file (unencrypted)",
> connecting to WiFi networks is not successful and stalls at "Waiting for authorization".
> 
> That is caused by not replying to GetSecrets() D-Bus call from NM. The problem is that
> the WiFi connection contains Security8021xSetting even if it's not used (though it's
> maked as not enabled). So we need to honour the enabled state of Security8021xSetting
> in Connection::secretsAvailable().
> 
> The bug is filed in RH bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=682972
> 
> 
> This addresses bug 247044.
>     http://bugs.kde.org/show_bug.cgi?id=247044
> 
> 
> Diffs
> -----
> 
>   libs/internals/connection.cpp 2914b39 
> 
> Diff: http://git.reviewboard.kde.org/r/100855/diff
> 
> 
> Testing
> -------
> 
> I've successfully tested the patch on upstream mater branch.
> 
> 
> Thanks,
> 
> Jirka
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-networkmanager/attachments/20110314/8474119c/attachment.htm 


More information about the kde-networkmanager mailing list