Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-41253

JQL filter False Error: Project doesn't exist should be no permission

      Problem statement:

      During a JQL filter, projects with no permission gives a false error of non existent instead.

      Steps to Reproduce:

      1. As an admin, create several new projects (TIA,TIB,TIC,TID,TIE).
      2. As an admin, specify ONLY user A with granted permission for viewing project TIE.
      3. As an admin, perform a JQL filter including the 5 projects. (non existent project TIE false error)

      Current/Actual behavior:

      False Error
      "A value with ID 'E' does not exist for the field project".

      Add TIE in filter.

      Expected Behavior:

      Instead of Error Text - A value with ID 'TIE' does not exist for the field 'project'
      Replace with
      "User does not have permission for value with ID 'TIE' in the field project"
      OR
      "Project with ID 'TIE' does not exist"
      while
      ALWAYS showing the rest of the filter Results.

      Additional Info:

        1. Screenshot 2014-12-10 11.31.38.png
          184 kB
          Zahiruddin Ahmad
        2. Screen Shot 2014-12-15 at 9.23.14 PM.png
          37 kB
          Zahiruddin Ahmad
        3. Screen Shot 2014-12-15 at 9.23.47 PM.png
          58 kB
          Zahiruddin Ahmad

            [JRASERVER-41253] JQL filter False Error: Project doesn't exist should be no permission

            Please let me know why this is not solved since ages?

            BR

            Heiko

            Heiko Gerlach added a comment - Please let me know why this is not solved since ages? BR Heiko

            Atlassian treats this a "Not a bug" , but it is not logical to me. And it looks like most of the Jira users expect just another behavior - which seems more logical to me.

            At least Atlassian should offer another solution how we can achieve it.

            The improvement https://jira.atlassian.com/browse/JRASERVER-40245 is open since 2014 and still in status "Gathering interest"

            Robby Berner added a comment - Atlassian treats this a "Not a bug" , but it is not logical to me. And it looks like most of the Jira users expect just another behavior - which seems more logical to me. At least Atlassian should offer another solution how we can achieve it. The improvement https://jira.atlassian.com/browse/JRASERVER-40245 is open since 2014 and still in status "Gathering interest"

            I've been noticing the same thing in the REST Api (/search?jql='jql'), when searching for project=x OR project = y (y does not exist), I get no return issues even though project x exists.

             

            this applies to other fields. eg.

            ... project=x OR status=notastatus
            {
              "errorMessages": [
                "The value 'notastatus' does not exist for the field 'status'."
              ],
              "errors": {}
            }

            Obviously I would have liked to get the results of project=x since there are some values where this is true. I just find it a little less intuitive since I'm coming from SQL.

             

            Anyway, I know this is an old thread, but does anyone know if this sort of thing has been resolved?

            Isaac Abramowitz added a comment - I've been noticing the same thing in the REST Api (/search?jql='jql'), when searching for project=x OR project = y (y does not exist), I get no return issues even though project x exists.   this applies to other fields. eg. ... project=x OR status=notastatus { "errorMessages" : [ "The value 'notastatus' does not exist for the field 'status' ." ], "errors" : {} } Obviously I would have liked to get the results of project=x since there are some values where this is true. I just find it a little less intuitive since I'm coming from SQL.   Anyway, I know this is an old thread, but does anyone know if this sort of thing has been resolved?

            Hi intersol_OLD,

            I understand where you are coming from when you say:

            Project in should just return nothing if some values from the list are invalid, otherwise you end-up with tens of broken filters every time you perform a change on projects (renames, key renames, archived, ....)

            Unfortunately, that was the design that was selected when JQL was implemented (all values have to be valid).

            Having said that, there's an open suggestion to change the existing design of query processing in the issue navigator to cater for these use cases at https://jira.atlassian.com/browse/JRA-40245 Please feel free to add your vote and feedback on that issue.

            Regards,

            Oswaldo Hernández.
            JIRA Bugmaster.
            [Atlassian].

            Oswaldo Hernandez (Inactive) added a comment - Hi intersol_OLD , I understand where you are coming from when you say: Project in should just return nothing if some values from the list are invalid, otherwise you end-up with tens of broken filters every time you perform a change on projects (renames, key renames, archived, ....) Unfortunately, that was the design that was selected when JQL was implemented (all values have to be valid). Having said that, there's an open suggestion to change the existing design of query processing in the issue navigator to cater for these use cases at https://jira.atlassian.com/browse/JRA-40245 Please feel free to add your vote and feedback on that issue. Regards, Oswaldo Hernández. JIRA Bugmaster. [Atlassian] .

            intersol_old added a comment -

            Oswaldo, I do understand the ambiguity of the message but the way "project in (...)" works is broken because of the current behaviour. Project in should just return nothing if some values from the list are invalid, otherwise you end-up with tens of broken filters every time you perform a change on projects (renames, key renames, archived, ....)

            So I can only see two things:

            • bug fix: removing the error and performing the query, ignoring the unmatched values.
            • improvement: display a warning instead of the error, but perform the query and return matched results.

            A broken query can have disastrous effects, and worse is very hard to detect as it can be used in many places, including outside of jira (confluence).

            intersol_old added a comment - Oswaldo, I do understand the ambiguity of the message but the way "project in (...)" works is broken because of the current behaviour. Project in should just return nothing if some values from the list are invalid, otherwise you end-up with tens of broken filters every time you perform a change on projects (renames, key renames, archived, ....) So I can only see two things: bug fix: removing the error and performing the query, ignoring the unmatched values. improvement: display a warning instead of the error, but perform the query and return matched results. A broken query can have disastrous effects, and worse is very hard to detect as it can be used in many places, including outside of jira (confluence).

            This is intentional and by design.

            The message is ambiguous for security, such that unauthorised users can not find out which projects they have visibility over and which ones they don't.

            Regards,

            Oswaldo Hernández.
            JIRA Bugmaster.
            [Atlassian].

            Oswaldo Hernandez (Inactive) added a comment - This is intentional and by design. The message is ambiguous for security, such that unauthorised users can not find out which projects they have visibility over and which ones they don't. Regards, Oswaldo Hernández. JIRA Bugmaster. [Atlassian] .

              Unassigned Unassigned
              zahmad Zahiruddin Ahmad (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: