Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1240776

Summary: can't re-enable core apps
Product: [Fedora] Fedora Reporter: David Juran <djuran>
Component: owncloudAssignee: Adam Williamson <awilliam>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: awilliam, jcosta, redhat-bugzilla, shawn
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: owncloud-8.0.5-1.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-30 01:18:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Juran 2015-07-07 17:41:53 UTC
Description of problem:
After applying the owncloud-8.0.3-2.fc21 update, I had to re-add e.g. the calendar app, as described in https://lists.fedoraproject.org/pipermail/package-announce/2015-June/160074.html
So I log in to the web UI as admin, click on the appd -> + -> recommended and there I press the "enable" button for the "Calendar" application.
But re-loading the page shows that calendar still is not enabled and it's still not available to my users. 
Am I missing something?

Version-Release number of selected component (if applicable):
owncloud-8.0.3-2

Additional info:

The following logs are seen when I press the "enable" button

==> ssl_access_log <==
62.237.32.162 - - [07/Jul/2015:19:38:07 +0200] "POST /owncloud/index.php/settings/ajax/enableapp.php HTTP/1.1" 200 20

==> ssl_request_log <==
[07/Jul/2015:19:38:07 +0200] 62.237.32.162 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "POST /owncloud/index.php/settings/ajax/enableapp.php HTTP/1.1" 20

==> ssl_access_log <==
62.237.32.162 - - [07/Jul/2015:19:38:08 +0200] "GET /owncloud/index.php/settings/ajax/navigationdetect.php?app=168707 HTTP/1.1" 200 50

==> ssl_request_log <==
[07/Jul/2015:19:38:08 +0200] 62.237.32.162 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /owncloud/index.php/settings/ajax/navigationdetect.php?app=168707 HTTP/1.1" 50

Comment 1 Adam Williamson 2015-07-07 19:24:02 UTC
I think this may possibly be an upstream issue, my guess is they've changed something in the 'app store' stuff for the 8.1 release and it's broken it for 8.0...see upstream report with very similar symptoms:

https://github.com/owncloud/core/issues/17438

For the record, I can reproduce this with a clean install of 8.0.4 from the kickstart. OC logs these errors:

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

Comment 2 Kevin R. Page 2015-07-08 18:58:02 UTC
Also with owncloud on F22. (Indeed hoping it might be a F21 issue was the final push to upgrade to F22, but to no avail).

I can install owncloud apps manually by downloading and unzip/untar into /var/lib/owncloud/apps

It's quite nasty that this happens in the context of upgrading from 7.x to 8.0.3 as one's first expectation is that this is a database or config.php artefact issue from the update process (by RPM and fedora packages for me). So adding this comment here in the hope others find it and save themselves a wild goose chase reverting backup dbs etc.

Comment 3 Juraci Paixão Kröhling 2015-07-10 08:44:10 UTC
It seems the fix is on the commit 57789e1 [1]. 

Temporary (and ugly) workaround:

# cd /tmp/
# wget https://github.com/owncloud/core/commit/57789e15a9216a1ea0aaa9adec09047d676b1744.diff
# cd /usr/share/owncloud
# git apply /tmp/57789e15a9216a1ea0aaa9adec09047d676b1744.diff


1 - https://github.com/owncloud/core/commit/57789e15a9216a1ea0aaa9adec09047d676b1744

Comment 4 Adam Williamson 2015-07-10 16:09:40 UTC
I'm planning to work on OC over the weekend, I'll get 8.0.5 updates out for stable releases and 8.1 for Rawhide, and include the fix for this.

Comment 5 Fedora Update System 2015-07-10 23:34:14 UTC
owncloud-8.0.5-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/FEDORA-2015-10188/owncloud-8.0.5-1.fc21

Comment 6 Juraci Paixão Kröhling 2015-07-11 08:32:07 UTC
I just tested the build from the following link, and it indeed fixes the issue:

owncloud-8.0.5-1.fc22
http://koji.fedoraproject.org/koji/buildinfo?buildID=668030

Thanks!

Comment 7 Fedora Update System 2015-07-14 15:32:54 UTC
Package owncloud-8.0.5-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing owncloud-8.0.5-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-10188/owncloud-8.0.5-1.fc21
then log in and leave karma (feedback).

Comment 8 David Juran 2015-07-25 13:30:55 UTC
Apologies for the delay in testing, vacation and father-in-law visiting...

Anyhow, version 8.0.5 seem to work, at last I can install both the calendar and the contacts app.

One thing I noticed though was that when I as admin browsed to the list of productivity apps, the following messages appeared in syslog:

jul 25 15:25:11 juran.se ownCloud[1250]: {core} OC\Tags::__construct, tags: Array
                                         (
                                         )
jul 25 15:25:18 juran.se ownCloud[1254]: {core} Invalid OCS content returned for app 166051
jul 25 15:25:19 juran.se ownCloud[1254]: {core} Invalid OCS content returned for app 166049


When I then logged in as my own user, the following was seen in syslog:

jul 25 15:28:45 juran.se ownCloud[1284]: {core} OC\Tags::__construct, tags: Array
                                         (
                                         )





Finally, when going to the contacts app, with my own user, the following was shown in syslog.

jul 25 15:29:27 juran.se ownCloud[1293]: {no app in context} Accessing the API class is deprecated! Use the appropriate services instead!
jul 25 15:29:28 juran.se ownCloud[1287]: {no app in context} Accessing the API class is deprecated! Use the appropriate services instead!
jul 25 15:29:28 juran.se ownCloud[1330]: {no app in context} Accessing the API class is deprecated! Use the appropriate services instead!
jul 25 15:29:29 juran.se ownCloud[1254]: {no app in context} Accessing the API class is deprecated! Use the appropriate services instead!
jul 25 15:29:29 juran.se ownCloud[1254]: {core} OC\Tags::__construct, tags: Array
                                         (
                                             [0] => OC\Tagging\Tag Object
                                                 (
                                                     [owner:protected] => david
                                                     [type:protected] => contact
                                                     [name:protected] => Family
                                                     [id] => 17
                                                     [_updatedFields:OCP\AppFramework\Db\Entity:private] => Array
                                                         (
                                                         )
                                         
                                                     [_fieldTypes:OCP\AppFramework\Db\Entity:private] => Array
                                                         (
                                                             [id] => integer
                                                         )
                                         
                                                 )
                                         
                                             [1] => OC\Tagging\Tag Object
                                                 (
                                                     [owner:protected] => david
                                                     [type:protected] => contact
                                                     [name:protected] => Friends
                                                     [id] => 16
                                                     [_updatedFields:OCP\AppFramework\Db\Entity:private] => Array
                                                         (
                                                         )
                                         
                                                     [_fieldTypes:OCP\AppFramework\Db\Entity:private] => Array
                                                         (
                                                             [id] => integer
                                                         )
                                         
                                                 )
                                         
                                             [2] => OC\Tagging\Tag Object
                                                 (
                                                     [owner:protected] => david
                                                     [type:protected] => contact
                                                     [name:protected] => Other
                                                     [id] => 19
                                                     [_updatedFields:OCP\AppFramework\Db\Entity:private] => Array
                                                         (
                                                         )
                                         
                                                     [_fieldTypes:OCP\AppFramework\Db\Entity:private] => Array
                                                         (
                                                             [id] => integer
                                                         )
                                         
                                                 )
                                         
                                             [3] => OC\Tagging\Tag Object
                                                 (
                                                     [owner:protected] => david
                                                     [type:protected] => contact
                                                     [name:protected] => Work
                                                     [id] => 18
                                                     [_updatedFields:OCP\AppFramework\Db\Entity:private] => Array
                                                         (
                                                         )
                                         
                                                     [_fieldTypes:OCP\AppFramework\Db\Entity:private] => Array
                                                         (
                                                             [id] => integer
                                                         )
                                         
                                                 )
                                         
                                         )
jul 25 15:29:29 juran.se ownCloud[1254]: {core} OC\Tags::getFavorites, exception: Could not find category "_$!<Favorite>!$_"
jul 25 15:29:29 juran.se ownCloud[1287]: {no app in context} Accessing the API class is deprecated! Use the appropriate services instead!
jul 25 15:29:35 juran.se ownCloud[1284]: {no app in context} Accessing the API class is deprecated! Use the appropriate services instead!

Comment 9 Fedora Update System 2015-07-30 01:18:36 UTC
owncloud-8.0.5-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.