Galène videoconferencing server discussion list archives
 help / color / mirror / Atom feed
* [Galene] Admin group creation
@ 2024-12-01 23:17 Marty Betz
  2024-12-02 12:08 ` [Galene] " Juliusz Chroboczek
  0 siblings, 1 reply; 6+ messages in thread
From: Marty Betz @ 2024-12-01 23:17 UTC (permalink / raw)
  To: galene

[-- Attachment #1: Type: text/plain, Size: 1114 bytes --]

Hello,
I'm learning a lot using Galene.  Thanks.  I've been experimenting with
creating groups programmatically using the REST admin interface.

In particular I tried to create a group using PUT method with JSON body and
it works fine for simple groups like:
{"op": [{"username": "elmer", "password": "1234567"}],"presenter": [{}],
"public": true}

But if I include a "users" list or a "wildcard-user" value, it fails with a
"description is not sanitized" error. For example this body fails:
{"op": [{"username": "elmer", "password": "1234567"}],"presenter": [{}],
"public": false, "users":{"john": {"password": "260530", "permissions":
"present"},"fred": {"password": "940934", "permissions": "present"}}}

I commented out the 3 lines of UpdateDescription() in description.go,
recompiled, and I was able to make this group just fine using the API.

if desc.Users != nil || desc.WildcardUser != nil || desc.AuthKeys != nil {
        return errors.New("description is not sanitised")
}

Why is this "sanitized" check existing in UpdateDescription().  It seems
relevant only for displaying group properties.

-Marty

[-- Attachment #2: Type: text/html, Size: 1644 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-12-02 19:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-01 23:17 [Galene] Admin group creation Marty Betz
2024-12-02 12:08 ` [Galene] " Juliusz Chroboczek
2024-12-02 17:28   ` Marty Betz
2024-12-02 18:00     ` Marty Betz
2024-12-02 19:12       ` Juliusz Chroboczek
2024-12-02 19:56         ` Marty Betz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox