[Kde-pim] Review Request 110274: Correctly parse no rights in the imapaclattribute

Commit Hook null at kde.org
Mon May 6 14:59:16 BST 2013


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

(Updated May 6, 2013, 1:59 p.m.)


Status
------

This change has been marked as submitted.


Review request for KDEPIM and Kevin Ottens.


Description
-------

Currently if there are no rights set (id %) instead of (id value %), the code erroneously translates the id to rights, leading to broken behaviour if one explicitly sets no rights for a user (the user receives rights). This patch fixes this, improves the test to test attribute parsing, and also refactors the code a bit to avoid further code duplication.

The attribute code is copied in kdepim, so it might make sense to move the whole attribute to kdepimlibs. Otherwise I'll just apply the same patch in kdepim as well.


Diffs
-----

  resources/shared/imapaclattribute.cpp ebd8f47 
  resources/shared/tests/imapaclattributetest.cpp 4f490d0 

Diff: http://git.reviewboard.kde.org/r/110274/diff/


Testing
-------

Works for me.


Thanks,

Christian Mollekopf

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list