Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory fusiondirectory
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 39
    • Issues 39
    • List
    • Boards
    • Service Desk
    • Milestones
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectoryfusiondirectory
  • fusiondirectoryfusiondirectory
  • Issues
  • #2847
Something went wrong while setting issue due date.
Closed
Open
Issue created 11 years ago by bmortier@bmortierMaintainer
  • New related issue

  • New related issue

Template bug in memberUid

Closed

Template bug in memberUid

I have a problem, I will try to be explicit :

So, I create some templates for users creation, in this templates I had groups for future users. I use placeholders for generate the user id : "%ls[1]|givenName%%ls[2]|sn%"

After that I have a problem in Groups information, see groups_error_template.png

In LDAP the information comes in merberUid, see groups_ldap_error.png

If I remove memberUid: %ls[1]|givenName%%ls[2]|sn% in LDAP, I haven't got the error in FD.

This error is important because we can't remove users in groups.

(from redmine: issue id 2847, created on 2013-11-13, closed on 2014-01-06)

  • Changesets:
    • Revision b3ea1265 by Côme Chilliet on 2013-11-21T09:10:09.000Z:
Fixes: #2847 Members wrongly listed in group

when there is a template uid contains a | it's then wrongly searched by
the group in which it's in
  • Revision a859a9bd by Côme Chilliet on 2014-06-23T17:05:58.000Z:
Fixes: #2847 Members wrongly listed in group

when there is a template uid contains a | it's then wrongly searched by
the group in which it's in
  • Revision 7d336678 by Côme Chilliet on 2015-04-01T09:49:32.000Z:
Fixes: #2847 Members wrongly listed in group

when there is a template uid contains a | it's then wrongly searched by
the group in which it's in

