You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Guest shares in PROPFIND have shareType 0 instead of 4 #3592
I think the word guest is so overloaded now that we now assigned the old oc 10 share type 4 aka guest to our new guest-with-magic-links implementation. The guest accounts in oc 10 were real accounts and the CS3 api knows them as cs3user.UserType_USER_TYPE_GUEST, which is how we map them in eg.
That is definitely NOT what the new guest users are ... they are ghosts with NO user account in the system, bypassing all the identity management. By design ... ok, I'll not go into a rant. That is how it is.
Urgh the numbering is all over the place ... the Grantee Type enum in the CS3 api starts at 0:
// The type of the grantee.typeGranteeTypeint32const (
GranteeType_GRANTEE_TYPE_INVALIDGranteeType=0// This type represents an individual.GranteeType_GRANTEE_TYPE_USERGranteeType=1// This type represents a group of individuals.GranteeType_GRANTEE_TYPE_GROUPGranteeType=2
)
which is what we write into the share-types opaque:
// share indicatorif_, ok:=fieldMaskKeysMap["share-types"]; returnAllFields||ok {
granteeTypes, hasGuestShares:=n.getGranteeTypes(ctx)
iflen(granteeTypes) >0||hasGuestShares {
// TODO add optional property to CS3 ResourceInfo to transport grants?vars strings.Builderfirst:=truefor_, t:=rangegranteeTypes {
if!first {
s.WriteString(",")
} else {
first=false
}
s.WriteString(strconv.Itoa(int(t))) // <- we should probably map grant types (starting at 0) to share types (starting at 1) here
}
ifhasGuestShares {
if!first {
s.WriteString(",")
}
s.WriteString(strconv.Itoa(int(conversions.ShareTypeGuest)))
}
ri.Opaque=utils.AppendPlainToOpaque(ri.Opaque, "share-types", s.String())
}
}
so here we actually mix grant types and share types.
The oc 10 share types are (owncloud/core lib/private/Share/Constants.php, core/js/share.js): USER=0, GROUP=1, LINK=3, GUEST=4, CONTACT=5, REMOTE=6, REMOTE_GROUP=7. In those terms conversions.ShareTypeGuest = 4 is the oc10 guest value
Luckily we could argue that CS3 users with UserType_USER_TYPE_GUEST are considered users in oc10 and that we now change the word guest for our new guest-with-magic-links guests.
Still this will make it impossible to differentiate between the two kinds of share types:
Shares to CS3 Users with UserType_USER_TYPE_GUEST
Shares to our new guest shares
Can we rename the ShareTypeGuest to ShareTypeEmail? with id 4? That would align with the old 4 in oc10 as well as the nextcloud share type EMAIL=4. It would also future prevent collisions with UserType_USER_TYPE_GUEST users.
The word guest is overloaded. We need to have a specific technical name for the 'new' guest to differentiate them from 'cs3' guests.
in my opinion it makes sense, I'm just a bit confused of the name emai/mail as a suggestion we can use something like guest_email. But I would like to have other opinions as well
Activity
butonic commentedon Nov 6, 2026
I think the word guest is so overloaded now that we now assigned the old oc 10 share type 4 aka
guestto our new guest-with-magic-links implementation. The guest accounts in oc 10 were real accounts and the CS3 api knows them ascs3user.UserType_USER_TYPE_GUEST, which is how we map them in eg.opencloud/services/graph/pkg/identity/backend.go
Lines 200 to 210 in 2edb3e1
That is definitely NOT what the new guest users are ... they are ghosts with NO user account in the system, bypassing all the identity management. By design ... ok, I'll not go into a rant. That is how it is.
Urgh the numbering is all over the place ... the Grantee Type enum in the CS3 api starts at 0:
which is what we write into the
share-typesopaque:so here we actually mix grant types and share types.
The oc 10 share types are (owncloud/core lib/private/Share/Constants.php, core/js/share.js): USER=0, GROUP=1, LINK=3, GUEST=4, CONTACT=5, REMOTE=6, REMOTE_GROUP=7. In those terms conversions.ShareTypeGuest = 4 is the oc10 guest value
Luckily we could argue that CS3 users with UserType_USER_TYPE_GUEST are considered users in oc10 and that we now change the word
guestfor our new guest-with-magic-links guests.Still this will make it impossible to differentiate between the two kinds of share types:
Can we rename the ShareTypeGuest to ShareTypeEmail? with id 4? That would align with the old 4 in oc10 as well as the nextcloud share type EMAIL=4. It would also future prevent collisions with UserType_USER_TYPE_GUEST users.
The word guest is overloaded. We need to have a specific technical name for the 'new' guest to differentiate them from 'cs3' guests.
butonic commentedon Nov 6, 2026
And in the graph api it should probably also appear as 'email' or 'mail': opencloud-eu/libre-graph-api#83 (comment)
maki5 commentedon Nov 6, 2026
in my opinion it makes sense, I'm just a bit confused of the name
emai/mailas a suggestion we can use something likeguest_email. But I would like to have other opinions as well