Skip to content
GitLab
    • Explore Projects Groups Topics Snippets
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory-plugins fusiondirectory-plugins
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 65
    • Issues 65
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectoryfusiondirectory
  • fusiondirectory-pluginsfusiondirectory-plugins
  • Issues
  • #4791
Something went wrong while setting issue due date.
Closed
Open
Issue created 8 years ago by mhamant@mhamantReporter
  • New related issue

  • New related issue

setfields() : values structure and fields names

Closed

setfields() : values structure and fields names

the 'values' arg of setfields() take an array like @array('fieldname' => something)@ Hence, it's nowhere specified how to get:

  1. the exact key name we want to store the data for.
  2. the expected structure of "something" (example 'userPassword' expect a special array).

I suggest we expose a function to the webservice to be able to get those.

(from redmine: issue id 4791, created on 2016-05-19, closed on 2016-06-10)

  • Relations:
    • relates #4790 (closed)
  • Changesets:
    • Revision 176d1f6f by Côme Chilliet on 2016-06-06T09:40:13.000Z:
Fixes #4791 listtabs now returns all tabs
  • Revision 3f2e6630 by Côme Chilliet on 2016-06-06T09:49:11.000Z:
Fixes #4791 listtabs now returns all tabs
  • Revision fdfb25c1 by Côme Chilliet on 2016-06-10T07:27:51.000Z:
Fixes #4791 Fixing shell listtabs method
  • Revision 9d6bfe5f by Côme Chilliet on 2016-06-10T07:28:33.000Z:
Fixes #4791 Fixing shell listtabs method
  • Custom Fields:
    • Bug in version: 1.0.12

    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


    • mhamant
      mhamant @mhamant · 8 years ago
      Author Reporter

      I have tested this only superficially but it looks like we're in a good direction.

      (from redmine: written on 2016-05-26)

    • bmortier
      bmortier @bmortier · 8 years ago
      Maintainer

      hello,

      should this bug report closed, does it work the way it should now ?

      Cheers

      (from redmine: written on 2016-05-31)

    • mhamant
      mhamant @mhamant · 8 years ago
      Author Reporter

      getfields() now returns the needed values but I still have one concern : getfields() expect a tab parameter (or it use the main one). Problem is you don't know tabs names in the first place. And listtab() only return active tabs on an entry. ( or Maybe I miss something).

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

    • Côme Chilliet
      Côme Chilliet @cchilliet · 8 years ago
      Reporter

      shell lstabs method will have to be tested as well

      (from redmine: written on 2016-06-06)

    • mhamant
      mhamant @mhamant · 8 years ago
      Author Reporter

      I'm now running 1.0.12-2~jenkinsbuild164

      webservice : I get this:

      Array
      (
          [user] => Array
              (
                  [name] => User
                  [active] => 1
              )
      
          [posixAccount] => Array
              (
                  [name] => Unix
                  [active] => 
              )
      
          [personalInfo] => Array
              (
                  [name] => Personal
                  [active] => 1
              )
      
          [mailAccount] => Array
              (
                  [name] => Mail
                  [active] => 1
              )
      
          [userRoles] => Array
              (
                  [name] => Groups and roles
                  [active] => 1
              )
      
          [newsletterSubscriptions] => Array
              (
                  [name] => Newsletter
                  [active] => 
              )
      
          [reference] => Array
              (
                  [name] => References
                  [active] => 1
              )
      
          [ldapDump] => Array
              (
                  [name] => LDAP
                  [active] => 1
              )
      
      )
      

      Not sure it is expected to have no value when tab is disabled (should we get 0 ?)

      shell : I get this :

      ...> lstabs user uid=xxx,dc=xx,ou=xx
      Reference found where even-sized list expected at /usr/bin/fusiondirectory-shell line 408.
      Use of uninitialized value in printf at /usr/bin/fusiondirectory-shell line 409.
                                     posixAccount(inactive)
      Reference found where even-sized list expected at /usr/bin/fusiondirectory-shell line 408.
      Use of uninitialized value in printf at /usr/bin/fusiondirectory-shell line 409.
                                     ldapDump(inactive)
      Reference found where even-sized list expected at /usr/bin/fusiondirectory-shell line 408.
      Use of uninitialized value in printf at /usr/bin/fusiondirectory-shell line 409.
                                     user(inactive)
      Reference found where even-sized list expected at /usr/bin/fusiondirectory-shell line 408.
      Use of uninitialized value in printf at /usr/bin/fusiondirectory-shell line 409.
                                     mailAccount(inactive)
      Reference found where even-sized list expected at /usr/bin/fusiondirectory-shell line 408.
      Use of uninitialized value in printf at /usr/bin/fusiondirectory-shell line 409.
                                     personalInfo(inactive)
      Reference found where even-sized list expected at /usr/bin/fusiondirectory-shell line 408.
      Use of uninitialized value in printf at /usr/bin/fusiondirectory-shell line 409.
                                     newsletterSubscriptions(inactive)
      Reference found where even-sized list expected at /usr/bin/fusiondirectory-shell line 408.
      Use of uninitialized value in printf at /usr/bin/fusiondirectory-shell line 409.
                                     userRoles(inactive)
      Reference found where even-sized list expected at /usr/bin/fusiondirectory-shell line 408.
      Use of uninitialized value in printf at /usr/bin/fusiondirectory-shell line 409.
                                     reference(inactive)
      

      (from redmine: written on 2016-06-09)

    • Côme Chilliet
      Côme Chilliet @cchilliet · 8 years ago
      Reporter

      Martin H wrote:

      I'm now running 1.0.12-2~jenkinsbuild164

      webservice : I get this: [...]

      Not sure it is expected to have no value when tab is disabled (should we get 0 ?) It is kind of expected, basically JSON have no boolean type, so when passing booleans through JSONRPC you get something else on the other side. As long as you can do if ($tab['active']), it’s not a big deal.

      shell : I get this : [...] Can you try again with latest fixes?

      (from redmine: written on 2016-06-10)

    • mhamant
      mhamant @mhamant · 8 years ago
      Author Reporter

      Can you try again with latest fixes? it works !

      (from redmine: written on 2016-06-10)

    • bmortier
      bmortier @bmortier · 8 years ago
      Maintainer

      Close issue

      (from redmine: written on 2016-06-10)

    • bmortier closed 7 years ago

      closed

    • bmortier added Fixed label 6 years ago

      added Fixed label

    Please register or sign in to reply
    Assignee
    Côme Chilliet's avatar
    Côme Chilliet
    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:

    Menu

    Explore Projects Groups Topics Snippets