If you try to download presets from GHNS, the dialog responds with an API error. I'm not sure what's going on, whether it's a KDE issue (I'm using 4.6.0 now) or something else, but it needs investigating and fixing before we can release.
Srikanth, Can you please look into this?
I can confirm this bug. I'm using Kde 4.7.3 and Krita 2.4 beta3 on Archlinux 64 bit. When i press the install button on the GNHS dialog, the next message is shown at the bottom of the dialog: "Unknown Open Collaboration Service API Error. (103)"
Confirmed here as well. Same error message. Current trunk, KDE 4.7.3, Chakra Linux
I observed that this error is not coming to all the resources updated by different users. Only some users updated resources are creating this error while downloading. I sent mail to GHNS developers and open desktop server people. I will resolve asap . .:D
Thanks!
103 is "please specify a valid login", it's not a KDE issues as that already worked with the same KDE version. I assume it's a server problem.
Created attachment 67124 [details] full log of trying to use ghns
no, 103 is item not found OCS Request: QUrl( "https://boudewijnrempt:15518468@api.opendesktop.org/v1/content/download/147799/1" ) XML Returned: "<?xml version="1.0"?> <ocs> <meta> <status>failed</status> <statuscode>103</statuscode> <message>content item not found</message> </meta> </ocs> "
uploading a pattern gives: " XML Returned: "<?xml version="1.0"?> <ocs> <meta> <status>ok</status> <statuscode>100</statuscode> <message></message> </meta> </ocs> " PostJob::parse "<?xml version="1.0"?> <ocs> <meta> <status>ok</status> <statuscode>100</statuscode> <message></message> </meta> </ocs> " XML Returned: "<?xml version="1.0"?> <ocs> <meta> <status>failed</status> <statuscode>102</statuscode> <message>localfile not found</message> </meta> </ocs> " PostJob::parse "<?xml version="1.0"?> <ocs> <meta> <status>failed</status> <statuscode>102</statuscode> <message>localfile not found</message> </meta> </ocs> " And no download link -- I'm beginning to think that we actually fail to upload the actual files.
This is the full log of uploading a preset with three preview images. On the site, there was no preset to download and only two preview images were shown. " Parameter map: QMap(("changelog", "local file")("description", "bug test")("downloadbuy1", "0")("downloadbuyprice1", "1")("downloadbuyreason1", "")("licensetype", "3")("name", "bug_test")("type", "626")("version", "1")) OCS Request: QUrl( "https://boudewijnrempt:15518468@api.opendesktop.org/v1/content/add" ) XML Returned: "<?xml version="1.0"?> <ocs> <meta> <status>ok</status> <statuscode>100</statuscode> <message></message> </meta> <data> <content> <id>147806</id> </content> </data> </ocs> " OCS Request: QUrl( "https://boudewijnrempt:15518468@api.opendesktop.org/v1/content/data/147806" ) XML Returned: "<?xml version="1.0"?> <ocs> <meta> <status>ok</status> <statuscode>100</statuscode> <message></message> </meta> <data> <content details="full"> <id>147806</id> <name>bug_test</name> <version>1</version> <typeid>626</typeid> <typename>Krita Preset</typename> <language></language> <personid>boudewijnrempt</personid> <profilepage>http://opendesktop.org/usermanager/search.php?username=boudewijnrempt</profilepage> <created>2011-12-26T15:55:27+01:00</created> <changed>2011-12-26T15:55:27+01:00</changed> <downloads>0</downloads> <score>50</score> <description>bug test</description> <summary></summary> <feedbackurl></feedbackurl> <changelog>local file</changelog> <homepage></homepage> <homepagetype></homepagetype> <homepage2></homepage2> <homepagetype2></homepagetype2> <homepage3></homepage3> <homepagetype3></homepagetype3> <homepage4></homepage4> <homepagetype4></homepagetype4> <homepage5></homepage5> <homepagetype5></homepagetype5> <homepage6></homepage6> <homepagetype6></homepagetype6> <homepage7></homepage7> <homepagetype7></homepagetype7> <homepage8></homepage8> <homepagetype8></homepagetype8> <homepage9></homepage9> <homepagetype9></homepagetype9> <homepage10></homepage10> <homepagetype10></homepagetype10> <licensetype>3</licensetype> <license>Artistic 2.0</license> <donationpage></donationpage> <comments>0</comments> <commentspage>http://openDesktop.org/content/show.php?content=147806</commentspage> <fans>0</fans> <fanspage>http://openDesktop.org/content/show.php?action=fan&content=147806</fanspage> <knowledgebaseentries>0</knowledgebaseentries> <knowledgebasepage>http://openDesktop.org/content/show.php?action=knowledgebase&content=147806</knowledgebasepage> <depend></depend> <preview1></preview1> <preview2></preview2> <preview3></preview3> <previewpic1></previewpic1> <previewpic2></previewpic2> <previewpic3></previewpic3> <picsmall1></picsmall1> <picsmall2></picsmall2> <picsmall3></picsmall3> <detailpage>http://openDesktop.org/content/show.php?content=147806</detailpage> </content> </data> </ocs> " XML Returned: "<?xml version="1.0"?> <ocs> <meta> <status>failed</status> <statuscode>102</statuscode> <message>localfile not found</message> </meta> </ocs> " PostJob::parse "<?xml version="1.0"?> <ocs> <meta> <status>failed</status> <statuscode>102</statuscode> <message>localfile not found</message> </meta> </ocs> " XML Returned: "<?xml version="1.0"?> <ocs> <meta> <status>ok</status> <statuscode>100</statuscode> <message></message> </meta> </ocs> " PostJob::parse "<?xml version="1.0"?> <ocs> <meta> <status>ok</status> <statuscode>100</statuscode> <message></message> </meta> </ocs> " XML Returned: "<?xml version="1.0"?> <ocs> <meta> <status>failed</status> <statuscode>101</statuscode> <message>localfile not found</message> </meta> </ocs> " PostJob::parse "<?xml version="1.0"?> <ocs> <meta> <status>failed</status> <statuscode>101</statuscode> <message>localfile not found</message> </meta> </ocs> " XML Returned: "<?xml version="1.0"?> <ocs> <meta> <status>ok</status> <statuscode>100</statuscode> <message></message> </meta> </ocs> " PostJob::parse "<?xml version="1.0"?> <ocs> <meta> <status>ok</status> <statuscode>100</statuscode> <message></message> </meta> </ocs> " /usr/bin/xdg-open: line 322: test: KDE Development Platform: 4.7.2 (4.7.2) "release 5": integer expression expected /usr/bin/xdg-open: line 323: test: KDE Development Platform: 4.7.2 (4.7.2) "release 5": integer expression expected /usr/bin/xdg-open: line 324: test: KDE Development Platform: 4.7.2 (4.7.2) "release 5": integer expression expected
The problem for this error in not in the krita code. The actual problem is with attica plugin. Ghns uses attica for implementing the Open Collaboration Services. In Krita, we are using GHNS libraries from kde-base libraries. Kde-base libraries contain attica 0.2.0 only. The error we are getting is resolved in attica 0.2.9. Once, we can add attica 0.2.9 in our code then our problem is solved. I am stuck at how to add the attica 0.2.9 to krita dev env .. :( Changelog of attica 0.2.9 - Fix upload errors resulting from content-id not being set.
Can't we set the content-id ourselves then?
Git commit 67f3478806aea135892d1beda70139f63f42c8fc by Boudewijn Rempt. Committed on 30/12/2011 at 09:28. Pushed by rempt into branch 'master'. Only show the GHNS upload button if the attica version is high enough Attica is buggy prior to 3.0 (a.k.a. 2.9) because of bug 281850. This caused Krita bug 285441, where upload would fail sometimes because of missing content-id. There's nothing we can do to fix that from within Krita, so only show the upload button if the version of attica is new enough. The download button is always enabled. Related: bug 281850 M +7 -0 libs/widgets/KoResourceItemChooser.cpp http://commits.kde.org/calligra/67f3478806aea135892d1beda70139f63f42c8fc