Conflicts:
	plugins/admin/groups/class_group.inc
  • Custom Fields:
    • Bug in version: 1.0.7
  • Uploads:
    • groups_error_template
    • groups_ldap_error
    • 0001-Fixes-2847-Members-wrongly-listed-in-group.patch
    • template-added-in-a-group

    Tasks

    0

    No tasks are currently assigned. Use tasks to break down this issue into smaller parts.

    Linked items
    0

    Link issues together to show that they're related. Learn more.

    Activity


    • bmortier
      bmortier @bmortier · 11 years ago
      Author Maintainer

      Hello I have an error :

      L'ajout de l'UID '%ls[1]|givenName%%ls[2]|sn%' au groupe 'admin' à échoué : l'UID est utilisé plus d'un fois ! 
      

      I think is because I have multi templates with same placeholder

      (from redmine: written on 2013-11-14)

      By guidtz on 2017-09-02T15:06:26 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 11 years ago
      Author Maintainer

      But with one template it's works just to correct the error for multiple templates with the same placeholders.

      (from redmine: written on 2013-11-14)

      By guidtz on 2017-09-02T15:06:26 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 11 years ago
      Author Maintainer

      Guillaume Chéramy wrote:

      But with one template it's works just to correct the error for multiple templates with the same placeholders.

      This is gonna be kind of a headake… Groups are based on uids and templates does not have unique uids. I'm not sure I'll be able to fix this before we get the new template system. In the mean time, what you can do is make sure you have unique uids for your templates, even if they do the same thing in the end, for instance, apply several times the lowercase modifier for some: @%ls[1]|givenName%%ls[2]|sn%@ @%lls[1]|givenName%%ls[2]|sn%@ @%ls[1]|givenName%%lls[2]|sn%@

      (from redmine: written on 2013-11-18)

      By Côme Chilliet on 2017-09-02T15:06:26 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 11 years ago
      Author Maintainer

      Close issue

      (from redmine: written on 2013-11-18)

      By bmortier on 2017-09-02T15:06:27 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 11 years ago
      Author Maintainer

      Hello,

      i will close this as this is a corner case, and difficult to fixe in the actual code, we will se if something can be done for 1.0.8, but not sure, the ne template system is planned to appears in 1.0.9

      Cheers

      (from redmine: written on 2013-11-18)

      By bmortier on 2017-09-02T15:06:28 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 11 years ago
      Author Maintainer

      Reopen issue

      (from redmine: written on 2013-11-20)

      By bmortier on 2017-09-02T15:06:28 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 11 years ago
      Author Maintainer

      It's works with %ls[1]|givenName%%ls[2]|sn% %lls[1]|givenName%%ls[2]|sn% %ls[1]|givenName%%lls[2]|sn%

      for 3 is good but for more I don't think is good.

      You talk about a new template system ? For when do you project to add it ?

      (from redmine: written on 2013-11-21)

      By guidtz on 2017-09-02T15:06:29 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 11 years ago
      Author Maintainer

      Hello,

      its planned for 1.0.9 so i would say middle of next year

      Cheers

      (from redmine: written on 2013-11-21)

      By bmortier on 2017-09-02T15:06:30 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 11 years ago
      Author Maintainer

      Guillaume Chéramy wrote:

      for 3 is good but for more I don't think is good.

      You talk about a new template system ? For when do you project to add it ?

      In 1.0.8 you should be able to do @%ls[1]|givenName%%ls[2]|sn%%c|compta%@ using #2859 In 1.0.9 The new template system will be there.

      Maybe #2859 should be done for 1.0.7.2?

      (from redmine: written on 2013-11-21)

      By Côme Chilliet on 2017-09-02T15:06:30 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 11 years ago
      Author Maintainer

      Hello,

      yes we could put #2859 in 1.0.7.2 and let guillaume test it

      Cheers

      (from redmine: written on 2013-11-21)

      By bmortier on 2017-09-02T15:06:30 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 11 years ago
      Author Maintainer

      Yes if you want

      (from redmine: written on 2013-11-22)

      By guidtz on 2017-09-02T15:06:30 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 11 years ago
      Author Maintainer

      Hello,

      packages are at deb http://repos.fusiondirectory.org/fusiondirectory-develop/ wheezy main

      Cheers

      (from redmine: written on 2013-11-22)

      By bmortier on 2017-09-02T15:06:31 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 11 years ago
      Author Maintainer

      Hello,

      any news about this bug..

      i intend to release 1.0.7.2 on the 9 december

      Cheers

      (from redmine: written on 2013-12-03)

      By bmortier on 2017-09-02T15:06:31 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 11 years ago
      Author Maintainer

      Hello,

      any news on this ?

      Cheers

      (from redmine: written on 2013-12-12)

      By bmortier on 2017-09-02T15:06:31 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 11 years ago
      Author Maintainer

      Hello,

      after some test it works.

      it add the user correctly into the group but also add the template as a member of the group

      so we must exclude the template to be added to the group

      Cheers

      (from redmine: written on 2014-01-03)

      By bmortier on 2017-09-02T15:06:31 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 11 years ago
      Author Maintainer

      Why? How will you do if you can't add templates to group anymore?

      (from redmine: written on 2014-01-06)

      By Côme Chilliet on 2017-09-02T15:06:32 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 11 years ago
      Author Maintainer

      Hello,

      ok after discussion it seems the old management of template, does that, will be changed when the new template arrive in 1.0.9

      Cheers

      Close issue

      (from redmine: written on 2014-01-06)

      By bmortier on 2017-09-02T15:06:32 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 10 years ago
      Author Maintainer

      Hello,

      commited to 1.0.8

      cheers

      (from redmine: written on 2014-06-23)

      By bmortier on 2017-09-02T15:06:33 (imported from GitLab)

    • bmortier closed 7 years ago

      closed

      By bmortier on 2017-09-02T15:06:27 (imported from GitLab)

    • bmortier reopened 7 years ago

      reopened

      By bmortier on 2017-09-02T15:06:28 (imported from GitLab)

    • Loading
    • Loading
    • Loading
    • Loading
    • Loading
    • Loading
    • Loading
    • Loading
    • Loading
    • Loading
    Please register or sign in to reply
    Assignee
    bmortier's avatar
    bmortier
    Assign to
    Labels
    0
    None
    0
    None
      Assign labels
    • Manage project labels

    Milestone
    No milestone
    None
    Due date
    None
    None
    None
    Time tracking
    No estimate or time spent
    Confidentiality
    Not confidential
    Not confidential

    You are going to turn on confidentiality. Only project members with at least the Reporter role, the author, and assignees can view or be notified about this issue.

    Lock issue
    Unlocked
    0
    0 Participants
    Reference: