Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upForm metadata API doesn't return library forms unless user is admin #3919
Comments
ebruchez
added
the
Form Runner
label
Jan 31, 2019
ebruchez
self-assigned this
Jan 31, 2019
ebruchez
added this to Todo
in Orbeon Forms 2018.1.4
via automation
Jan 31, 2019
ebruchez
added this to To review
in Orbeon Forms 2019.1
via automation
Jan 31, 2019
ebruchez
added this to To review
in Orbeon Forms 2018.2.1
via automation
Jan 31, 2019
This comment has been minimized.
This comment has been minimized.
The simplest solution is to pass a new URL parameter, I don't think that this is a security issue. The filtering is done by the API for the convenience of the Home page, essentially. The API itself is not open by default.
|
This comment has been minimized.
This comment has been minimized.
ebruchez
closed this
Jan 31, 2019
ebruchez
added this to Done
in Orbeon Forms 2017.2.3
via automation
Jan 31, 2019
Orbeon Forms 2019.1
automation
moved this from To review
to Done
Jan 31, 2019
Orbeon Forms 2018.1.4
automation
moved this from Todo
to Done
Jan 31, 2019
Orbeon Forms 2018.2.1
automation
moved this from To review
to Done
Jan 31, 2019
added a commit
that referenced
this issue
Feb 1, 2019
added a commit
that referenced
this issue
Feb 1, 2019
added a commit
that referenced
this issue
Feb 2, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ebruchez commentedJan 31, 2019
•
edited
This API was done initially for the Home page, and the logic is that if you are a regular user, that is not an admin user, we need to filter out certain forms, including:
library
formsIf the user is "admin", that is the user has all permissions for all forms or explicitly all permissions for the given form, then the forms are returned without any filtering at all.
Now, when we use Form Builder in the context of publishing a form definition or listing the existing library forms in the toolbox (#3885), we call the API explicitly for a
library
form.If in this case we haven't configured
form-builder-permissions.xml
to allow all operations onlibrary
forms, then the API doesn't return any information about the form. This is incorrect for publishing as well as for the toolbox usage.For backward compatibility, the assumption, when using Form Builder without explicit
form-builder-permissions.xml
, is that all operations are permitted: creating forms, saving forms, publishing forms, etc.This raises a few questions:
library
forms from Form Builder?form-builder-permissions.xml
.form-builder-permissions.xml
is configured, should something special happen forlibrary
forms when information about them is requested from Form Builder?