Displaying 6 results from an estimated 6 matches for "mailbox_list_get_vname".
2019 Mar 07
2
Regression ACL & namespace prefix
...l-acls/pub/.DEFAULT
> > imap(d2): Debug: acl vfile: file /var/mail/pub/dovecot-acl not found
> >
> >
> > I've localized problem to:
> > src/plugins/acl/acl-backend-vfile.c: acl_backend_vfile_object_init(...)
> > and change from:
> >
> > vname = mailbox_list_get_vname(_backend->list, name);
> >
> > to:
> >
> > vname = *name == '\0' ? "" :
> > ????mailbox_list_get_vname(_backend->list, name);
> >
> > that happened quite time ago during bigger acl changes and I don't know
> > why exac...
2018 Sep 18
4
Regression ACL & namespace prefix
...dovecot/global-acls
imap(d2): Debug: acl vfile: reading file
/etc/dovecot/global-acls/pub/.DEFAULT
imap(d2): Debug: acl vfile: file /var/mail/pub/dovecot-acl not found
I've localized problem to:
src/plugins/acl/acl-backend-vfile.c: acl_backend_vfile_object_init(...)
and change from:
vname = mailbox_list_get_vname(_backend->list, name);
to:
vname = *name == '\0' ? "" :
mailbox_list_get_vname(_backend->list, name);
that happened quite time ago during bigger acl changes and I don't know
why exactly this line was changed previously. Anyway, reverting this
line alone fixes the p...
2019 Mar 12
1
Regression ACL & namespace prefix
...see that it checks this location:
acl vfile: file /etc/dovecot/global-acls//.DEFAULT not found
instead of
/etc/dovecot/global-acls/pub/.DEFAULT
this is caused by line in
src/plugins/acl/acl-backend-vfile.c: acl_backend_vfile_object_init(...)
vname = *name == '\0' ? "" :
mailbox_list_get_vname(_backend->list, name);
and because name is empty, it will not use the "pub" prefix in the path.
If I'd test acl for "pub/subfolder" that condition would have different
result and bug would not trigger:
doveadm(testuser): Debug: acl vfile: reading file
/etc/dovecot/globa...
2019 Mar 07
0
Regression ACL & namespace prefix
...e: reading file
> /etc/dovecot/global-acls/pub/.DEFAULT
> imap(d2): Debug: acl vfile: file /var/mail/pub/dovecot-acl not found
>
>
> I've localized problem to:
> src/plugins/acl/acl-backend-vfile.c: acl_backend_vfile_object_init(...)
> and change from:
>
> vname = mailbox_list_get_vname(_backend->list, name);
>
> to:
>
> vname = *name == '\0' ? "" :
> ????mailbox_list_get_vname(_backend->list, name);
>
> that happened quite time ago during bigger acl changes and I don't know
> why exactly this line was changed previously. An...
2019 Mar 07
0
Regression ACL & namespace prefix
...d2): Debug: acl vfile: file /var/mail/pub/dovecot-acl not found
> > >
> > >
> > > I've localized problem to:
> > > src/plugins/acl/acl-backend-vfile.c: acl_backend_vfile_object_init(...)
> > > and change from:
> > >
> > > vname = mailbox_list_get_vname(_backend->list, name);
> > >
> > > to:
> > >
> > > vname = *name == '\0' ? "" :
> > > ????mailbox_list_get_vname(_backend->list, name);
> > >
> > > that happened quite time ago during bigger acl changes and I...
2013 Apr 02
1
v2.2 getting NULL pointer reference with shared namespace in mailbox_tree?
...list_get_vname (_list=0x4b9840, storage_name=0xffff80ffb71d656c "") at imapc-list.c:77
list = (struct imapc_mailbox_list *) 0x4b9840
prefix = 0x4c17a0 "INBOX"
prefix_len = 5
__FUNCTION__ = "imapc_list_get_vname"
#8 0xffff80ffb74e603b in mailbox_list_get_vname (list=0x4b9840, name=0xffff80ffb71d656c "") at ../../src/lib/array.h:197
No locals.
#9 0xffff80ffb71cd0fa in acl_backend_vfile_object_init (_backend=0x4cad10, name=0xffff80ffb71d656c "") at ../../../src/lib/array.h:197
_data_stack_cur_id = 4
backend = (struct ac...