-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't create or import contacts #190
Comments
I tried migrating an existing ownCloud 9.1.4 installation to Nextcloud 10.0.4. After migration I have my contact list, but I still can't add new ones. Clicking "Add new contact" doesn't do anything, browser logs:
Apache logs:
|
Problem is the PUT request, which seems to fail
|
Creating and editing entries in Andoid and syncing them with DavDroid works like a charm. As for the payload... There isn't any, because I never even get to the point where I can actually type any data. Nothing happens when I click "Add new contact". |
Thunderbird with SOGo works fine too, btw. |
@Woefdram When clicking 'New contact' some work happens in the background an a new contact is created (although you didn't enter any data) and pushed onto the server. In your log I'm able to see the PUT request, which pushes the contact to the server. Optimally the payload should look something like this:
Since the server answers with the status code 400, I assume the request is sent incorrectly from the contacts app and therefore it would be interesting to see what the contacts app actually tried to send. |
I see. Attached is the whole shebang, one PUT. |
Maybe this is more to your liking :-) This is the Request Header:
This is the Response Header:
And this is the payload:
|
Mea culpa, mea maxima culpa. Turns out that ModSecurity was the problem. I thought it had been disabled... Sorry for wasting your time. |
@Woefdram No worries mate 😉 glad you were able to find the problem |
Steps to reproduce
Expected behaviour
New, empty card should appear.
Actual behaviour
"Contact could not be created" appears at the top of the screen, nothing more. Devel console shows message "TypeError: contact is undefined"
Server configuration
Debian Testing ("Stretch"), kernel 4.9.18-1 (amd64)
Web server:
Apache 2.4.25
Database:
MariaDB 10.1.22
PHP version:
7.0.16
Nextcloud version: (see Nextcloud admin page)
11.0.2 (stable)
Contacts version: (see Nextcloud apps page)
1.5.3
Updated from an older Nextcloud or fresh install:
Fresh install.
Signing status:
?
No errors have been found.
List of activated apps:
The content of config/config.php:
$CONFIG = array (
'instanceid' => 'oclaaxene4cc',
'trusted_domains' =>
array (
0 => 'owncloud.example.com',
),
'datadirectory' => '/home/owncloud/nextcloud-data',
'overwrite.cli.url' => 'https://owncloud.example.com',
'dbtype' => 'mysql',
'version' => '11.0.2.7',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'supersecret',
'logtimezone' => 'UTC',
'installed' => true,
'memcache.local' => '\OC\Memcache\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
),
'filelocking.enabled' => true,
'memcache.locking' => '\OC\Memcache\Redis',
'mail_from_address' => 'ownCloud',
'mail_smtpmode' => 'sendmail',
'mail_domain' => 'example.com',
'ldapIgnoreNamingRules' => false,
'ldapProviderFactory' => '\OCA\User_LDAP\LDAPProviderFactory',
);
Are you using external storage, if yes which one: local/smb/sftp/...
No
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
Yes, LDAP: OpenLDAP 2.4.44.
LDAP configuration (delete this part if not used)
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Configuration | |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| hasMemberOfFilterSupport | 1 |
| hasPagedResultSupport | |
| homeFolderNamingRule | |
| lastJpegPhotoLookup | 0 |
| ldapAgentName | uid=owncloud,ou=users,ou=somewhere,dc=example,dc=com |
| ldapAgentPassword | *** |
| ldapAttributesForGroupSearch | |
| ldapAttributesForUserSearch | |
| ldapBackupHost | |
| ldapBackupPort | |
| ldapBase | dc=example,dc=com |
| ldapBaseGroups | ou=groups,ou=somewhere,dc=example.com |
| ldapBaseUsers | ou=users,ou=somewhere,dc=example.com |
| ldapCacheTTL | 600 |
| ldapConfigurationActive | 1 |
| ldapDynamicGroupMemberURL | |
| ldapEmailAttribute | homePostalAddress |
| ldapExperiencedAdmin | 0 |
| ldapExpertUUIDGroupAttr | |
| ldapExpertUUIDUserAttr | |
| ldapExpertUsernameAttr | uid |
| ldapGroupDisplayName | description |
| ldapGroupFilter | (&(|(objectclass=groupOfNames))) |
| ldapGroupFilterGroups | |
| ldapGroupFilterMode | 0 |
| ldapGroupFilterObjectclass | groupOfNames |
| ldapGroupMemberAssocAttr | memberUid |
| ldapHost | ldap://localhost |
| ldapIgnoreNamingRules | |
| ldapLoginFilter | (&(&(|(objectclass=posixAccount))(|(memberof=cn=owncloud,ou=groups,ou=somewhere,dc=example.com)))(|(uid=%uid)(|(mailPrimaryAddress=%uid)(mail=%uid))(|(description=%uid)(homePostalAddress=%uid)))) |
| ldapLoginFilterAttributes | description;homePostalAddress |
| ldapLoginFilterEmail | 1 |
| ldapLoginFilterMode | 1 |
| ldapLoginFilterUsername | 1 |
| ldapNestedGroups | 0 |
| ldapOverrideMainServer | |
| ldapPagingSize | 500 |
| ldapPort | 389 |
| ldapQuotaAttribute | |
| ldapQuotaDefault | |
| ldapTLS | 0 |
| ldapUserDisplayName | description |
| ldapUserDisplayName2 | |
| ldapUserFilter | (&(|(objectclass=posixAccount))(|(memberof=cn=owncloud,ou=groups,ou=somewhere,dc=example.com))) |
| ldapUserFilterGroups | owncloud |
| ldapUserFilterMode | 0 |
| ldapUserFilterObjectclass | posixAccount |
| ldapUuidGroupAttribute | auto |
| ldapUuidUserAttribute | auto |
| turnOffCertCheck | 1 |
| turnOnPasswordChange | 1 |
| useMemberOfToDetectMembership | 1 |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Client configuration
Browser:
Firefox 45.8.0, Linux
Operating system:
Debian Testing, "Stretch"
CardDAV-clients:
Firefox, DavDroid 1.5.0.2 / Android 6.0.1
Logs
Web server error log
Nextcloud log (data/nextcloud.log)
Browser log
The text was updated successfully, but these errors were encountered: