Skip to content

Validate Iotas (GNOME client) compatibility end to end #8

Closed

Description

@gnacho

Summary

The backend implements the Nextcloud Notes API v1.4 plus OCS stubs (capabilities, user) with the explicit goal of working with existing Notes clients. Iotas is the reference client for this integration (GNOME app, GTK4, also available on Flathub), but it has never been validated against a real deployment.

What to verify

  • Login with app token (Basic auth against the graph endpoint)
  • Initial sync: notes list, categories, favorites, settings
  • CRUD from the client: create, edit (If-Match etag conflicts), delete, star
  • Background sync and manual refresh behavior
  • Capabilities negotiation: the client decides features by the reported api_version (0.2, 1.4)
  • Known degraded paths: avatar endpoint returns 404 on OpenCloud (not fatal); attachments not implemented yet (see the attachment issue)

Notes

  • Report the client version used and file issues for any protocol mismatch found (missing header, unexpected status code, field the client expects but the API does not return).
  • Document any workaround needed in the README integration section.

Activity

  1. changed the title [-]Validate Iotas (Android) client compatibility end to end[/-] [+]Validate Iotas (GNOME client) compatibility end to end[/+] on Sep 13, 2026
  2. gnacho commented on Sep 13, 2026

    @gnacho
    OwnerAuthor

    Closing this after reviewing the Iotas source and testing its exact requests against the deployment.

    Verified and fixed (all in #28, tested with the requests the client actually sends):

    • Capabilities: it asks for JSON and parses it, so it now returns JSON when requested with api_version as an array.
    • PUT /notes/{id}: it sends favorite: 1|0, so the API now accepts a boolean or 0/1.
    • readonly: it reads the key directly, so it is now always returned.
    • pruneBefore: it computes remote deletions as local ids - response ids, so unchanged notes are now returned as {"id":N} stubs instead of being dropped. That also removed a live data-loss path: with the previous behaviour the notes edited since the last sync disappeared from the response and the client would have deleted them.
    • Attachments: it downloads with GET attachment/{noteId}?path= and validates the .attachments.<noteId>/ prefix, which Backend: attachment upload/serving for notes (API v1 attachment endpoints) #6 implements. It only downloads, it does not upload.
    • Notes CRUD, settings and the attachment download were exercised with the exact requests.

    Not fixable from this side: Iotas has no manual credential entry. Its only setup UI takes the server URL and then runs the Nextcloud login flow v2 (POST /index.php/login/v2), which OpenCloud does not implement, so a normal user cannot add an account. Authentication itself is plain HTTP Basic with an app password and is compatible; the credentials can be seeded manually (gsettings nextcloud-endpoint/nextcloud-username plus the GNOME keyring entry), which is what a protocol-level test would use.

    Tracked in #30 (backend side), with a manual app password option requested upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions