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
Replication of the schema fails 'master branch' -> 1.2.11 or 1.3.1 #1013
Comments
Comment from rmeggins (@richm) at 2014-01-17 22:03:38 Looks like I caused this bug :-( with the fix for https://fedorahosted.org/389/ticket/47647 I guess we have to add back the bogus schema entry to make schema replication work :P This means our schema tests in master will fail. I'm not sure how we can fix this and keep backwards compatability. |
Comment from tbordaz (@tbordaz) at 2014-01-17 22:55:15 There are two issues: since https://fedorahosted.org/389/ticket/47490 and https://fedorahosted.org/389/ticket/47647, it fails to push the schema 'master' -> 1.3.1 and 'master' -> 1.2.11 because of 'printer-uri' since https://fedorahosted.org/389/ticket/47541, it fails to push the schema 'master' -> 1.2.11 because of unhashed#user#password pseudo attribute |
Comment from tbordaz (@tbordaz) at 2014-01-22 22:11:37 attachment |
Comment from tbordaz (@tbordaz) at 2014-01-29 22:23:23 attachment |
Comment from rmeggins (@richm) at 2014-01-30 22:34:05 In create_repl_schema_policy() - you should clear or free the pblock after every add operation. It may cause strange problems to re-use the same pblock for multiple operations (even though it may seem to work fine in your testing). Your return -1 will leak memory. Don't do a short-circuit return:
You will also need to free Slapi_Entry *e if the add fails - if the add is successful, set e = NULL so you will know that you don't need to free it.
Do these need to be globals? If not, please define them as static. Also, the parsing, structs, etc. - do you need to have a separate name and oid? Can't you just have a char *name_or_oid? Finally, I think you can get rid of a lot of the parsing, etc. by just having 4 different multi-valued attributes: I don't know if you even need to keep a separate list of objectclasses and attributetypes - I suppose if we allow you to have an objectclass and an attribute with the same name, then you might want to reject objectclass "foo" but allow attribute "foo". As far as OIDs go, you will never have an objectclass or attribute with the same OID as any other schema element. |
Comment from tbordaz (@tbordaz) at 2014-02-04 20:20:04 attachment |
Comment from tbordaz (@tbordaz) at 2014-02-04 20:20:18 attachment |
Comment from tbordaz (@tbordaz) at 2014-02-05 17:08:01 git merge Updating 01cb401..c44ea92 git push origin master Counting objects: 30, done. commit c44ea92 |
Comment from tbordaz (@tbordaz) at 2014-02-05 21:58:06 attachment |
Comment from tbordaz (@tbordaz) at 2014-02-05 22:16:39 I did pick up a wrong OID for nsSchemaPolicy OID. Just OLC reviewed by Rich git merge ticket47676_entries git push origin master Counting objects: 9, done. commit ce43858 |
Comment from tbordaz (@tbordaz) at 2014-05-20 15:17:49 In order to backport https://fedorahosted.org/389/ticket/47721 in 1.3.2, this bug needs to be backported first git push origin '''389-ds-base-1.3.2''' (core fix) Counting objects: 30, done. commit e35d201 git push origin '''389-ds-base-1.3.2''' (wrong OID) Counting objects: 9, done. commit d26a4a0 |
Comment from tbordaz (@tbordaz) at 2017-02-11 23:04:38 Metadata Update from @tbordaz:
|
Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/47676
This bug is possibly a duplicate of https://fedorahosted.org/389/ticket/47633
The 1.2.11 schema contains the following definition in 60rfc3712.ldif
This definition does not exist in 1.3.1 and 'master branch'.
Since https://fedorahosted.org/389/ticket/47490, the schema of a consumer (master/hub/consumer) is not overwritten if the consumer schema is a superset of the supplier schema.
If we have a supplier 1.3.2.1 (and after) and a consumer 1.2.11, and the schema is updated on the supplier. Then the schema is never pushed.
To reproduce, install 2 masters: M1:master branch, M2: 1.2.11
Update the schema on M1, and check the following message in M1 error logs:
Enabling replication log: we can see the detail
The text was updated successfully, but these errors were encountered: