ONLYOFFICE / CommunityServer

Free open source office suite with business productivity tools: document and project management, CRM, mail aggregator.
http://www.onlyoffice.com
Apache License 2.0
2.7k stars 612 forks source link

(bug) Unable to export CalDav calendar link #189

Open BP-Santo opened 4 years ago

BP-Santo commented 4 years ago

What is the current behavior? OnlyOffice community server fails to provide a CalDav link for syncing remote clients with created calendar.

Screen Shot 2020-01-21 at 03 41 03

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. The link failed to be exported before enabling ssl (using the provided instructions) and also with ssl enabled and working correctly with documentserver. It also failed when connected via different users and for newly created calendars.

I checked which logs where being appended at the moment of clicking 'try again' and only managed to find one relevant entry inside ngnix.access.log:

192.168.88.250 - - [15/Jan/2020:18:54:16 +0000] "GET /api/2.0/calendar/7/caldavurl.json?_=1579114442765 HTTP/1.1" 200 43 "https://onlyoffice-docker.liquid/addons/calendar/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Safari/605.1.15"

This entry repeats everytime the link is clicked

Host Operating System: Current debian 10, stock netinstall over a fresh VM, used the provided script to deploy document + community server. Both client and host machines are on the same subnet inside a lan and have their local domain names (as seen in the log excerpt) and hostnames resolved by dnsmasq running on a local machine.

I would appreciate any help in troubleshooting this. I have checked all the available posts on similar issues but none where either resolved or suggested further steps.

Carazyda commented 4 years ago

Hello @BP-Santo please specify which version of the community server you are using? Before you configuring ssl, CalDav link worked, right? And please check web.log and web.api.log for errors.

BP-Santo commented 4 years ago

@Carazyda Hi - the link din't work before configuring ssl. I found a forum post mentioning a possible fix where the link would start working after enabling ssl so that was my first course of action.

I will try to generate the link again and append the mentioned logs in a moment.

BP-Santo commented 4 years ago

Running bash opensource-install.sh -u true (the community edition server was deployed using the script):

Install with Docker [Y/N/C]? y
The latest version of ONLYOFFICE DOCUMENT SERVER is already installed.
03022f7170aae95c635eab5fb5d4ad7699a0fc394f64b55a630794dfaaae5152
mail domain is not specified.
The latest version of ONLYOFFICE COMMUNITY SERVER is already installed.
c83dbe64120630cb8ccadec090e5e0d863b73f4b2f577229264ff7f76e3f62cf

Mentioned logs after creating a new calendar and retrying the link creation a few times:

from /app/onlyoffice/CommunityServer/logs/web.log:

