Merge lp:~brunonova/software-properties/lp1381050 into lp:software-properties
Status: | Merged |
---|---|
Merged at revision: | 921 |
Proposed branch: | lp:~brunonova/software-properties/lp1381050 |
Merge into: | lp:software-properties |
Diff against target: |
11 lines (+1/-0) 1 file modified
softwareproperties/SoftwareProperties.py (+1/-0) |
To merge this branch: | bzr merge lp:~brunonova/software-properties/lp1381050 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Vogt | 2014-10-20 | Approve on 2014-11-21 | |
Review via email:
|
Description of the change
This is a fix/workaround for Bug #1381050, and was tested in Ubuntu (only tested GTK version!).
When importing a key file that is located in a path that contains special characters (example: /home/USER/
It seems that the Software Properties DBus service (or the whole DBus) is NOT running in a UTF-8 locale, causing this issue.
This commit adds a line that forces the file path in the DBus service to be encoded in UTF-8.
If DBus is indeed running in a non-UTF-8 locale (maybe C?), this needs to be further investigated as it may be causing other encoding errors elsewhere!
Michael Vogt (mvo) wrote : | # |
Bruno Nova (brunonova) wrote : | # |
@Michael, are you sure the simplification works?
I applied those changes to the SoftwarePropert
I also started a Vivid virtual machine, grabbed the latest version from lp:software-properties, built and installed the debian package, and it also didn't work there.
Could you check that out? I may be doing something wrong, of course!
The other drag-drop bug I reported seems to be fixed, though.
Michael Vogt (mvo) wrote : | # |
@Bruno: Thanks for double checking. I just wrote a testcase to verify, so if its not working for you there is maybe more going on.
Bruno Nova (brunonova) wrote : | # |
I just checked the KDE version to see if it works.
When I add or remove a key, an error is displayed, but it seems that the key is actually added/removed.
software-
I investigated a bit.
These actions call the KeysModified() method. This method raises an exception in the KDE version... because it doesn't exist in this version! And it seems that the only thing that the method does is log a debug message.
I'll probably report a new bug for this issue.
Also, from the tests I made, the changes in this branch and in the other (drag&drop bug) should not break the KDE version.
Bruno Nova (brunonova) wrote : | # |
OK, reported Bug #1398180.
(Oh, and KeysModified() does more in the GTK version than logging a debug message).
Bruno Nova (brunonova) wrote : | # |
@Michael
I completely forgot about these bugs!
I cloned/branched lp:software-properties and tested it, and the fix seems to be working correctly.
My test: I killed the running software-
I also tested lp:ubuntu/software-properties successfully.
So, either you fixed the issue I mentioned, or I was wrong. :)
Also, bug #1383289 is fixed, so could you mark it as fixed (it wasn't marked automatically).
And we should backport these fixes to Utopic and Trusty.
Bruno Nova (brunonova) wrote : | # |
I marked the bug as "Fixed Released" myself.
Michael Vogt (mvo) wrote : | # |
On Thu, Jan 29, 2015 at 12:29:09PM -0000, Bruno Nova wrote:
> @Michael
> I completely forgot about these bugs!
>
> I cloned/branched lp:software-properties and tested it, and the fix seems to be working correctly.
> My test: I killed the running software-
> I also tested lp:ubuntu/software-properties successfully.
> So, either you fixed the issue I mentioned, or I was wrong. :)
Thanks a lot for confirming, I'm too lazy^Wbusy to check what fixed
it, but I'm very happy its fixed :)
> Also, bug #1383289 is fixed, so could you mark it as fixed (it wasn't marked automatically).
> And we should backport these fixes to Utopic and Trusty.
I created a trusty task, not sure about utopic. If you have time, it
would be awesome if you could create a diff for a SRU upload. I'm
happy to sponsor the upload but unfortunately I'm pretty busy right
now so not much time to prepare/test a diff myself :/
Thanks!
Michael
Bruno Nova (brunonova) wrote : | # |
> Thanks a lot for confirming, I'm too lazy^Wbusy to check what fixed
> it, but I'm very happy its fixed :)
> I created a trusty task, not sure about utopic. If you have time, it
> would be awesome if you could create a diff for a SRU upload. I'm
> happy to sponsor the upload but unfortunately I'm pretty busy right
> now so not much time to prepare/test a diff myself :/
Haha, I imagine how busy you guys must be, with all the stuff you're doing at the same time! :)
I'll make a branch for trusty-proposed for #1381050 and #1383289 when I have time.
Could you also create a Trusty task for bug #1381050? The two bugs mentioned in the previous paragraph are related (the second was found when investigating the first, and were fixed at the same time; additionally, #1381050 is the actual bug related to this merge request).
About Utopic, I think it's still affected by these two bugs.
Maybe it should also receive the backported fixes, but it's not my decision. :)
Thanks for this branch. I merged it initially and then added a test for the add_key() funtion in http:// bazaar. launchpad. net/~ubuntu- core-dev/ software- properties/ main/revision/ 922 and simplified it.