<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">You could also test with CalDAVZap
      0.11.x <br>
      <br>
      <br>
      <br>
      On 04/29/2015 11:09 AM, Lucas Zinato Carraro wrote:<br>
    </div>
    <blockquote
cite="mid:CAAJ87ej06czgPZiEPEJqFUfTiyg3Ptp6Q4xfPWfg=gRrKqy7kQ@mail.gmail.com"
      type="cite">
      <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 moz-do-not-send="true"
            href="http://webserver:8088/dav/principals/user/lucas.carraro/">http://webserver:8088/dav/principals/user/lucas.carraro/</a>
          <a class="moz-txt-link-freetext" href="net::ERR_EMPTY_RESPONSE">net::ERR_EMPTY_RESPONSE</a><br>
          <br>
---------------------------------------------------------------------------------------<br>
        </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 moz-do-not-send="true" 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 moz-do-not-send="true"
              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 moz-do-not-send="true"
              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="1.0"
            encoding="utf-8"?&gt;&lt;A:expand-property
            xmlns:A="DAV:"&gt;&lt;A:property
            name="calendar-proxy-read-for" namespace="<a
              moz-do-not-send="true"
              href="http://calendarserver.org/ns/" target="_blank">http://calendarserver.org/ns/</a>"&gt;&lt;A:property
            name="email-address-set" namespace="<a
              moz-do-not-send="true"
              href="http://calendarserver.org/ns/" target="_blank">http://calendarserver.org/ns/</a>"/&gt;&lt;A:property
            name="displayname" namespace="DAV:"/&gt;&lt;A:property
            name="calendar-user-address-set"
            namespace="urn:ietf:params:xml:ns:caldav"/&gt;&lt;/A:property&gt;&lt;A:property
            name="calendar-proxy-write-for" namespace="<a
              moz-do-not-send="true"
              href="http://calendarserver.org/ns/" target="_blank">http://calendarserver.org/ns/</a>"&gt;&lt;A:property
            name="email-address-set" namespace="<a
              moz-do-not-send="true"
              href="http://calendarserver.org/ns/" target="_blank">http://calendarserver.org/ns/</a>"/&gt;&lt;A:property
            name="displayname" namespace="DAV:"/&gt;&lt;A:property
            name="calendar-user-address-set"
namespace="urn:ietf:params:xml:ns:caldav"/&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: '<a
            moz-do-not-send="true"
            href="http://webserver:8088/dav/principals/user/">http://webserver:8088/dav/principals/user/</a>',
          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 moz-do-not-send="true"
              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'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
                            moz-do-not-send="true"
                            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
                                      moz-do-not-send="true"
                                      href="http://mailserver.com:8088/dav/principals/user/"
                                      target="_blank">http://mailserver.com:8088/dav/principals/user/</a>.
                                    No 'Access-Control-Allow-Origin'
                                    header is present on the requested
                                    resource. Origin '<a
                                      moz-do-not-send="true"
                                      href="http://webserver.com"
                                      target="_blank">http://webserver.com</a>'
                                    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
                                          moz-do-not-send="true"
                                          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'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
                                                      moz-do-not-send="true"
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="httpd"
                                                     listen="8088"
                                                    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:
                                                    '<a
                                                      moz-do-not-send="true"
href="http://mail.icict.fiocruz.br:8088/dav/principals/user/"
                                                      target="_blank">http://myserver.com:8088/dav/principals/user/</a>',



                                                    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='calendar-home-set';</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 'htdocs'
                                          directory?  <br>
                                          Are they readable by the Cyrus
                                          user?<br>
                                          Do you have a trailing '/' in
                                          the URL when you try to access
                                          CalDAVZap (e.g. <a
                                            moz-do-not-send="true"
                                            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>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Kenneth Murchison
Principal Systems Software Engineer
Carnegie Mellon University
</pre>
  </body>
</html>