2020-01-21 08:46:14,129 ERROR [24] ASC.Calendar - System.Net.WebException: Error: TrustFailure (Authentication failed, see inner exception.) ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. ---> Mono.Btls.MonoBtlsException: Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
  at /build/mono-6.6.0.161/external/boringssl/ssl/handshake_client.c:1132
  at Mono.Btls.MonoBtlsContext.ProcessHandshake () [0x00048] in <dfe42095fd31410e95d8021f755c3557>:0 
  at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status, System.Boolean renegotiate) [0x000da] in <dfe42095fd31410e95d8021f755c3557>:0 
  at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Mono.Net.Security.AsyncOperationStatus,bool)
  at Mono.Net.Security.AsyncHandshakeRequest.Run (Mono.Net.Security.AsyncOperationStatus status) [0x00006] in <dfe42095fd31410e95d8021f755c3557>:0 
  at Mono.Net.Security.AsyncProtocolRequest.ProcessOperation (System.Threading.CancellationToken cancellationToken) [0x000fc] in <dfe42095fd31410e95d8021f755c3557>:0 
   --- End of inner exception stack trace ---
  at Mono.Net.Security.MobileAuthenticatedStream.ProcessAuthentication (System.Boolean runSynchronously, Mono.Net.Security.MonoSslAuthenticationOptions options, System.Threading.CancellationToken cancellationToken) [0x00262] in <dfe42095fd31410e95d8021f755c3557>:0 
  at Mono.Net.Security.MonoTlsStream.CreateStream (System.Net.WebConnectionTunnel tunnel, System.Threading.CancellationToken cancellationToken) [0x00176] in <dfe42095fd31410e95d8021f755c3557>:0 
  at System.Net.WebConnection.CreateStream (System.Net.WebOperation operation, System.Boolean reused, System.Threading.CancellationToken cancellationToken) [0x001ba] in <dfe42095fd31410e95d8021f755c3557>:0 
   --- End of inner exception stack trace ---
  at System.Net.WebConnection.CreateStream (System.Net.WebOperation operation, System.Boolean reused, System.Threading.CancellationToken cancellationToken) [0x0021a] in <dfe42095fd31410e95d8021f755c3557>:0 
  at System.Net.WebConnection.InitConnection (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x00141] in <dfe42095fd31410e95d8021f755c3557>:0 
  at System.Net.WebOperation.Run () [0x0009a] in <dfe42095fd31410e95d8021f755c3557>:0 
  at System.Net.WebCompletionSource`1[T].WaitForCompletion () [0x00094] in <dfe42095fd31410e95d8021f755c3557>:0 
  at System.Net.HttpWebRequest.GetRequestStream () [0x00016] in <dfe42095fd31410e95d8021f755c3557>:0 
  at ASC.Api.Calendar.CalendarApi.CreateCalDavCalendar (System.String name, System.String description, System.String backgroundColor, System.String calDavGuid, System.Uri myUri, System.String currentUserName, System.String email, System.String currentAccountPaswd, System.Boolean isSharedCalendar) [0x00227] in <14d7b3623000444e9b14d611ecd16174>:0  System.Net.WebException: Error: TrustFailure (Authentication failed, see inner exception.) ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. ---> Mono.Btls.MonoBtlsException: Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
  at /build/mono-6.6.0.161/external/boringssl/ssl/handshake_client.c:1132
  at Mono.Btls.MonoBtlsContext.ProcessHandshake () [0x00048] in <dfe42095fd31410e95d8021f755c3557>:0 
  at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status, System.Boolean renegotiate) [0x000da] in <dfe42095fd31410e95d8021f755c3557>:0 
  at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Mono.Net.Security.AsyncOperationStatus,bool)
  at Mono.Net.Security.AsyncHandshakeRequest.Run (Mono.Net.Security.AsyncOperationStatus status) [0x00006] in <dfe42095fd31410e95d8021f755c3557>:0 
  at Mono.Net.Security.AsyncProtocolRequest.ProcessOperation (System.Threading.CancellationToken cancellationToken) [0x000fc] in <dfe42095fd31410e95d8021f755c3557>:0 
   --- End of inner exception stack trace ---
  at Mono.Net.Security.MobileAuthenticatedStream.ProcessAuthentication (System.Boolean runSynchronously, Mono.Net.Security.MonoSslAuthenticationOptions options, System.Threading.CancellationToken cancellationToken) [0x00262] in <dfe42095fd31410e95d8021f755c3557>:0 
  at Mono.Net.Security.MonoTlsStream.CreateStream (System.Net.WebConnectionTunnel tunnel, System.Threading.CancellationToken cancellationToken) [0x00176] in <dfe42095fd31410e95d8021f755c3557>:0 
  at System.Net.WebConnection.CreateStream (System.Net.WebOperation operation, System.Boolean reused, System.Threading.CancellationToken cancellationToken) [0x001ba] in <dfe42095fd31410e95d8021f755c3557>:0 
   --- End of inner exception stack trace ---
  at System.Net.WebConnection.CreateStream (System.Net.WebOperation operation, System.Boolean reused, System.Threading.CancellationToken cancellationToken) [0x0021a] in <dfe42095fd31410e95d8021f755c3557>:0 
  at System.Net.WebConnection.InitConnection (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x00141] in <dfe42095fd31410e95d8021f755c3557>:0 
  at System.Net.WebOperation.Run () [0x0009a] in <dfe42095fd31410e95d8021f755c3557>:0 
  at System.Net.WebCompletionSource`1[T].WaitForCompletion () [0x00094] in <dfe42095fd31410e95d8021f755c3557>:0 
  at System.Net.HttpWebRequest.GetRequestStream () [0x00016] in <dfe42095fd31410e95d8021f755c3557>:0 
  at ASC.Api.Calendar.CalendarApi.CreateCalDavCalendar (System.String name, System.String description, System.String backgroundColor, System.String calDavGuid, System.Uri myUri, System.String currentUserName, System.String email, System.String currentAccountPaswd, System.Boolean isSharedCalendar) [0x00227] in <14d7b3623000444e9b14d611ecd16174>:0 

