Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-3046

When a user tries to access a project without enough rights, he should get a nice and proper message

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 32
    • Fix Version/s: 32
    • Component/s: Roles & Permissions

      Description

      In branch management current code, when you do not have rights to access a project, you get an "500 internal server error" popup (due to NPE in UserPrefsServiceImpl.getUserPrefs()
      // Check if the user exists on the project
      UserService us = getUserService();
      if (!us.isUserMemberOfProject(projectId, userName))

      { return null; }

      ).
      You should get something more explicit.
      See in StudioApp,
      @GET
      @Path("studio.html")
      public Object getHome() {

      Which could allow for detecting parameter, and checking for access rights.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: