Uploaded image for project: 'ejabberd development'
  1. ejabberd development
  2. EJAB-1686

mod_admin_extra get_vcard and set_vcard not working

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: ejabberd 13.12
    • Fix Version/s: None
    • Component/s: vCard
    • Labels:
      None
    • Environment:
      I just installed mod_admin_extra into a fresh install of ejabberd 13.12.
      My modules configuration are:

        mod_vcard: {}
        mod_admin_extra: {}

      Description

      When I try to get ou set Vcards I got those erros:

      set_vcard admin localhost nickname teste
      Problem 'error

      {badmatch,[]}' occurred executing the command.
      Stacktrace: [{mod_admin_extra,set_vcard_content,4,
      [{file,"src/mod_admin_extra.erl"},{line,1019}]},
      {ejabberd_ctl,call_command,3,
      [{file,"src/ejabberd_ctl.erl"},{line,294}]},
      {ejabberd_ctl,try_call_command,3,
      [{file,"src/ejabberd_ctl.erl"},{line,270}]
      },
      {ejabberd_ctl,process2,3,
      [{file,"src/ejabberd_ctl.erl"},{line,219}]},
      {ejabberd_ctl,process,1,
      [{file,"src/ejabberd_ctl.erl"},{line,204}]
      },
      {rpc,'handle_call_call/6-fun-0',5,
      [{file,"rpc.erl"},{line,203}]}]

      Problem 'error {badmatch,[]}

      ' occurred executing the command.
      Stacktrace: [{mod_admin_extra,get_vcard_content,3,
      [

      {file,"src/mod_admin_extra.erl"},{line,975}]},
      {mod_admin_extra,get_vcard,3,
      [{file,"src/mod_admin_extra.erl"}

      ,

      {line,948}

      ]},
      {ejabberd_ctl,call_command,3,
      [

      {file,"src/ejabberd_ctl.erl"},{line,294}]},
      {ejabberd_ctl,try_call_command,3,
      [{file,"src/ejabberd_ctl.erl"}

      ,

      {line,270}

      ]},
      {ejabberd_ctl,process2,3,
      [

      {file,"src/ejabberd_ctl.erl"},{line,219}]},
      {ejabberd_ctl,process,1,
      [{file,"src/ejabberd_ctl.erl"}

      ,

      {line,204}

      ]},
      {rpc,'handle_call_call/6-fun-0',5,
      [

      {file,"rpc.erl"}

      ,

      {line,203}

      ]}]

      I went down to the source Code and the two stacks point to the same line:

      [{_, Module, Function, _Opts}] = ets:lookup(sm_iqtable, {?NS_VCARD, Server}),

      I don't have any experience with erlang or ejabberd, but it seems something easy to Fix. With someone can point me the away, maybe I can provide provide a path.

        Activity

        Hide
        holger Holger Weiß added a comment -

        You get this error message when specifying a nonexistent user or host name. Apart from that, the set_vcard command works fine for me (when using the current mod_admin_extra version with ejabberd 14.05).

        Show
        holger Holger Weiß added a comment - You get this error message when specifying a nonexistent user or host name. Apart from that, the set_vcard command works fine for me (when using the current mod_admin_extra version with ejabberd 14.05).
        Hide
        badlop Badlop added a comment -

        Those commands have been used, and received a fix since that bug report. I bet whatever problem he had, is now fixed.

        Show
        badlop Badlop added a comment - Those commands have been used, and received a fix since that bug report. I bet whatever problem he had, is now fixed.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 4 hours
              4h
              Remaining:
              Remaining Estimate - 4 hours
              4h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development