FS#57885 - [owncloud-client] 2.4.1-1 breaks nemo integration

Attached to Project: Community Packages
Opened by Khar Tahk (khartahk) - Sunday, 18 March 2018, 11:35 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 21 March 2018, 11:42 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: upgrading owncloud-client to latest version 2.4.1-1 breaks right click integration with nemo to share public link etc...

Additional info:
* owncloud-client 2.4.1-1
* nemo 3.6.4
* nemo-python 3.6.0-2

Steps to reproduce:
1. install nemo 3.6.4 and nemo-python 3.6.0-2
2. install owncloud-client 2.4.1-1
3. set up owncloud connection
4. run `nemo -q` to completely kill nemo
5. open new nemo instance and right click on a file inside synced owncloud folder should give you an owncloud option - it doesn't
5.1 there should also be an icon for sync status on the folder / file itself - it's missing

Temporary Workaround:
install downgrade pacakage and use `downgrade owncloud-client` to downgrade to 2.4.0-1 and it works
This task depends upon

Closed by  Antonio Rojas (arojas)
Wednesday, 21 March 2018, 11:42 GMT
Reason for closing:  Fixed
Additional comments about closing:  owncloud-client 2.4.1-2
Comment by Antonio Rojas (arojas) - Sunday, 18 March 2018, 11:48 GMT
Works fine here. Please post any relevant console errors/logs.
Comment by Khar Tahk (khartahk) - Monday, 19 March 2018, 13:50 GMT
I've tried this on two separate installs and it happens on both. Can you tell me how to run nemo in debug mode so that I can see what if anything happens?

In journalctl -f I can see this:
mar 19 14:48:16 computer nemo.desktop[14378]: File "/usr/share/nemo-python/extensions/syncstate.py", line 7
mar 19 14:48:16 computer nemo.desktop[14378]: <!DOCTYPE html>
mar 19 14:48:16 computer nemo.desktop[14378]: ^
mar 19 14:48:16 computer nemo.desktop[14378]: SyntaxError: invalid syntax

Comment by Khar Tahk (khartahk) - Monday, 19 March 2018, 13:52 GMT
Also a little lower I saw this:

mar 19 14:48:16 computer nemo.desktop[14378]: Initializing ownCloud-client-nemo extension
mar 19 14:48:16 computer nemo.desktop[14378]: Socket File: /run/user/1000/ownCloud/socket
mar 19 14:48:16 computer nemo.desktop[14378]: Setting connected to True.
mar 19 14:48:16 computer nemo.desktop[14378]: Socket watch id: 15
mar 19 14:48:16 computer nemo.desktop[14378]: Server response: REGISTER_PATH:/home/primoz/ownCloud
mar 19 14:48:16 computer nemo.desktop[14378]: Server response: GET_STRINGS:BEGIN
mar 19 14:48:16 computer nemo.desktop[14378]: Traceback (most recent call last):
mar 19 14:48:16 computer nemo.desktop[14378]: File "/usr/lib/python2.7/site-packages/gi/overrides/GLib.py", line 754, in <lambda>
mar 19 14:48:16 computer nemo.desktop[14378]: func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data)
mar 19 14:48:16 computer nemo.desktop[14378]: File "/usr/share/nemo-python/extensions/syncstate-ownCloud.py", line 131, in _handle_notify
mar 19 14:48:16 computer nemo.desktop[14378]: self._handle_server_response(l.decode())
mar 19 14:48:16 computer nemo.desktop[14378]: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 29: ordinal not in range(128)
mar 19 14:48:16 computer nemo.desktop[14378]: RuntimeError: object at 0x7f25fccd3b90 of type KDEConnectExtension is not initialized
Comment by Eli Schwartz (eschwartz) - Monday, 19 March 2018, 14:04 GMT
The first error is weird as there is no such file packaged in our repositories. The second error implies locale issues.
Comment by Khar Tahk (khartahk) - Monday, 19 March 2018, 14:17 GMT
With the following packages it doesn't work:
community/nemo 3.6.5-1
community/nemo-python 3.6.0-2
community/owncloud-client 2.4.1-1

And I get the following error:
mar 19 15:13:58 computer nemo.desktop[17379]: Initializing ownCloud-client-nemo extension
mar 19 15:13:58 computer nemo.desktop[17379]: Socket File: /run/user/1000/ownCloud/socket
mar 19 15:13:58 computer nemo.desktop[17379]: Setting connected to True.
mar 19 15:13:58 computer nemo.desktop[17379]: Socket watch id: 15
mar 19 15:13:58 computer nemo.desktop[17379]: Server response: REGISTER_PATH:/home/primoz/ownCloud
mar 19 15:13:58 computer nemo.desktop[17379]: Server response: GET_STRINGS:BEGIN
mar 19 15:13:58 computer nemo.desktop[17379]: Traceback (most recent call last):
mar 19 15:13:58 computer nemo.desktop[17379]: File "/usr/lib/python2.7/site-packages/gi/overrides/GLib.py", line 754, in <lambda>
mar 19 15:13:58 computer nemo.desktop[17379]: func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data)
mar 19 15:13:58 computer nemo.desktop[17379]: File "/usr/share/nemo-python/extensions/syncstate-ownCloud.py", line 131, in _handle_notify
mar 19 15:13:58 computer nemo.desktop[17379]: self._handle_server_response(l.decode())
mar 19 15:13:58 computer nemo.desktop[17379]: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 29: ordinal not in range(128)
mar 19 15:13:58 computer nemo.desktop[17379]: RuntimeError: object at 0x7fc7dc171b90 of type KDEConnectExtension is not initialized

If I change to:
community/owncloud-client 2.4.0-1

I get the follwing journalctl -f output:

mar 19 15:16:15 computer nemo.desktop[17737]: Initializing ownCloud-client-nemo extension
mar 19 15:16:15 computer nemo.desktop[17737]: Socket File: /run/user/1000/ownCloud/socket
mar 19 15:16:15 computer nemo.desktop[17737]: Setting connected to True.
mar 19 15:16:15 computer nemo.desktop[17737]: Socket watch id: 15
mar 19 15:16:15 computer nemo.desktop[17737]: Server response: REGISTER_PATH:/home/primoz/ownCloud
mar 19 15:16:15 computer nemo.desktop[17737]: Server response: GET_STRINGS:BEGIN
mar 19 15:16:15 computer nemo.desktop[17737]: Server response: STRING:SHARE_MENU_TITLE:Omogoči souporabo ...
mar 19 15:16:15 computer nemo.desktop[17737]: Server response: STRING:CONTEXT_MENU_TITLE:ownCloud
mar 19 15:16:15 computer nemo.desktop[17737]: Server response: STRING:COPY_PRIVATE_LINK_MENU_TITLE:Copy private link to clipboard
mar 19 15:16:15 computer nemo.desktop[17737]: Server response: STRING:EMAIL_PRIVATE_LINK_MENU_TITLE:Send private link by email...
mar 19 15:16:15 computer nemo.desktop[17737]: Server response: STRING::
mar 19 15:16:15 computer nemo.desktop[17737]: Server response: GET_STRINGS:END
mar 19 15:16:15 computer nemo.desktop[17737]: Server response: STATUS:OK:/home/primoz/ownCloud

And it works.
Comment by Khar Tahk (khartahk) - Monday, 19 March 2018, 14:19 GMT
My locale is set to Slovenian language. And here is the output of: `locale -a`

C
en_US.utf8
POSIX
sl_SI.utf8
Comment by Khar Tahk (khartahk) - Monday, 19 March 2018, 14:24 GMT
It appears syncstate.py was a leftover of when I was trying out nextcloud-client. I've removed it now and the first error is now gone.
Comment by Antonio Rojas (arojas) - Monday, 19 March 2018, 17:14 GMT
OK, so the issue seems to be the č from "Omogoči souporabo". They broke python2 unicode strings when they added python3 support. Please report it upstream.
Comment by Eli Schwartz (eschwartz) - Monday, 19 March 2018, 17:25 GMT
Cinnamon 3.8 and related packages are moving to python3 anyways, cf. nemo-python https://github.com/linuxmint/nemo-extensions/pull/256 (currently unmerged).
Comment by Khar Tahk (khartahk) - Monday, 19 March 2018, 17:58 GMT
I'm not sure where should I report this so I've posted a comment here https://github.com/linuxmint/nemo-extensions/pull/256

@arojas can you please tell me where should I submit this issue?
Comment by Antonio Rojas (arojas) - Monday, 19 March 2018, 18:06 GMT
https://github.com/owncloud/client/issues

This is a bug in owncloud-client, not in nemo
Comment by Khar Tahk (khartahk) - Monday, 19 March 2018, 18:25 GMT
Thank you. I've reported it to the owncloud/client issue tracker: https://github.com/owncloud/client/issues/6393

Edit: owncloud-client 2.4.1-2 fixes this.

Loading...