ARAKHNID
b50db7aa9d
src: Fix grammar issue
...
"Setup" is a noun, not a verb. Using "set up" instead when it's being used as a verb is correct.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/884 >
2026-10-25 13:45:25 -05:00
Hari Rana
117c032d95
utils: Prefix every function with gcal_util_
...
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/842 >
2026-09-20 12:44:24 +00:00
tytan652
d1a400c856
utils/source-discoverer: Allow ICS with LF line breaks
...
RFC 5545 states that CRLF line breaks should be used but other consumer
seems to allow CR being missing.
https://datatracker.ietf.org/doc/html/rfc5545#section-3.1
Note, that the check result was ignored if the content-type is
text/calendar.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/814 >
2026-08-28 21:51:52 +00:00
Federico Mena Quintero
ef8c6ff55d
utils/source-discoverer: Use temporary variable only when tracing is enabled
...
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/581 >
2025-05-28 18:08:54 +00:00
Jean-François Fortin Tam
588bec96b6
utils/source-discoverer: Fix HTTP errors interpretation
...
There can be many reasons why a request is not allowed or authorized.
403 and 405 HTTP error codes do not prompt the visitor for credentials.
Only 401 and 407 responses are credentials prompts.
Only raise a username and password request when facing a 401 or 407.
Fixes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/645
Fixes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/552
2024-08-16 18:47:57 -04:00
Jean-François Fortin Tam
577efdd967
utils/source-discoverer: Add a debug statement
...
This debug statement would happen before any interpretation of errors,
which is useful in troubleshooting issues related to interpretation.
Related: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/645
2024-08-16 18:47:57 -04:00
Jean-François Fortin Tam
008b914f9e
utils/source-discoverer: Set the User-Agent
...
This avoids some web servers or WAFs doing weird stuff with our requests
which would lead to situations where our web calendar source discovery
would face server errors, redirects, incorrect contents, etc.
Fixes #651
Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/290
2024-08-07 12:32:00 -04:00
Georges Basile Stavracas Neto
0322bcf54c
utils/source-discoverer: Test URI before discovery
...
This makes sure that we have a valid host set. This check is
copies from Soup's private SOUP_URI_IS_VALID() macro.
Add a test for this behavior.
Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/794
2023-03-05 11:24:49 -03:00
Georges Basile Stavracas Neto
fd7baeb787
utils/source-discoverer: Pass error
...
An oversight of the GUri port.
Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/794
2023-03-03 19:50:30 -03:00
Georges Basile Stavracas Neto
2b947e83a6
utils/source-discoverer: Use caldav-stub and caldav
...
As per suggestion from Milan, use caldav-stub as the parent name,
and caldav as the backend name.
Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/539
2023-03-03 19:50:30 -03:00
Georges Basile Stavracas Neto
98f6ccdb88
utils/source-discoverer: Set security method
...
Set the security method of the discovered source into the newly
created source. This should preserve the TLS security method in
these sources.
Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/40
2023-03-03 19:50:30 -03:00
Georges Basile Stavracas Neto
02c2119c39
utils/source-discoverer: Use g_strcmp0
...
Cosmetical change.
2023-03-03 19:50:30 -03:00
Clément Saccoccio
e2adc7de5e
source-discoverer: when importing a web iCal, allow an incorrect content type if the header is good
2022-10-24 21:06:18 +02:00
Milan Crha
0bd11799dc
Port to libsoup3
2022-06-22 08:51:30 -03:00
Reynir Björnsson
19b520fa2d
source-discoverer: Fail if SoupUri creation fails
2022-06-15 14:10:02 +00:00
Michael Catanzaro
a3e9af23dc
source-discoverer: add support for webcal:// URIs
...
We can implement webcal:// by simply rewriting the URI to https://.
Amazing!
Fixes #564
2020-04-14 15:16:24 -05:00
Georges Basile Stavracas Neto
371fdbc881
Introduce new source discoverer
...
The new source discoverer is a complete overhaul of
the current code. It is async-only, correctly threaded,
and easier to maintain.
A major new feature of this web source discoverer is
that it now pings the server to see if the URL feeds
us back with an iCalendar file.
Furthermore, it continues to use E-D-S WebDAV discovery
functions as a fallback mechanism.
Fixes #380
2019-07-13 16:04:30 -03:00