<div dir="ltr">OK  I put caldavzap on  cyrus httpd server<div><br><br></div><div>In Web browser JavaScript console:</div><div><br></div><div>REPORT <a href="http://webserver:8088/dav/principals/user/lucas.carraro/">http://webserver:8088/dav/principals/user/lucas.carraro/</a> net::ERR_EMPTY_RESPONSE<br><br>---------------------------------------------------------------------------------------<br></div><div></div><div><br></div><div>In Cyrus telemetry log:  http-18367<br><br><br></div><div><div>---------- lucas.carraro Wed Apr 29 12:00:15 2015</div><div><br></div><div>&lt;<a href="tel:1430319615" value="+551430319615" target="_blank">1430319615</a>&lt;REPORT /dav/principals/user/lucas.carraro/ HTTP/1.1</div><div>Accept-encoding: gzip, deflate, sdch</div><div>Content-type: text/xml</div><div>Accept-language: pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4</div><div>Origin: <a href="http://webserver:8088" target="_blank">http://webserver:8088</a></div><div>User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2376.0 Safari/537.36</div><div>Host: webserver:8088</div><div>Accept: application/xml, text/xml, */*; q=0.01</div><div>X-client: CalDavZAP 0.12.1 (Inf-IT CalDAV Web Client)</div><div>Connection: keep-alive</div><div>Content-length: 723</div><div>Cookie: agendav_sessid=2f3062c5049a5ec4ab347756128627e4</div><div>X-requested-with: XMLHttpRequest</div><div>Authorization: Basic ...                             </div><div>Depth: 0</div><div>Referer: <a href="http://mail.icict.fiocruz.br:8088/caldavzap/index.html" target="_blank">http://mail.icict.fiocruz.br:8088/caldavzap/index.html</a></div><div><br></div><div>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&lt;A:expand-property xmlns:A=&quot;DAV:&quot;&gt;&lt;A:property name=&quot;calendar-proxy-read-for&quot; namespace=&quot;<a href="http://calendarserver.org/ns/" target="_blank">http://calendarserver.org/ns/</a>&quot;&gt;&lt;A:property name=&quot;email-address-set&quot; namespace=&quot;<a href="http://calendarserver.org/ns/" target="_blank">http://calendarserver.org/ns/</a>&quot;/&gt;&lt;A:property name=&quot;displayname&quot; namespace=&quot;DAV:&quot;/&gt;&lt;A:property name=&quot;calendar-user-address-set&quot; namespace=&quot;urn:ietf:params:xml:ns:caldav&quot;/&gt;&lt;/A:property&gt;&lt;A:property name=&quot;calendar-proxy-write-for&quot; namespace=&quot;<a href="http://calendarserver.org/ns/" target="_blank">http://calendarserver.org/ns/</a>&quot;&gt;&lt;A:property name=&quot;email-address-set&quot; namespace=&quot;<a href="http://calendarserver.org/ns/" target="_blank">http://calendarserver.org/ns/</a>&quot;/&gt;&lt;A:property name=&quot;displayname&quot; namespace=&quot;DAV:&quot;/&gt;&lt;A:property name=&quot;calendar-user-address-set&quot; namespace=&quot;urn:ietf:params:xml:ns:caldav&quot;/&gt;&lt;/A:property&gt;&lt;/A:expand-property&gt;<br> <br></div></div><div>----------------------<br><br></div><div>In config.js<br><br>var globalNetworkCheckSettings={href: &#39;<a href="http://webserver:8088/dav/principals/user/">http://webserver:8088/dav/principals/user/</a>&#39;, hrefLabel: null, additionalResources: [], forceReadOnly: null, settingsAccount: true, timeOut: 90000, lockTimeOut: 10000, delegation: true, backgroundCalendars: [], ignoreAlarms: false}<br><br>------------------<br></div><div><br></div><div>Another idea ?<br><br><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 29, 2015 at 9:56 AM, Ken Murchison <span dir="ltr">&lt;<a href="mailto:murch@andrew.cmu.edu" target="_blank">murch@andrew.cmu.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><span class="">
    <div>On 04/29/2015 08:41 AM, Lucas Zinato
      Carraro wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>How to set  document root to dcyrus httpd?   <br>
          Only put<br>
          <br>
          httpdocroot: /var/lib/cyrus/htdocs ?<br>
        </div>
        <br>
        in imapd.conf  or is necessary to configure another option ?<br>
      </div>
    </blockquote>
    <br>
    <br></span>
    That&#39;s all you need.<div><div class="h5"><br>
    <br>
    <br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div><br>
          <br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Apr 29, 2015 at 8:51 AM, Ken
          Murchison <span dir="ltr">&lt;<a href="mailto:murch@andrew.cmu.edu" target="_blank">murch@andrew.cmu.edu</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"><span>
                <div>On 04/28/2015 11:27 PM, Lucas Zinato Carraro wrote:<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div>caldavzap  is in another server.</div>
                  </div>
                </blockquote>
                <br>
              </span> Why not just have Cyrus HTTP serve up CalDAVZAP? 
              This will avoid the cross-origin requests the JavasScript
              is complaining about.<span><br>
                <br>
                <br>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div><br>
                    </div>
                    <div>----</div>
                    <div><br>
                    </div>
                    <div>I debug more and find this log in JavaScript
                      console.</div>
                    <div><br>
                    </div>
                    <div>XMLHttpRequest cannot load <a href="http://mailserver.com:8088/dav/principals/user/" target="_blank">http://mailserver.com:8088/dav/principals/user/</a>.
                      No &#39;Access-Control-Allow-Origin&#39; header is present
                      on the requested resource. Origin &#39;<a href="http://webserver.com" target="_blank">http://webserver.com</a>&#39;
                      is therefore not allowed access.<br>
                    </div>
                    <div><br>
                    </div>
                    <div>---</div>
                    <div><br>
                    </div>
                    <div>Anyway to put this specific header  in cyrus
                      httpd ?</div>
                  </div>
                </blockquote>
                <br>
              </span> Try setting the httpallowcors option in
              imap.conf.  This should enable the cross-origin headers,
              <div>
                <div><br>
                  <br>
                  <br>
                  <br>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div><br>
                      </div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On Mon, Apr 27, 2015 at
                        8:25 AM, Ken Murchison <span dir="ltr">&lt;<a href="mailto:murch@andrew.cmu.edu" target="_blank">murch@andrew.cmu.edu</a>&gt;</span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                          <div bgcolor="#FFFFFF" text="#000000">
                            <div>
                              <div>
                                <div>On 04/17/2015 10:17 AM, Lucas
                                  Zinato Carraro wrote:<br>
                                </div>
                                <blockquote type="cite">
                                  <div dir="ltr">
                                    <div>  I&#39;m testing Cyrus Caldav (
                                      2.4.17+beta9 )  with several
                                      clients iCal, Lightning,
                                      AgendaDAV, Evolution .</div>
                                    <div><br>
                                    </div>
                                    <div>Unfortunately, I could not
                                      configure  with the CalDavZAP
                                      0.12.1</div>
                                    <div><br>
                                    </div>
                                    <div>I follow the procedure to 2.5.0
                                      ( <a href="http://cyrusimap.org/docs/cyrus-imapd/2.5.0/install-http.php" target="_blank">http://cyrusimap.org/docs/cyrus-imapd/2.5.0/install-http.php</a>)</div>
                                    <div><br>
                                    </div>
                                    <div>---</div>
                                    <div>In cyrus.conf</div>
                                    <div><br>
                                    </div>
                                    <div>SERVICES {</div>
                                    <div><br>
                                    </div>
                                    <div> ..........</div>
                                    <div> http            cmd=&quot;httpd&quot;
                                       listen=&quot;8088&quot; prefork=0
                                      maxchild=400<br>
                                    </div>
                                    <div> .........</div>
                                    <div>}</div>
                                    <div><br>
                                    </div>
                                    <div>---</div>
                                    <div><br>
                                    </div>
                                    <div>In caldav/config.js</div>
                                    <div><br>
                                    </div>
                                    <div>var
                                      globalNetworkCheckSettings={href:
                                      &#39;<a href="http://mail.icict.fiocruz.br:8088/dav/principals/user/" target="_blank">http://myserver.com:8088/dav/principals/user/</a>&#39;,


                                      hrefLabel: null,
                                      additionalResources: [],
                                      forceReadOnly: null,
                                      settingsAccount: true, timeOut:
                                      90000, lockTimeOut: 10000,
                                      delegation: true,
                                      backgroundCalendars: [],
                                      ignoreAlarms: false}<br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div>....</div>
                                    <div>
                                      <div>var
                                        globalSettingsType=&#39;calendar-home-set&#39;;</div>
                                    </div>
                                    <div>....</div>
                                    <div><br>
                                    </div>
                                    <div>Any suggestion ?</div>
                                    <br>
                                  </div>
                                </blockquote>
                                <br>
                              </div>
                            </div>
                            Have you placed all of the CalDAVZap files
                            in a location within your Cyrus &#39;htdocs&#39;
                            directory?  <br>
                            Are they readable by the Cyrus user?<br>
                            Do you have a trailing &#39;/&#39; in the URL when
                            you try to access CalDAVZap (e.g. <a href="http://myserver.com:8088/caldavzap/" target="_blank">http://myserver.com:8088/caldavzap/</a>)
                            ?<br>
                            Are you seeing any kind of errors in
                            syslog?  <br>
                            Have you enabled any kind of logging in your
                            browser?<span><font color="#888888"><br>
                                <pre cols="72">-- 
Kenneth Murchison
Principal Systems Software Engineer
Carnegie Mellon University
</pre>
                              </font></span></div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                  <br>
                  <pre cols="72">-- 
Kenneth Murchison
Principal Systems Software Engineer
Carnegie Mellon University
</pre>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <br>
    <pre cols="72">-- 
Kenneth Murchison
Principal Systems Software Engineer
Carnegie Mellon University
</pre>
  </div></div></div>

</blockquote></div><br></div>