SOGo | BTS

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003947SOGoBackend Address Bookpublic2016-12-16 05:242019-03-31 11:17
Reporterckreutzer 
Assigned Toludovic 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionsuspended 
Platform[Server] LinuxOSDebianOS Version8 (Jessie)
Product Versionnightly master 
Target VersionFixed in Version 
Summary0003947: Since LDAP photo change: Exception when accessing contact with photo
DescriptionSince the change for LDAP contact photos was made, I get an exception when opening a contact in the web address book which as a photo attached. See additional information for the log.

In my environment, we store the photos in the jpegPhoto attribute. I tried it without a mapping for "photo" and with the following mapping in sogo.conf:
mapping = {
    photo = ("jpegPhoto");
    mozillanickname = ("nickname");
    mozillasecondemail = ("mailAlternateAddress");
};
However, it crashes in both setups.

Can I provide more information/evidence?
Steps To Reproduce1) Opening Web Address Book
2) Select shared LDAP address book
3) select a contact which has a photo attached
Additional InformationEXCEPTION: <NSException: 0x7f3b71eb8fc0> NAME:NSInvalidArgumentException REASON:GSInlineArray(instance) does not recognize canBeConvertedToEncoding: INFO:(null)
Dec 16 11:13:24 sogod [10799]: <0x0x7f3b71a47140[WOWatchDogChild]> child 10812 exited
Dec 16 11:13:24 sogod [10799]: <0x0x7f3b71a47140[WOWatchDogChild]> (terminated due to signal 6)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
User avatar (0011017)
ludovic (administrator)
2016-12-19 10:15

Produce a stack trace please:

https://sogo.nu/nc/support/faq/article/how-do-i-debug-sogo.html [^]
(0011018)
ckreutzer (reporter)
2016-12-19 10:33

Hi ludovic

here it is:

Breakpoint 1, -[NSException raise] (self=0x5555562f3a60, _cmd=0x7ffff5873fc0 <_OBJC_SELECTOR_TABLE+384>) at NSException.m:960
960 NSException.m: Keine Berechtigung.
(gdb) bt
#0 -[NSException raise] (self=0x5555562f3a60, _cmd=0x7ffff5873fc0 <_OBJC_SELECTOR_TABLE+384>) at NSException.m:960
0000001 0x00007ffff538a7a3 in +[NSException raise:format:] (self=0x7ffff58742c0 <_OBJC_Class_NSException>, _cmd=<optimized out>, name=0x7ffff5874950 <_OBJC_INSTANCE_4>, format=0x7ffff58a37b0 <_OBJC_INSTANCE_10>)
    at NSException.m:840
0000002 0x00007ffff53de7f6 in -[NSObject doesNotRecognizeSelector:] (self=0x555555be8410, _cmd=<optimized out>, aSelector=<optimized out>) at NSObject.m:1765
0000003 0x00007ffff549efd3 in GSFFIInvocationCallback (cif=0x5555562f3a60, retp=0x7fffffffb420, args=0x5555562f3880, user=0x5555562f3ad0) at GSFFIInvocation.m:629
0000004 0x00007ffff1828baf in ffi_closure_unix64_inner () from /usr/lib/x86_64-linux-gnu/libffi.so.6
0000005 0x00007ffff1828f28 in ffi_closure_unix64 () from /usr/lib/x86_64-linux-gnu/libffi.so.6
0000006 0x00007ffff52f77cc in transmute (aString=<optimized out>, self=<optimized out>) at GSString.m:3296
0000007 -[GSMutableString replaceCharactersInRange:withString:] (self=0x5555562f1ae0, _cmd=0x2, aRange=..., aString=0x555555be8410) at GSString.m:5016
0000008 0x00007ffff5430878 in -[NSMutableString appendString:] (self=0x5555562f1ae0, _cmd=<optimized out>, aString=0x555555be8410) at NSString.m:5846
0000009 0x00007ffff703d6f2 in -[CardElement flattenedValuesForKey:] (self=0x55555613f300, _cmd=0x7ffff7dd5160 <_OBJC_SELECTOR_TABLE+224>, key=0x7ffff7dd4f60 <_OBJC_INSTANCE_3>) at CardElement.m:271
0000010 0x00007ffff7b68bbe in -[CardElement(SOGoExtensions) jsonRepresentation] (self=0x55555613f300, _cmd=0x7ffff7dc0440 <_OBJC_SELECTOR_TABLE+384>) at CardElement+SOGo.m:86
0000011 0x00007ffff7b50512 in -[NSArray(SOGoArrayUtilities) jsonRepresentation] (self=0x5555560374b0, _cmd=0x7ffff7dc2350 <_OBJC_SELECTOR_TABLE+208>) at NSArray+Utilities.m:235
0000012 0x00007ffff7b522fa in -[NSDictionary(SOGoDictionaryUtilities) jsonRepresentation] (self=0x555556063b50, _cmd=0x7fffea2af120 <_OBJC_SELECTOR_TABLE+1056>) at NSDictionary+Utilities.m:62
0000013 0x00007fffea09d4dc in -[UIxContactView dataAction] (self=0x5555563f2ff0, _cmd=0x5555561e9050) at UIxContactView.m:378
0000014 0x00007ffff6c3a90b in -[WOComponent(DirectActionExtensions) performActionNamed:] (self=0x5555563f2ff0, _cmd=0x7fffea908af0 <_OBJC_SELECTOR_TABLE+1840>, _actionName=0x555556141a40) at WOPageRequestHandler.m:245
0000015 0x00007fffea6ff1a5 in -[UIxComponent performActionNamed:] (self=0x5555563f2ff0, _cmd=0x7ffff6ff24e0 <_OBJC_SELECTOR_TABLE+928>, _actionName=0x555555abb830) at UIxComponent.m:782
0000016 0x00007ffff6cb85cc in -[SoActionInvocation callOnObject:withPositionalParametersWhenNotNil:inContext:] (self=0x55555629ad70, _cmd=0x7ffff6ff2510 <_OBJC_SELECTOR_TABLE+976>, _client=0x55555611f2c0,
    _positionalArgs=0x0, _ctx=0x5555563f5b20) at SoActionInvocation.m:300
0000017 0x00007ffff6cb86f8 in -[SoActionInvocation callOnObject:inContext:] (self=0x55555629ad70, _cmd=0x7ffff6ff2430 <_OBJC_SELECTOR_TABLE+752>, _client=0x55555611f2c0, _ctx=0x5555563f5b20) at SoActionInvocation.m:316
0000018 0x00007ffff6cb8340 in -[SoActionInvocation callOnObject:withPositionalParametersWhenNotNil:inContext:] (self=0x555555abb7a0, _cmd=0x7ffff6ff2510 <_OBJC_SELECTOR_TABLE+976>, _client=0x55555611f2c0,
    _positionalArgs=0x0, _ctx=0x5555563f5b20) at SoActionInvocation.m:259
0000019 0x00007ffff6cb86f8 in -[SoActionInvocation callOnObject:inContext:] (self=0x555555abb7a0, _cmd=0x7ffff6fee920 <_OBJC_SELECTOR_TABLE+672>, _client=0x55555611f2c0, _ctx=0x5555563f5b20) at SoActionInvocation.m:316
0000020 0x00007ffff6cb2cf6 in -[SoObjectMethodDispatcher dispatchInContext:] (self=0x555556068f70, _cmd=0x7ffff6ff0040 <_OBJC_SELECTOR_TABLE+1536>, _ctx=0x5555563f5b20) at SoObjectMethodDispatcher.m:191
0000021 0x00007ffff6cb511c in -[SoObjectRequestHandler handleRequest:inContext:session:application:] (self=0x555555b4efe0, _cmd=0x7ffff6f74450 <_OBJC_SELECTOR_TABLE+848>, _rq=0x5555561e0130, _ctx=0x5555563f5b20,
    _sn=0x0, app=0x555555891d20) at SoObjectRequestHandler.m:584
0000022 0x00007ffff6c3c685 in -[WORequestHandler handleRequest:] (self=0x555555b4efe0, _cmd=0x7ffff6f3e110 <_OBJC_SELECTOR_TABLE+1616>, _request=0x5555561e0130) at WORequestHandler.m:237
0000023 0x00007ffff6bfd9cc in -[WOCoreApplication dispatchRequest:usingHandler:] (self=0x555555891d20, _cmd=0x7ffff6f3e160 <_OBJC_SELECTOR_TABLE+1696>, _request=0x5555561e0130, handler=0x555555b4efe0)
    at WOCoreApplication.m:712