from /app/onlyoffice/CommunityServer/logs/web.api.log:

2020-01-15 00:16:38,475 ERROR [6] ASC.Api - method error: http://127.0.0.1/api/2.0/mailserver/server.json?__=935782 - Server error System.Exception: Mail Server not configured
  at ASC.Mail.Core.Engine.ServerEngine.GetOrCreate (ASC.Mail.Core.Dao.Interfaces.IDaoFactory daoFactory) [0x00028] in <c3dfd7b17e464ffeb1fac75c120a5e65>:0 
  at ASC.Mail.Core.Engine.ServerEngine.GetMailServer (ASC.Mail.Core.Dao.Interfaces.IDaoFactory daoFactory) [0x00000] in <c3dfd7b17e464ffeb1fac75c120a5e65>:0 
  at ASC.Mail.Core.Engine.ServerEngine.GetMailServer () [0x00018] in <c3dfd7b17e464ffeb1fac75c120a5e65>:0 
  at ASC.Api.MailServer.MailServerApi.GetMailServer () [0x0000b] in <bf396ea8310c4c319e20f06bc56b61b0>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
Carazyda commented 4 years ago

How do you generate a ssl certificate, is it valid? Are you sure, that without ssl - caldav link didn't work? And please specify version of mono in the community server container.

BP-Santo commented 4 years ago

Yes without ssl the caldav link definitely din't work. This was my first attempt at getting only office to work so I followed these instructions for generating a self signed certificate: https://helpcenter.onlyoffice.com/server/docker/community/run-using-https.aspx

printout from docker ps:

CONTAINER ID        IMAGE                                    COMMAND                  CREATED             STATUS              PORTS                                                                                                                               NAMES
c83dbe641206        onlyoffice/communityserver:10.5.1.1028   "/usr/bin/dumb-init …"   3 weeks ago         Up 37 hours         0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 3306/tcp, 5280/tcp, 9865-9866/tcp, 9871/tcp, 9882/tcp, 0.0.0.0:5222->5222/tcp, 9888/tcp   onlyoffice-community-server
03022f7170aa        onlyoffice/documentserver:5.4.2.46       "/bin/sh -c /app/ds/…"   3 weeks ago         Up 37 hours         80/tcp, 443/tcp                                                                                                                     onlyoffice-document-server
b71355e98cb9        mysql:5.7.26                             "docker-entrypoint.s…"   3 weeks ago         Up 37 hours         3306/tcp, 33060/tcp                                                                                                                 onlyoffice-mysql-server

printout from sudo docker exec c83dbe641206 mono --version:

Mono JIT compiler version 6.6.0.161 (tarball Tue Dec 10 10:36:32 UTC 2019)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug 
    Interpreter:   yes
    LLVM:          yes(610)
    Suspend:       hybrid
    GC:            sgen (concurrent by default)
Carazyda commented 4 years ago

We think this error in web.log (OPENSSL_internal:CERTIFICATE_VERIFY_FAILED) was due to self-signed certificates. Can you configure your server without ssl and check for errors in web.log, after clicking generate caldav link?

BP-Santo commented 4 years ago

I have created a new VM just in case and redeployed onlyoffice community edition server with a freshly pulled script and then sudo bash opensource-install.sh -ims false which completed successfully. I opened the welcome page to enter the new password and it unfortunately cannot generate the link just like before. Screen Shot 2020-01-21 at 13 09 12

This is the complete output from web.log, I tried with the default calendar a few times then created a brand new calendar and tried with that just in case.

2020-01-21 12:04:16,282 ERROR [26] ASC.Notify - [Welcome to ONLYOFFICE!] sended to [(borys.pominake@gmail.com)] over email.sender, status: Impossible  System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
File name: 'Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
  at (wrapper managed-to-native) System.MonoCustomAttrs.GetCustomAttributesInternal(System.Reflection.ICustomAttributeProvider,System.Type,bool)
  at System.MonoCustomAttrs.GetCustomAttributesBase (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inheritedOnly) [0x00013] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.MonoCustomAttrs.GetCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inherit) [0x00037] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.RuntimeType.GetCustomAttributes (System.Type attributeType, System.Boolean inherit) [0x00038] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.Attribute.GetCustomAttributes (System.Reflection.MemberInfo element, System.Type type, System.Boolean inherit) [0x00088] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.Attribute.GetCustomAttribute (System.Reflection.MemberInfo element, System.Type attributeType, System.Boolean inherit) [0x00000] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.Reflection.CustomAttributeExtensions.GetCustomAttribute (System.Reflection.MemberInfo element, System.Type attributeType, System.Boolean inherit) [0x00000] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.Reflection.CustomAttributeExtensions.GetCustomAttribute[T] (System.Reflection.MemberInfo element, System.Boolean inherit) [0x00000] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.ServiceModel.Configuration.ConfigUtil.GetTypeFromConfigString (System.String name, System.ServiceModel.Configuration.NamedConfigCategory category) [0x000fd] in <86523f1df55d4bb386f107693548637d>:0 
  at System.ServiceModel.ChannelFactory.ApplyConfiguration (System.String configurationName) [0x000e8] in <86523f1df55d4bb386f107693548637d>:0 
  at System.ServiceModel.ChannelFactory.InitializeEndpoint (System.String configurationName, System.ServiceModel.EndpointAddress address) [0x00021] in <86523f1df55d4bb386f107693548637d>:0 
  at System.ServiceModel.ChannelFactory`1[TChannel]..ctor (System.String endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) [0x00014] in <86523f1df55d4bb386f107693548637d>:0 
  at System.ServiceModel.ClientBase`1[TChannel].Initialize (System.ServiceModel.InstanceContext instance, System.String endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) [0x00000] in <86523f1df55d4bb386f107693548637d>:0 
  at System.ServiceModel.ClientBase`1[TChannel]..ctor (System.ServiceModel.InstanceContext callbackInstance, System.String endpointConfigurationName) [0x00022] in <86523f1df55d4bb386f107693548637d>:0 
  at System.ServiceModel.ClientBase`1[TChannel]..ctor (System.ServiceModel.InstanceContext callbackInstance) [0x00000] in <86523f1df55d4bb386f107693548637d>:0 
  at System.ServiceModel.ClientBase`1[TChannel]..ctor () [0x00000] in <86523f1df55d4bb386f107693548637d>:0 
  at ASC.Common.Module.BaseWcfClient`1[TService]..ctor () [0x00000] in <700723969c6046a49d869c2c4d908b24>:0 
  at ASC.Core.Notify.NotifyServiceClient..ctor () [0x00000] in <eac6fafcf44744ffa1555548c8cd1ec5>:0 
  at ASC.Core.Notify.Senders.NotifyServiceSender.Send (ASC.Notify.Messages.NotifyMessage m) [0x00000] in <eac6fafcf44744ffa1555548c8cd1ec5>:0 
  at ASC.Core.Notify.EmailSenderSink.ProcessMessage (ASC.Notify.Messages.INoticeMessage message) [0x0003e] in <eac6fafcf44744ffa1555548c8cd1ec5>:0 
2020-01-21 12:11:19,847 ERROR [11] ASC.Calendar - System.Net.WebException: The remote server returned an error: (403) Forbidden.
  at System.Net.HttpWebRequest.GetResponseFromData (System.Net.WebResponseStream stream, System.Threading.CancellationToken cancellationToken) [0x00146] in <dfe42095fd31410e95d8021f755c3557>:0 
  at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <dfe42095fd31410e95d8021f755c3557>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00016] in <dfe42095fd31410e95d8021f755c3557>:0 
  at ASC.Api.Calendar.CalendarApi.CreateCalDavCalendar (System.String name, System.String description, System.String backgroundColor, System.String calDavGuid, System.Uri myUri, System.String currentUserName, System.String email, System.String currentAccountPaswd, System.Boolean isSharedCalendar) [0x0024c] in <14d7b3623000444e9b14d611ecd16174>:0  System.Net.WebException: The remote server returned an error: (403) Forbidden.
  at System.Net.HttpWebRequest.GetResponseFromData (System.Net.WebResponseStream stream, System.Threading.CancellationToken cancellationToken) [0x00146] in <dfe42095fd31410e95d8021f755c3557>:0 
  at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <dfe42095fd31410e95d8021f755c3557>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00016] in <dfe42095fd31410e95d8021f755c3557>:0 
  at ASC.Api.Calendar.CalendarApi.CreateCalDavCalendar (System.String name, System.String description, System.String backgroundColor, System.String calDavGuid, System.Uri myUri, System.String currentUserName, System.String email, System.String currentAccountPaswd, System.Boolean isSharedCalendar) [0x0024c] in <14d7b3623000444e9b14d611ecd16174>:0 
Carazyda commented 4 years ago

Please check web.api-system.log and radicale.log for errors.

BP-Santo commented 4 years ago

On the fresh host without ssl (I edited out the email address for posterity):

web.api-system.log seems to have a few entries like these:

2020-01-21 12:11:21,724 DEBUG [6] ASC.ApiSystem - Variant of correct auth:ASC radicale:20200121121121:FjNJSfjAQeQVD_LwFxe1_PhR_bU1
2020-01-21 12:11:21,724 INFO [6] ASC.ApiSystem - Auth success auth.allowskip
2020-01-21 12:11:21,724 INFO [6] ASC.ApiSystem.CalDav - CalDav: user:<email address edited out>@gmail.com@192.168.88.60 tenantName:192.168.88.60
2020-01-21 12:11:21,724 ERROR [6] ASC.ApiSystem.CalDav - Tenant not found 192.168.88.60

from radicale.log:

2020-01-21 12:11:21,719 - [7f929b315700] INFO: GET request for '/<email address edited out>@gmail.com@192.168.88.60/053a01f7-8ce6-46b0-b4fc-267307cd7108' received from '172.18.0.1' (forwarded by 127.0.0.1)
2020-01-21 12:11:21,720 - [7f929b315700] DEBUG: Request headers:
{'CONTENT_LENGTH': '',
 'CONTENT_TYPE': 'text/calendar; charset=utf-8',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_AUTHORIZATION': 'Basic **masked**',
 'HTTP_CONNECTION': 'close',
 'HTTP_HOST': 'localhost:5232',
 'HTTP_X_FORWARDED_FOR': '172.18.0.1',
 'HTTP_X_REWRITER_URL': 'http://192.168.88.60',
 'HTTP_X_SCRIPT_NAME': '/caldav',
 'PATH_INFO': '/<email address edited out>@gmail.com@192.168.88.60/053a01f7-8ce6-46b0-b4fc-267307cd7108',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '127.0.0.1',
 'REMOTE_HOST': '',
 'REQUEST_METHOD': 'GET',
 'SCRIPT_NAME': '',
 'SERVER_NAME': 'localhost',
 'SERVER_PORT': '5232',
 'SERVER_PROTOCOL': 'HTTP/1.0',
 'SERVER_SOFTWARE': 'WSGIServer/0.2',
 'wsgi.errors': <_io.StringIO object at 0x7f929d44f8b8>,
 'wsgi.file_wrapper': <class 'wsgiref.util.FileWrapper'>,
 'wsgi.input': <_io.BufferedReader name=7>,
 'wsgi.multiprocess': False,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}
2020-01-21 12:11:21,720 - [7f929b315700] DEBUG: Script name overwritten by client: '/caldav'
2020-01-21 12:11:21,720 - [7f929b315700] DEBUG: Sanitized script name: '/caldav'
2020-01-21 12:11:21,720 - [7f929b315700] DEBUG: Sanitized path: '/<email address edited out>@gmail.com@192.168.88.60/053a01f7-8ce6-46b0-b4fc-267307cd7108'
2020-01-21 12:11:21,721 - [7f929b315700] INFO: Rewrite url '192.168.88.60'
2020-01-21 12:11:21,721 - [7f929b315700] INFO: Authorization. get_external_login: 'Basic Ym9yeXMucG9taW5ha2VAZ21haWwuY29tOnN1Z3hvYi0wZGFxdlUtbnl2anVk'
2020-01-21 12:11:21,721 - [7f929b315700] INFO: Authorization
2020-01-21 12:11:21,721 - [7f929b315700] INFO: Auth token: 'ASC radicale:20200121121121:FjNJSfjAQeQVD/LwFxe1/PhR/bU='
2020-01-21 12:11:21,727 - [7f929b315700] INFO: Return auth result
2020-01-21 12:11:21,727 - [7f929b315700] ERROR: Error login response: {'value': 'false', 'error': 'portalNameNotFound', 'message': 'Portal not found'}
2020-01-21 12:11:21,727 - [7f929b315700] INFO: Failed login attempt: '<email address edited out>@gmail.com@192.168.88.60'
2020-01-21 12:11:21,727 - [7f929b315700] DEBUG: Sleeping 1.315 seconds
2020-01-21 12:11:23,043 - [7f929b315700] DEBUG: Response content:
Access to the requested resource forbidden.
2020-01-21 12:11:23,044 - [7f929b315700] INFO: GET response status for '/<email address edited out>@gmail.com@192.168.88.60/053a01f7-8ce6-46b0-b4fc-267307cd7108' in 1.324 seconds: 403 Forbidden
Carazyda commented 4 years ago

Now please try to setup custom dns in portal settings for ip(if you use ip to access the portal) or domain name(if you use dns).

BP-Santo commented 4 years ago

I din't setup dns for this test host yet and added just the local ip as the custom domain and the link generation seems to finally work! However I am unable to actually access the calendar for instance in Os X Calendar app as it returns an error "Unable to verify username or password". I tried various combinations of manual settings and suspect it would only work if it was using https. Advance settings allows to uncheck the use of ssl however it also demands a port (does not seem to work on port 80) - I am not sure which port onlyoffice might use for caldav connections like these without ssl.

I have tried changing the ssl based host to also use its ip for domain name however that dint help.

Are there any accepted steps to allow the portal to work with a self signed certificates while allowing syncing the calendar with mac clients over caldav?

Thank you for the help!

KaKi87 commented 7 months ago

Hello,

I'm experiencing the same issue ("Link preparation failed" for CalDAV and "Unauthorized" toast notification).

When opening DevTools, I'm noticing the following endpoint : /api/2.0/calendar/2/caldavurl.json?_=XXX

Returning the following content :

{
    "count": 1,
    "status": 0,
    "statusCode": 200,
    "response": {
        "completed": false,
        "statusCode": 401,
        "data": "https:\/\/o.example.com\/caldav\/example%40example.com%40o.example.com\/XXX",
        "error": "Unauthorized"
    }
}

Also, I can't enable CardDAV in /Products/People/CardDavSettings.aspx, which also throws an "Unauthorized" toast notification, and when opening DevTools, the following endpoint : https://o.example.com/api/2.0/settings/carddavurl?__=XXX

Returns the following content :

{
    "status": 1,
    "statusCode": 500,
    "error": {
        "message": "Unauthorized",
        "hresult": -2146233088,
        "data": {}
    }
}

Thanks