owncloud / core

:cloud: ownCloud web server core (Files, DAV, etc.)
https://owncloud.com
GNU Affero General Public License v3.0
8.37k stars 2.06k forks source link

Unable to parse OCS content when trying to install app on 8.0 #17438

Closed oparoz closed 9 years ago

oparoz commented 9 years ago

Steps to reproduce

  1. Install 8.0
  2. Go to the app store
  3. Install ShareLinks https://apps.owncloud.com/content/show.php/ShareLinks?content=170527

    Expected result

App installs

Actual result

App pretends to install

Logs

"app":"core","message":"Unable to parse OCS content","level":4,"time":"2015-07-07T12:23:04+00:00","method":"POST","url":"\/index.php\/settings\/ajax\/enableapp.php"

ghost commented 9 years ago

Not sure but could be possible that your app is missing the ocsid in the info.xml

DeepDiver1975 commented 9 years ago

@oparoz The ocsid is missing on your info.xml

oparoz commented 9 years ago

@DeepDiver1975 @RealRancor You are correct that the app was missing the ocsid, but that's not the problem. It still can't be installed

oparoz commented 9 years ago

I've also tested with this patch, but it didn't change anything https://github.com/owncloud/core/pull/17297

Works fine on 8.1 though.

AdamWill commented 9 years ago

I - and some of my (Fedora package) users - are seeing the same thing trying to enable first party apps, like Calendar:

Jul 07 15:19:42 localhost.localdomain ownCloud[1521]: {core} Invalid OCS content returned for app 168707
Jul 07 15:19:43 localhost.localdomain ownCloud[1521]: {core} Invalid OCS content returned for app 168707
Jul 07 15:19:44 localhost.localdomain ownCloud[1521]: {core} Unable to parse OCS content

To be clear, I don't just see the error message, but the same actual problem: the UI at first acts like the app was enabled, but the app does not actually get enabled, and when you go away from then back to the Apps UI it shows as disabled again. This is some new problem: I haven't done anything significant to the Fedora packages recently, and this certainly used to work a few weeks ago.

Downstream report: https://bugzilla.redhat.com/show_bug.cgi?id=1240776 (via IRC, user's OC logs have the same errors as mine and @oparoz ).

Perhaps something was changed in the app store stuff for 8.1, which has broken it for 8.0?

oparoz commented 9 years ago

I've just tried on 8.0.5 and I was able to install ShareLinks.

Would be good if someone else could confirm that this is no longer an issue.

AdamWill commented 9 years ago

Yeah, 8.0.5 seems good here too. It had a bunch of obviously-relevant commits. +1 to close this.

rperezb commented 9 years ago

@oparoz added to the @owncloud/qa list of things to be tested within 8.0.6 thx