Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package msgraph for openSUSE:Factory checked in at 2026-08-29 17:40:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/msgraph (Old) and /work/SRC/openSUSE:Factory/.msgraph.new.1265 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "msgraph" Sat Aug 29 17:40:13 2026 rev:7 rq:1374290 version:0.3.5 Changes: -------- --- /work/SRC/openSUSE:Factory/msgraph/msgraph.changes 2026-03-27 16:49:53.556408274 +0100 +++ /work/SRC/openSUSE:Factory/.msgraph.new.1265/msgraph.changes 2026-08-29 17:40:18.454695063 +0200 @@ -1,0 +2,7 @@ +Thu Aug 27 16:49:49 UTC 2026 - Bjørn Lie <[email protected]> + +- Update to version 0.3.5: + + drive: fall back to /me/drive when /me/drives is denied + + doc: update URLs + +------------------------------------------------------------------- Old: ---- msgraph-0.3.4.tar.xz New: ---- msgraph-0.3.5.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ msgraph.spec ++++++ --- /var/tmp/diff_new_pack.mOpT6z/_old 2026-08-29 17:40:20.010750108 +0200 +++ /var/tmp/diff_new_pack.mOpT6z/_new 2026-08-29 17:40:20.015750285 +0200 @@ -20,7 +20,7 @@ %define sover 1 Name: msgraph -Version: 0.3.4 +Version: 0.3.5 Release: 0 Summary: Library for accessing online serive APIs using MS Graph protocol License: LGPL-3.0-or-later ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.mOpT6z/_old 2026-08-29 17:40:20.120753999 +0200 +++ /var/tmp/diff_new_pack.mOpT6z/_new 2026-08-29 17:40:20.143754813 +0200 @@ -1,6 +1,6 @@ -mtime: 1774252949 -commit: 20dd145f0a475d61cb948bb0e2c1f4853c3fca0ed674ff3b9833d5acf44272fc +mtime: 1787849443 +commit: 6870df477b8689be9bd1a8260d2548f7ef0a710dd1404cfdec751c4a6f9bbc0e url: https://src.opensuse.org/GNOME/msgraph -revision: 20dd145f0a475d61cb948bb0e2c1f4853c3fca0ed674ff3b9833d5acf44272fc +revision: 6870df477b8689be9bd1a8260d2548f7ef0a710dd1404cfdec751c4a6f9bbc0e projectscmsync: https://src.opensuse.org/GNOME/_ObsPrj ++++++ _service ++++++ --- /var/tmp/diff_new_pack.mOpT6z/_old 2026-08-29 17:40:20.213757289 +0200 +++ /var/tmp/diff_new_pack.mOpT6z/_new 2026-08-29 17:40:20.231757926 +0200 @@ -3,7 +3,7 @@ <service name="obs_scm" mode="manual"> <param name="scm">git</param> <param name="url">https://gitlab.gnome.org/GNOME/msgraph.git</param> - <param name="revision">0.3.4</param> + <param name="revision">0.3.5</param> <param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param> <param name="versionrewrite-pattern">v?(.*)\+0</param> <param name="versionrewrite-replacement">\1</param> ++++++ build.specials.obscpio ++++++ ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2026-08-27 18:50:43.000000000 +0200 @@ -0,0 +1,5 @@ +*.obscpio +*.osc +_build.* +.pbuild +osc-collab.* ++++++ msgraph-0.3.4.tar.xz -> msgraph-0.3.5.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/msgraph-0.3.4/NEWS new/msgraph-0.3.5/NEWS --- old/msgraph-0.3.4/NEWS 2026-01-14 11:34:58.000000000 +0100 +++ new/msgraph-0.3.5/NEWS 2026-08-27 12:36:18.000000000 +0200 @@ -1,3 +1,8 @@ +0.3.5 - Aug 27, 2026 +=========================== +- drive: fall back to /me/drive when /me/drives is denied +- doc: update URLs + 0.3.4 - Jan 14, 2026 =========================== - Remove drive bundles duplicates diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/msgraph-0.3.4/doc/msg.toml.in new/msgraph-0.3.5/doc/msg.toml.in --- old/msgraph-0.3.4/doc/msg.toml.in 2026-01-14 11:34:58.000000000 +0100 +++ new/msgraph-0.3.5/doc/msg.toml.in 2026-08-27 12:36:18.000000000 +0200 @@ -3,9 +3,9 @@ description = "Library to access MS Graph API for Office 365." authors = "Jan-Michael Brummer" license = "LGPL-3.0-or-later" -browse_url = "https://gitlab.gnome.org/jbrummer/msgraph/" -repository_url = "https://gitlab.gnome.org/jbrummer/msgraph/" -website_url = "https://jbrummer.pages.gitlab.gnome.org/msgraph/" +browse_url = "https://gitlab.gnome.org/GNOME/msgraph" +repository_url = "https://gitlab.gnome.org/GNOME/msgraph.git" +website_url = "https://gnome.pages.gitlab.gnome.org/msgraph/" dependencies = [ "GObject-2.0", "Gio-2.0", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/msgraph-0.3.4/meson.build new/msgraph-0.3.5/meson.build --- old/msgraph-0.3.4/meson.build 2026-01-14 11:34:58.000000000 +0100 +++ new/msgraph-0.3.5/meson.build 2026-08-27 12:36:18.000000000 +0200 @@ -1,5 +1,5 @@ project('msgraph', 'c', - version: '0.3.4', + version: '0.3.5', meson_version: '>= 0.63.0', default_options: [ 'warning_level=2', 'werror=false', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/msgraph-0.3.4/src/drive/msg-drive-service.c new/msgraph-0.3.5/src/drive/msg-drive-service.c --- old/msgraph-0.3.4/src/drive/msg-drive-service.c 2026-01-14 11:34:58.000000000 +0100 +++ new/msgraph-0.3.5/src/drive/msg-drive-service.c 2026-08-27 12:36:18.000000000 +0200 @@ -153,6 +153,40 @@ return FALSE; } +/* + * Some consumer (personal) accounts are refused access to the drive + * enumeration endpoint (GET /me/drives answers 403 accessDenied) while the + * user's default drive is still fully accessible through GET /me/drive. + * Fetch the default drive directly and return it as a one-element list. + * + * Note that /me/drive returns a bare drive object, not a "value" array. + */ +static GList * +get_default_drive (MsgDriveService *self, + GCancellable *cancellable, + GError **error) +{ + g_autofree char *url = NULL; + g_autoptr (SoupMessage) message = NULL; + g_autoptr (JsonParser) parser = NULL; + JsonObject *root_object = NULL; + MsgDrive *drive = NULL; + + url = g_strconcat (MSG_API_ENDPOINT, "/me/drive", NULL); + message = msg_service_build_message (MSG_SERVICE (self), "GET", url, NULL, FALSE); + parser = msg_service_send_and_parse_response (MSG_SERVICE (self), message, &root_object, cancellable, error); + if (!parser) + return NULL; + + drive = msg_drive_new_from_json (root_object, error); + if (!drive) + return NULL; + + self->type = msg_drive_get_drive_type (drive); + + return g_list_append (NULL, drive); +} + /** * msg_drive_service_get_drives: * @self: a #MsgDriveService @@ -183,11 +217,21 @@ do { g_autoptr (SoupMessage) message = NULL; + g_autoptr (GError) request_error = NULL; message = msg_service_build_message (MSG_SERVICE (self), "GET", url, NULL, FALSE); - parser = msg_service_send_and_parse_response (MSG_SERVICE (self), message, &root_object, cancellable, error); - if (!parser) + parser = msg_service_send_and_parse_response (MSG_SERVICE (self), message, &root_object, cancellable, &request_error); + if (!parser) { + /* Only fall back while nothing has been enumerated yet, i.e. when the + * initial request itself was refused by Graph (an MSG_ERROR means the + * server answered with an error object, as opposed to a transport + * failure). Errors during pagination propagate unchanged. */ + if (list == NULL && g_error_matches (request_error, MSG_ERROR, MSG_ERROR_FAILED)) + return get_default_drive (self, cancellable, error); + + g_propagate_error (error, g_steal_pointer (&request_error)); return NULL; + } array = json_object_get_array_member (root_object, "value"); g_assert (array != NULL); ++++++ msgraph.obsinfo ++++++ --- /var/tmp/diff_new_pack.mOpT6z/_old 2026-08-29 17:40:21.064787394 +0200 +++ /var/tmp/diff_new_pack.mOpT6z/_new 2026-08-29 17:40:21.082788031 +0200 @@ -1,5 +1,5 @@ name: msgraph -version: 0.3.4 -mtime: 1768386898 -commit: 765ce74bd03e946bbc97cb2904fb0d0a43a88a8d +version: 0.3.5 +mtime: 1787826978 +commit: c89b1b6359cebc410e94141325eff97b65b99fe4