0000024 0x00007ffff6bfdcf3 in -[WOCoreApplication dispatchRequest:] (self=0x555555891d20, _cmd=0x555555763df0 <_OBJC_SELECTOR_TABLE+1648>, _request=0x5555561e0130) at WOCoreApplication.m:752
0000025 0x000055555555c994 in -[SOGo dispatchRequest:] (self=0x555555891d20, _cmd=0x7ffff6fd8760 <_OBJC_SELECTOR_TABLE+1824>, _request=0x5555561e0130) at SOGo.m:570
0000026 0x00007ffff6ca3cc2 in -[WOHttpTransaction _run] (self=0x555556051e80, _cmd=0x7ffff6fd8790 <_OBJC_SELECTOR_TABLE+1872>) at WOHttpTransaction.m:596
0000027 0x00007ffff6ca4038 in -[WOHttpTransaction run] (self=0x555556051e80, _cmd=0x7ffff6fd6450 <_OBJC_SELECTOR_TABLE+1168>) at WOHttpTransaction.m:649
0000028 0x00007ffff6c9fbe0 in -[WOHttpAdaptor runConnection:] (self=0x555555bea560, _cmd=0x7ffff6fd64f0 <_OBJC_SELECTOR_TABLE+1328>, _socket=0x5555562b8370) at WOHttpAdaptor.m:373
0000029 0x00007ffff6c9fe00 in -[WOHttpAdaptor _handleAcceptedConnection:] (self=0x555555bea560, _cmd=0x7ffff6fd6500 <_OBJC_SELECTOR_TABLE+1344>, _connection=0x5555562b8370) at WOHttpAdaptor.m:407
0000030 0x00007ffff6ca020b in -[WOHttpAdaptor _handleConnection:] (self=0x555555bea560, _cmd=0x7ffff6fd65a0 <_OBJC_SELECTOR_TABLE+1504>, connection=0x5555562b8370) at WOHttpAdaptor.m:466
0000031 0x00007ffff6ca0685 in -[WOHttpAdaptor acceptConnection:] (self=0x555555bea560, _cmd=0x7ffff6fd6410 <_OBJC_SELECTOR_TABLE+1104>, _notification=0x555556050a30) at WOHttpAdaptor.m:527
0000032 0x00007ffff53cdd07 in -[NSNotificationCenter _postAndRelease:] (self=0x55555589a380, _cmd=<optimized out>, notification=0x555556050a30) at NSNotificationCenter.m:1307
0000033 0x00007ffff606a622 in -[NSObject(FileObjectWatcher) receivedEvent:type:extra:forMode:] (self=0x555555c1a620, _cmd=0x7ffff592f430 <_OBJC_SELECTOR_TABLE+304>, _fdData=0x7, _type=ET_RDESC, _extra=0x7,
    _mode=0x7ffff58be770 <_OBJC_INSTANCE_2>) at NSRunLoop+FileObjects.m:58
0000034 0x00007ffff54d8b3b in -[GSRunLoopCtxt pollUntil:within:] (self=<optimized out>, _cmd=0x7ffff58bd900 <_OBJC_SELECTOR_TABLE+1216>, milliseconds=<optimized out>, contexts=<optimized out>) at GSRunLoopCtxt.m:642
0000035 0x00007ffff5416840 in -[NSRunLoop acceptInputForMode:beforeDate:] (self=0x555555ba8c60, _cmd=0x7ffff5873fc0 <_OBJC_SELECTOR_TABLE+384>, mode=0x7ffff58be770 <_OBJC_INSTANCE_2>, limit_date=0x555555b501f0)
    at NSRunLoop.m:1217
0000036 0x00007ffff5416cf2 in -[NSRunLoop runMode:beforeDate:] (self=0x555555ba8c60, _cmd=0x555555b24c60, mode=0x7ffff58be770 <_OBJC_INSTANCE_2>, date=0x555555af52c0) at NSRunLoop.m:1288
0000037 0x00007ffff6bfd202 in -[WOCoreApplication run] (self=0x555555891d20, _cmd=0x555555763b20 <_OBJC_SELECTOR_TABLE+928>) at WOCoreApplication.m:584
0000038 0x000055555555bbbe in -[SOGo run] (self=0x555555891d20, _cmd=0x7ffff6f600d0 <_OBJC_SELECTOR_TABLE+208>) at SOGo.m:327
0000039 0x00007ffff6c27289 in WOApplicationMain (_appClassName=0x555555761ac0 <_OBJC_INSTANCE_0>, argc=13, argv=0x7fffffffe648) at WOApplicationMain.m:42
0000040 0x00007ffff6c47ba7 in WOWatchDogApplicationMain (appName=0x555555761ac0 <_OBJC_INSTANCE_0>, argc=13, argv=0x7fffffffe648) at WOWatchDogApplicationMain.m:1049
0000041 0x000055555555a9b9 in main (argc=13, argv=0x7fffffffe648, env=0x7fffffffe6b8) at sogod.m:51
User avatar (0011048)
ludovic (administrator)
2016-12-20 10:46

Attach a full LDIF file with a photo for a contact that generates this exception.
(0011054)
ckreutzer (reporter)
2016-12-20 14:32

I tried to create a minimal working example and found out that it was a field in the UserSource mapping.

The problem was:
mapping = {mozillasecondemail = ("mailAlternateAddress");}
But I'm not sure why. mailAlternateAddress is multi-valued, could that be a problem?

However, mapping = {photo = ("jpegPhoto");} is working fine now!

You can close this issue. Sorry for the trouble!
User avatar (0011055)
ludovic (administrator)
2016-12-20 15:53

I cannot reproduce the issue so I'm closing it for now. If more evidence can be provided, do so.

- Issue History
Date Modified Username Field Change
2016-12-16 05:24 ckreutzer New Issue
2016-12-19 10:15 ludovic Note Added: 0011017
2016-12-19 10:15 ludovic Severity major => minor
2016-12-19 10:33 ckreutzer Note Added: 0011018
2016-12-20 10:46 ludovic Note Added: 0011048
2016-12-20 14:32 ckreutzer Note Added: 0011054
2016-12-20 15:53 ludovic Note Added: 0011055
2016-12-20 15:53 ludovic Status new => resolved
2016-12-20 15:53 ludovic Resolution open => suspended
2016-12-20 15:53 ludovic Assigned To => ludovic


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker