View Issue Details

IDProjectCategoryView StatusLast Update
0000832Funambol SOGo Connectorpublic2021-09-17 15:45
Reporterklaasd Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionwon't fix 
PlatformLinuxOSUbuntuOS Version9.04
Product Version1.0.8 
Summary0000832: Ignoring default access rights during sync
Description

When I try to synchronize calendars of other users, I get an error if this user didn't explicitly allow me access to its calendar. The default access rights are ignored during synchronizing the calendar with Funambol.

Steps To Reproduce

1) User A subscribes to the personal calendar of user B. User A checks the "Synchronize" box in the properties and sets a tag for this calendar. After that, the events of user B are visible in the web interface.

2) User B has no explicit access rights defined for his personal calendar. Instead, the default access rights are applicable for all users (including user A).

3) When trying to synchronize the personal calendar of user A via Funambol (Funambol client for Outlook and/or Thunderbird), the Funambol client shows a "511" error. In the error log of the server a NullPointerException appears (see attached error.log file). The preceeding lines of the log file show that user A couldn't be found in the acl table of user B.

4) User B explicitly defines access rights for user A for B's personal calendar.

5) Synchronization with Funambol client is successful. Events from B's personal calendar are synchronized. The log file shows that A was successfully found in B's acl table (see attached successful.log file).

Additional Information

Used versions:
SOGo server 1.3.1
Funambol SOGo Connector 1.0.8
Funambol server 8.5.2

TagsNo tags attached.

Activities

2010-09-14 17:11

 

error.log (4,414 bytes)   
2010-09-14 18:31:44,266] [funambol.sogo] [INFO] [73480BE74E86E25E10979DE988D7205E] [fmz-n6ZQPZrNgELEelwhGnM7+w==] [USERA] [sogo-cal] getSyncItemFromId( { keyValue: 70A3-4C8FA280-D-31FE47C0.ics } )
[2010-09-14 18:31:44,267] [funambol.sogo] [INFO] [73480BE74E86E25E10979DE988D7205E] [fmz-n6ZQPZrNgELEelwhGnM7+w==] [USERA] [sogo-cal] Preferred item type: 2
[2010-09-14 18:31:44,267] [funambol.sogo] [INFO] [73480BE74E86E25E10979DE988D7205E] [fmz-n6ZQPZrNgELEelwhGnM7+w==] [USERA] [sogo-cal] Getting classification for key: 70A3-4C8FA280-D-31FE47C0.ics in location: sogoUSERB0016fa8afb6
[2010-09-14 18:31:44,267] [funambol.sogo] [INFO] [73480BE74E86E25E10979DE988D7205E] [fmz-n6ZQPZrNgELEelwhGnM7+w==] [USERA] [sogo-cal] Item found, returned role: 16
[2010-09-14 18:31:44,267] [funambol.sogo] [INFO] [73480BE74E86E25E10979DE988D7205E] [fmz-n6ZQPZrNgELEelwhGnM7+w==] [USERA] [sogo-cal] Looking up roles for USERA object: /USERB/Calendar/personal tablename: sogoUSERB0016fa8afb6_acl
[2010-09-14 18:31:44,267] [funambol.sogo] [INFO] [73480BE74E86E25E10979DE988D7205E] [fmz-n6ZQPZrNgELEelwhGnM7+w==] [USERA] [sogo-cal] Found role: PublicViewer
[2010-09-14 18:31:44,267] [funambol.sogo] [INFO] [73480BE74E86E25E10979DE988D7205E] [fmz-n6ZQPZrNgELEelwhGnM7+w==] [USERA] [sogo-cal] Found role: ConfidentialViewer
[2010-09-14 18:31:44,267] [funambol.sogo] [INFO] [73480BE74E86E25E10979DE988D7205E] [fmz-n6ZQPZrNgELEelwhGnM7+w==] [USERA] [sogo-cal] classification: 16 role: 80 roles: 0
[2010-09-14 18:31:44,267] [funambol.handler] [ERROR] [73480BE74E86E25E10979DE988D7205E] [fmz-n6ZQPZrNgELEelwhGnM7+w==] [USERA] [] Exception processing message
java.lang.NullPointerException
        at com.funambol.server.engine.Sync4jEngine.completeItemInfo(Sync4jEngine.java:1923)
        at com.funambol.server.session.SyncSessionHandler.splitSyncCommand(SyncSessionHandler.java:2674)
        at com.funambol.server.session.SyncSessionHandler.commandsToSend(SyncSessionHandler.java:2591)
        at com.funambol.server.session.SyncSessionHandler.processInitSyncMapMessage(SyncSessionHandler.java:1081)
        at com.funambol.server.session.SyncSessionHandler.processMessage(SyncSessionHandler.java:561)
        at com.funambol.server.engine.SyncAdapter.processInputMessage(SyncAdapter.java:533)
        at com.funambol.server.engine.SyncAdapter.processXMLMessage(SyncAdapter.java:254)
        at com.funambol.transport.http.server.LocalSyncHolder.processXMLMessage(LocalSyncHolder.java:97)
        at com.funambol.transport.http.server.Sync4jServlet.doPost(Sync4jServlet.java:400)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at com.funambol.transport.http.server.LogContextFilter.doFilter(LogContextFilter.java:135)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at com.funambol.transport.http.server.SyncResponseTimeFilter.doFilter(SyncResponseTimeFilter.java:153)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)
error.log (4,414 bytes)   

2010-09-14 17:12

 

successful.log (1,635 bytes)   
[2010-09-14 18:32:24,686] [funambol.sogo] [INFO] [6C4EE97215C7CB1D532C23A72302C0DE] [fmz-n6ZQPZrNgELEelwhGnM7+w==] [USERA] [sogo-cal] getSyncItemFromId( { keyValue: 70A3-4C8FA280-D-31FE47C0.ics } )
[2010-09-14 18:32:24,687] [funambol.sogo] [INFO] [6C4EE97215C7CB1D532C23A72302C0DE] [fmz-n6ZQPZrNgELEelwhGnM7+w==] [USERA] [sogo-cal] Preferred item type: 2
[2010-09-14 18:32:24,687] [funambol.sogo] [INFO] [6C4EE97215C7CB1D532C23A72302C0DE] [fmz-n6ZQPZrNgELEelwhGnM7+w==] [USERA] [sogo-cal] Getting classification for key: 70A3-4C8FA280-D-31FE47C0.ics in location: sogoUSERB0016fa8afb6
[2010-09-14 18:32:24,687] [funambol.sogo] [INFO] [6C4EE97215C7CB1D532C23A72302C0DE] [fmz-n6ZQPZrNgELEelwhGnM7+w==] [USERA] [sogo-cal] Item found, returned role: 16
[2010-09-14 18:32:24,687] [funambol.sogo] [INFO] [6C4EE97215C7CB1D532C23A72302C0DE] [fmz-n6ZQPZrNgELEelwhGnM7+w==] [USERA] [sogo-cal] Looking up roles for USERA object: /USERB/Calendar/personal tablename: sogoUSERB0016fa8afb6_acl
[2010-09-14 18:32:24,688] [funambol.sogo] [INFO] [6C4EE97215C7CB1D532C23A72302C0DE] [fmz-n6ZQPZrNgELEelwhGnM7+w==] [USERA] [sogo-cal] Found role: PublicViewer
[2010-09-14 18:32:24,688] [funambol.sogo] [INFO] [6C4EE97215C7CB1D532C23A72302C0DE] [fmz-n6ZQPZrNgELEelwhGnM7+w==] [USERA] [sogo-cal] Found role: ConfidentialViewer
[2010-09-14 18:32:24,688] [funambol.sogo] [INFO] [6C4EE97215C7CB1D532C23A72302C0DE] [fmz-n6ZQPZrNgELEelwhGnM7+w==] [USERA] [sogo-cal] Found role: PrivateViewer
[2010-09-14 18:32:24,688] [funambol.sogo] [INFO] [6C4EE97215C7CB1D532C23A72302C0DE] [fmz-n6ZQPZrNgELEelwhGnM7+w==] [USERA] [sogo-cal] classification: 16 role: 80 roles: 48

successful.log (1,635 bytes)   
alcy

alcy

2010-10-20 11:31

reporter   ~0001634

Similar behavior is experienced on Ubuntu 10.04 with the nightly build 1.3.0.20101017. Funambol SOGo connector 1.0.8, Funambol 8.5.2 server and Funambol 8.5.4 Outlook Client.

ludovic

ludovic

2010-10-20 17:38

reporter   ~0001636

There's not much that can be done here.

The connector reads ACLs in the user's folder but the default ACLs, if not changed, will not appear in there and they will only be available from the .GNUstepDefaults - which the connector doesn't have access to.

wcronen

wcronen

2010-10-20 19:52

reporter   ~0001637

The same problem exists if you allow access to a group.

But this problem should be possible to solve. Instead of only testing for the ACLs in the user's folder the ACLs of the group in which the user is member should also be tested.

klaasd

klaasd

2010-10-21 18:33

reporter   ~0001638

But as it is, I find it very unsatisfying because the web GUI and the CalDAV clients show a very different behavior than the SyncML clients. I guess that most people will get stuck with configuring access to other user's calendars in their SyncML client. It took me quite some time until I found the reason for not being able to configure the sharing of calendars for the SyncML clients.

I only found the reason for the strange behavior because I'm the administrator of the system, configured the Funambol server to also log debugging messages and kept reading the log files while playing around with the SyncML client. The error message provided by the SyncML client didn't give any hint how to fix the issue.

Is there a principle behind the fact that the connector can not access the .GNUstepDefaults or the API of SOGo (e.g. security reasons)? Or is it "only" to keep the connector simple and restrict it to directly reading and manipulating the tables of the database?

francis

francis

2021-09-17 15:45

administrator   ~0015462

Funambol is no longer supported.

Issue History

Date Modified Username Field Change
2010-09-14 17:11 klaasd New Issue
2010-09-14 17:11 klaasd File Added: error.log
2010-09-14 17:12 klaasd File Added: successful.log
2010-10-20 11:31 alcy Note Added: 0001634
2010-10-20 17:38 ludovic Note Added: 0001636
2010-10-20 19:52 wcronen Note Added: 0001637
2010-10-21 18:33 klaasd Note Added: 0001638
2021-09-17 15:45 francis Status new => closed
2021-09-17 15:45 francis Resolution open => won't fix
2021-09-17 15:45 francis Note Added: 0015462