Ticket #817 (closed defect: fixed)

Opened 6 years ago

Last modified 4 years ago

Only use enabled Resources within Plugins (was: unable to discover syncml-plugin configuration)

Reported by: cstender Owned by: dgollub
Priority: normal Milestone: 0.38
Component: OpenSync Version: 0.37
Severity: normal Keywords:
Cc:

Description

I created a new group (syncml2file) and added syncml-obex-client and file-sync as members.

msynctool --showgroup syncml2file Group: syncml2file Member 2: file-sync Member 1: syncml-obex-client

syncml-obex-client.conf

<?xml version="1.0"?>
<config version="1.0">
  <AdvancedOptions>
    <AdvancedOption>
      <DisplayName>WBXML compression</DisplayName>
      <Name>WBXML</Name>
      <Type>bool</Type>
      <Value>1</Value>
    </AdvancedOption>
    <AdvancedOption>
      <DisplayName>SyncML Version</DisplayName>
      <Name>SANVersion</Name>
      <Type>string</Type>
      <ValEnum>1.0</ValEnum>
      <ValEnum>1.1</ValEnum>
      <ValEnum>1.2</ValEnum>
      <Value>1.1</Value>
    </AdvancedOption>
    <AdvancedOption>
      <DisplayName>Identifier</DisplayName>
      <Name>Identifier</Name>
      <Type>string</Type>
      <Value>PC Suite</Value>
    </AdvancedOption>
    <AdvancedOption>
      <DisplayName>Use Timestamp Anchor</DisplayName>
      <Name>UseTimeAnchor</Name>
      <Type>bool</Type>
      <Value>1</Value>
    </AdvancedOption>
  </AdvancedOptions>
  <Connection>
    <Bluetooth>
      <MAC>00:1E:3B:XX:XX:XX</MAC>
      <RFCommChannel>11</RFCommChannel>
    </Bluetooth>
  </Connection>
  <Resources>
    <Resource>
      <Enabled>1</Enabled>
      <Formats>
        <Format>
          <Name>vcard21</Name>
        </Format>
      </Formats>
      <Name>Contacts</Name>
      <ObjType>contact</ObjType>
    </Resource>
    <Resource>
      <Enabled>0</Enabled>
      <Formats>
        <Format>
          <Name>vevent10</Name>
        </Format>
      </Formats>
      <Name>Events</Name>
      <ObjType>event</ObjType>
    </Resource>
  </Resources>
</config>

file-sync.conf

<?xml version="1.0"?>
<config version="1.0">
  <Resources>
    <Resource>
      <Enabled>1</Enabled>
      <Formats>
        <Format>
          <Name>file</Name>
        </Format>
      </Formats>
      <ObjType>data</ObjType>
      <Path>/tmp/file3</Path>
    </Resource>
  </Resources>
</config>

Now I tried 'msynctool --discover syncml2file' with the following result:

Discovered Objtypes:
        data
                Format: file

** ERROR **: file /home/cstender/OpenSync-sources/svn.opensync.org/plugins/syncml/src/syncml_common.c: line 244 (syncml_config_parse_database): assertion failed: (res)
aborting...
Abgebrochen

Attachments

Thread3078917008-21457.log (24.8 KB) - added by cstender 6 years ago.
Trace file

Change History

Changed 6 years ago by cstender

Trace file

comment:1 Changed 6 years ago by bricks

  • Component changed from OpenSync to Plugin: syncml
  • Summary changed from unable to discover plugin configuration to unable to discover syncml-plugin configuration

comment:2 Changed 6 years ago by dgollub

  • Status changed from new to assigned

comment:3 Changed 6 years ago by dgollub

The interesting part of the backtrace on this:

#5  0xb7a80829 in syncml_config_parse_database (env=0x806fa90, res=0x0, error=0xb5fe1234) at /home/dgollub/projects/OpenSync/plugins/syncml/src/syncml_common.c:139
#6  0xb7a87490 in ds_server_init_databases (env=0x806fa90, info=0x80701b0, oerror=0xb5fe1234)
    at /home/dgollub/projects/OpenSync/plugins/syncml/src/syncml_ds_server.c:30
#7  0xb7a8236a in syncml_init (sessionType=SML_SESSION_TYPE_SERVER, tspType=SML_TRANSPORT_OBEX_CLIENT, plugin=0x806c0c8, info=0x80701b0, oerror=0xb5fe1234)
    at /home/dgollub/projects/OpenSync/plugins/syncml/src/syncml_common.c:731
#8  0xb7a87b25 in syncml_obex_client_init (plugin=0x806c0c8, info=0x80701b0, oerror=0xb5fe1234)
    at /home/dgollub/projects/OpenSync/plugins/syncml/src/syncml_obex_client.c:30
#9  0xb803fa96 in osync_plugin_initialize (plugin=0x806c0c8, info=0x80701b0, error=0xb5fe1234)
    at /home/dgollub/projects/OpenSync/opensync/opensync/plugin/opensync_plugin.c:309
#10 0xb800c35f in _osync_client_handle_initialize (client=0x806cf40, message=0x8069f80, error=0xb5fe1234)
    at /home/dgollub/projects/OpenSync/opensync/opensync/client/opensync_client.c:578
#11 0xb800dc7a in _osync_client_message_handler (message=0x8069f80, user_data=0x806cf40)
    at /home/dgollub/projects/OpenSync/opensync/opensync/client/opensync_client.c:1180
#12 0xb8034128 in _incoming_dispatch (source=0x806e9b8, callback=0, user_data=0x8066c80)
    at /home/dgollub/projects/OpenSync/opensync/opensync/ipc/opensync_queue.c:230

comment:4 Changed 6 years ago by dgollub

The "Resource" the plugin was looking for was about objtype "event". The "event" resource is not avilable - so there seems to be some OpenSync? core issue. Since the OSyncPluginInfo also reports that there are two ObjTypeSinks?:

(gdb) call osync_plugin_info_num_objtypes(info)
$2 = 2

comment:5 Changed 6 years ago by dgollub

  • Component changed from Plugin: syncml to OpenSync

comment:6 Changed 6 years ago by dgollub

  • Status changed from assigned to closed
  • Resolution set to fixed
  • Summary changed from unable to discover syncml-plugin configuration to Only use enabled Resources within Plugins (was: unable to discover syncml-plugin configuration)

Fix committed r3595 Thanks!

comment:7 Changed 4 years ago by sim

decoration Changed 1 year ago by admin

bathtub Changed 1 year ago by admin

solar system Changed 1 year ago by admin

stair parts Changed 1 year ago by admin

solar supply Changed 1 year ago by admin

comment:8 Changed 4 years ago by sim

decoration Changed 1 year ago by admin

bathtub Changed 1 year ago by admin

solar system Changed 1 year ago by admin

stair parts Changed 1 year ago by admin

solar supply Changed 1 year ago by admin

Note: See TracTickets for help on using tickets.