Closed (won't fix)
Project:
Lightweight Directory Access Protocol
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 May 2013 at 14:08 UTC
Updated:
11 Feb 2017 at 18:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
gaas commentedThe problem is that
db_field_exists('ldap_servers', 'groupFunctionalityUnused')returns FALSE when the column was created with an all lowercase name. This makes the updates try to create various columns that already exists.I verified that if I apply this hack to Drupal core, then all the update tasks completes.
Comment #2
steinmb commentedWhat db. was this seen on? Some DB collations schema is *_ci.
Comment #3
steinmb commentedPHP 5.4.15 (cli) (built: Jun 25 2013 10:07:48)
Drupal 7.23
PostgreSQL 9.2.4
Upgrade from 7.x-1.0-beta12 - 7.x-2.0-beta5/7.x-1.x-dev
ldap_servers_update_7108 "groupusermembershipsattrexists" of relation "ldap_servers" already exists
Further down the upgrade path do we try to address this in ldap_servers_update_7203() were all the case sensitive columns are renamed, though I doubt that is actually will work then it is running db_field_exists() with cased values.
This break any upgrade paths from 7.x-1.x to 7.x-2.x not that we really need one. Uninstalling and installing again is not very hard but we should document that it is not supported.
Comment #4
johnbarclay commentedhere's a patch to check for mixed and lowercase table names. please test. I don't think this is so much a bug in core as inconsistency over time of table names in ldap.
Comment #5
steinmb commentedThanx for the swift reply :)
The patch did not work, blew up on three different places:
Have tried to fix these but this prob. needs some more testing.
Comment #6
steinmb commentedComment #7
johnbarclay commented1 to 2 update is not supported. Turning this into task
Comment #8
steinmb commentedGet rid of warning from: ldap_servers_update_7112
array_keys() expects parameter 1 to be array, null given ldap_servers.install:662Comment #9
steinmb commentedCross post
Comment #10
grahlUpgrade path per module policy no longer being worked on.