~ubuntu-branches/ubuntu/natty/evolution-data-server/natty

« back to all changes in this revision

Viewing changes to calendar/backends/http/e-cal-backend-http.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-03-01 22:47:15 UTC
  • mfrom: (1.1.77 upstream)
  • Revision ID: james.westby@ubuntu.com-20100301224715-drsxc2y3t8anz3c0
Tags: 2.28.3-0ubuntu1
* New upstream version:
  Bug Fixes:
  - #602723 - Contact list name doesn't get displayed in 'To' dialog 
  - #600322 - assertion failed: (reply == msg) in cs_waitinfo()
              (lp: #455020, #475147)
  - #564727 - Few memory leaks (lp: #305428)
  - #574940 - Always ref returned info from message_info_from_uid 
              (lp: #341909)
  - #429317 - Use the relative URI returned if the server 
              re-directs a request
  - #602820 - Test validity of a book_view before using it in LDAP 
  - #590762 - Recurring google calendar items are not changeable
  - #604236 - Slow GPG processing 
  - #597816 - Do not crash on incorrect parameters used in sexp to SQL 
              (lp: #444177)
  - #604544 - Try Exchange fallback authentication only once 
  - #600778 - Fix --enable-e2k-debug configure option resolution 
  - #260407 - 'endswith' address book search doesn't work 
  - #549221 - (bnc) delete, sync flags immediately
* debian/patches/99_reconfigure.patch:
  - new version update

Show diffs side-by-side

added added

removed removed

Lines of Context:
284
284
        icalcomponent *icalcomp, *subcomp;
285
285
        icalcomponent_kind kind;
286
286
        const gchar *newuri;
 
287
        SoupURI *uri_parsed;
287
288
        GHashTable *old_cache;
288
289
        GSList *comps_in_cache;
289
290
 
303
304
                newuri = soup_message_headers_get (msg->response_headers,
304
305
                                                   "Location");
305
306
 
306
 
                d(g_message ("Redirected to %s\n", newuri));
 
307
                d(g_message ("Redirected from %s to %s\n", priv->uri, newuri));
307
308
 
308
309
                if (newuri) {
 
310
                        if (newuri[0]=='/') {
 
311
                                g_warning ("Hey! Relative URI returned! Working around...\n");
 
312
 
 
313
                                uri_parsed = soup_uri_new (priv->uri);
 
314
                                soup_uri_set_path (uri_parsed, newuri);
 
315
                                soup_uri_set_query (uri_parsed, NULL);
 
316
                                // g_free(newuri);
 
317
 
 
318
                                newuri = soup_uri_to_string (uri_parsed, FALSE);
 
319
                                g_message ("Translated URI: %s\n", newuri);
 
320
                                soup_uri_free (uri_parsed);
 
321
                        }
 
322
 
309
323
                        g_free (priv->uri);
310
324
 
311
325
                        priv->uri = webcal_to_http_method (newuri, FALSE);