Bug #3205

Wrong email field on LDAP configuration

Added by Alessio Fattorini about 6 years ago. Updated about 6 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-owncloud
Target version:v6.6
Security class: Resolution:
Affected version:v6.6-final NEEDINFO:No

Description

Into the action nethserver-owncloud-conf-ldap we have this entry
php -d "magic_quotes_gpc = Off" /var/www/html/owncloud/occ ldap:set-config "" ldapEmailAttribute "email"

But email attribute is wrong since "mail" is the correct one.

we have to revert this wrong fix:
http://dev.nethserver.org/projects/nethserver/repository/nethserver-owncloud/revisions/87b24a5e0dc3091881d801a5c2286a5311656870/diff/root/etc/e-smith/events/actions/nethserver-owncloud-conf-ldap

Email notification on owncloud doesn't work at all since email property is not editable manually by web interface

We should have also an action for change this entry on configuration for existing installations


Related issues

Related to NethServer 6 - Feature #3191: Update ownCloud to 7.0.6 version CLOSED

Associated revisions

Revision 373c4667
Added by Alessandro Polidori about 6 years ago

Fix ldap email attribute for user_ldap app. Refs #3205

History

#1 Updated by Giacomo Sanchietti about 6 years ago

  • Category set to nethserver-owncloud
  • Status changed from NEW to TRIAGED
  • Target version set to v6.6
  • % Done changed from 0 to 20
  • Affected version set to v6.6-final

Bug confirmed.

Workaround

You can fix the problem by executing this command on a running installation:

php -d "magic_quotes_gpc = Off" /var/www/html/owncloud/occ ldap:set-config "" ldapEmailAttribute "mail" 

#2 Updated by Alessandro Polidori about 6 years ago

Package affected version
nethserver-owncloud-1.1.3-1.ns6.noarch

#3 Updated by Alessandro Polidori about 6 years ago

  • Related to Feature #3191: Update ownCloud to 7.0.6 version added

#4 Updated by Alessandro Polidori about 6 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Alessandro Polidori
  • % Done changed from 20 to 30

#5 Updated by Alessandro Polidori about 6 years ago

https://github.com/owncloud/core/issues/12823
For users that has done login previously (with this wrong value "email"), data has already been loaded into the database and a new login action does not refresh the info with ldap email address into the database, but only for new login of user never logged in.

Ldap data are refreshed only each 24 hours.

#6 Updated by Giacomo Sanchietti about 6 years ago

Quick fix for existing installation:

update preferences set configvalue='<mail>' where userid='<user>' and appid='settings' and configkey='email';

#7 Updated by Alessandro Polidori about 6 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Alessandro Polidori)
  • % Done changed from 30 to 60

#8 Updated by Alessandro Polidori about 6 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

NethServer 6.6

Repo: nethesis-testing

Packages:

nethserver-owncloud-1.1.3-1.3.g373c466.ns6.noarch.rpm

Test

TEST 1
  1. from an already installed version login to owncloud with a user
  2. from user settings enable email notifications
  3. verify that you are not able to receive email notification
  4. update nethserver-owncloud
  5. set the server date 2 days forward
  6. re-login with the previous user
  7. verify that the user are able to receive email notifications
TEST 2
  1. do a clean installation
  2. login with a user
  3. enable the email notifications
  4. verify that the user receives email notifications

#9 Updated by dz0 0te about 6 years ago

  • Assignee set to dz0 0te

#10 Updated by dz0 0te about 6 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (dz0 0te)
  • % Done changed from 70 to 90

System and Package Version installed
VM KVM - Clean install of Nethserver 6.6 fully updated
Package Installed: nethserver-owncloud-1.1.3-1.ns6
Other Package installed: Email,File server,MySQL server,POP3 connector,Web server,ownCloud

Test Original Problem
on VM1 with already installe owncloud and some users configured, enabled mail notification
doesn't work

Install Updated Package

yum --enablerepo=nethserver-testing update nethserver-owncloud

This wil update also other packages to:
owncloud-7.0.6-2.2.noarch.rpm
owncloud-3rdparty-7.0.6-2.2.noarch.rpm

Test Results after update
Test 1: (VM1)
following test case it's all OK

Test 2: (VM2)
following test case 2 it's all OK

Test 3: (VM3)
same as test 1 but using Recovery Password to test email notification
All OK after the update

Note
It took me some time to test, due to lack of knowledge of how owncloud manage the backround jobs https://doc.owncloud.org/server/7.0/admin_manual/configuratin/background_jobs_configuration.html
I will do some more test: the background jobs with default config (AJAX) doesn't seems to work correctly when hourly sending is selected from user.

#11 Updated by Giacomo Sanchietti about 6 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • owncloud-3rdparty-7.0.6-2.2.noarch.rpm
  • owncloud-7.0.6-2.2.noarch.rpm
  • nethserver-owncloud-1.1.4-1.ns6.noarch.rpm

Also available in: Atom PDF