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

Form Runner home page: message for no forms, include forms without permission #94

Closed
ebruchez opened this issue Mar 29, 2012 · 6 comments

Comments

@ebruchez
Copy link
Collaborator

  1. Include forms with no permissions in the result.
  2. If no forms are returned, show a message of the form "No forms have been deployed, or you don't have the permissions to access any of the deployed forms".
@ghost ghost assigned avernet Mar 29, 2012
@ebruchez
Copy link
Collaborator Author

I think this has been implemented, right? But it's probably not fully ready yet. By default, I see this:

@avernet
Copy link
Collaborator

avernet commented May 25, 2012

Would showing some text of the form "No forms have been deployed, or you don't have the permissions to access any of the deployed forms" in the case the table is empty be enough to solve the problem?

@ebruchez
Copy link
Collaborator Author

No, because here the problem is that permissions are not enabled for any forms, so I should see all forms!

Now if permissions are enabled and no forms are visible, yes, a message like this would be good.

@avernet
Copy link
Collaborator

avernet commented May 25, 2012

Good point. So we should implement those two fixes:

  1. Include forms with no permissions in the result.
  2. If no forms are returned, show a message of the form "No forms have been deployed, or you don't have the permissions to access any of the deployed forms".

I updated the title and description of the issue to reflect this.

@avernet
Copy link
Collaborator

avernet commented Nov 8, 2012

Strange:

  • Accessing http://localhost:8080/orbeon/fr/ returns an empty page
    • Getting a 404 accessing http://localhost:8080/orbeon/fr/service/exist/form
    • Same page returns a 500 when requested by /fr/service/persistence/form

@avernet
Copy link
Collaborator

avernet commented Nov 29, 2012

I can't reproduce the part of this bug related to the page not listing forms for which permissions are not enabled. E.g., I create form, (don't enable permissions), publish it, and see it on the Form Runner home page. The logic for this is in FormRunner.scala, in authorizedOperationsOnForm(). If there are no permissions, it returns *. Maybe the issue was caused by the query failing on eXist after the namespace change, which is now fixed by 8ca87c5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants