Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:uri: "varlink help" not working with camel-case interface names #58

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

scabrero
Copy link
Contributor

@scabrero scabrero commented Feb 8, 2023

The varlink specification does not mandate that interface names are lower-case so it is not possible to know if an uri string contains a member or not based on last member capitalization.

This information must be provided by the caller depending on the context the URI is parsed.

Signed-off-by: Samuel Cabrero scabrero@suse.de

The varlink specification does not mandate that interface names are
lower-case so it is not possible to know if an uri string contains a
member or not based on last member capitalization.

This information must be provided by the caller depending on the context
the URI is parsed.

Signed-off-by: Samuel Cabrero <scabrero@suse.de>
@haraldh haraldh merged commit 58f0ab1 into varlink:master Jun 10, 2024
6 checks passed
samba-team-bot pushed a commit to samba-team/samba that referenced this pull request Feb 20, 2025
$> varlink info unix:/run/systemd/userdb/org.samba.winbind
Vendor: Samba
Product: Winbind
Version: 1
URL: https://samba.org
Interfaces:
  io.systemd.UserDatabase
  org.varlink.service

TODO libvarlink bug handling camel case interface names:
varlink/libvarlink#58

$> varlink help unix:/run/systemd/userdb/org.samba.winbind/io.systemd.UserDatabase
interface io.systemd.UserDatabase

method GetUserRecord(
  uid: ?int,
  userName: ?string,
  service: string
) -> (record: object, incomplete: bool)

method GetGroupRecord(
  gid: ?int,
  groupName: ?string,
  service: string
) -> (record: object, incomplete: bool)

method GetMemberships(
  userName: ?string,
  groupName: ?string,
  service: string
) -> (userName: string, groupName: string)

error NoRecordFound ()

error BadService ()

error ServiceNotAvailable ()

error ConflictingRecordFound ()

error EnumerationNotSupported ()

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants