-
Bug
-
Resolution: Duplicate
-
High
-
None
-
1.2.0.2
-
None
NOTE: This bug report is for JIRA Service Desk Server. Using JIRA Service Desk Cloud? See the corresponding bug report.
Steps to Reproduce:
- Install JIRA Service Desk;
- Create a Project through JIRA Service Desk;
- Disable or Uninstall JIRA Service Desk.
Expected Behavior:
JIRA would hide/remove any configuration regarding JIRA Service Desk, and would continue to run normally.
Actual Behavior:
- JIRA's dashboards stop working;
- It is not possible to log in but through login.jsp;
- Accessing a project is not possible;
- Trying to view the Permission tab through the project created throws an error.
Workaround
Option 1: Reinstall/Re-enable JIRA Service Desk.
Option 2:
- If unable to log in, access JIRA through http://<jira-address>/login.jsp
- Navigate to Administration » Issues » Permission Scheme;
- Delete "• (Anyone)" from all permissions in all permission schemes.
Option 3:
Delete these from the database using:
DELETE FROM schemepermissions WHERE perm_type = 'sd.customer.portal.only';
If deleting through the database, please make sure to create a backup. Also, make sure to shutdown JIRA first, and restart it afterwards.
Notes:
This seems to be happening because JIRA Service Desk does not remove or hide the Service Desk Customer - Portal Access (Anyone) permission, and when JIRA tries to load it the following is thrown in the screen:
java.lang.NullPointerException at com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasSchemePermission(DefaultPermissionSchemeManager.java:499) at com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasPermission(DefaultPermissionSchemeManager.java:467) at com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasSchemeAuthority(DefaultPermissionSchemeManager.java:393)
This also appears in the logs:
2014-02-14 14:37:39,773 http-bio-8080-exec-1 ERROR matheus 877x158x5 1fqd1vy 192.168.10.104 /rest/gadget/1.0/issueTable/jql [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service java.lang.NullPointerException at com.atlassian.jira.issue.search.parameters.lucene.DefaultPermissionQueryFactory.collectProjectTerms(DefaultPermissionQueryFactory.java:171) at com.atlassian.jira.issue.search.parameters.lucene.DefaultPermissionQueryFactory.getQuery(DefaultPermissionQueryFactory.java:68) at com.atlassian.jira.issue.search.parameters.lucene.PermissionsFilterGeneratorImpl.getQuery(PermissionsFilterGeneratorImpl.java:38) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.getPermissionsFilter(LuceneSearchProvider.java:522) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.getHits(LuceneSearchProvider.java:281) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.search(LuceneSearchProvider.java:414)
- duplicates
-
JSDSERVER-309 JIRA search broken after disabling Service Desk
-
- Closed
-
- is caused by
-
JRASERVER-36940 JIRA search broken after disabling Service Desk
-
- Closed
-
- relates to
-
JSDCLOUD-337 JIRA Stops working after Disabling or Uninstalling JIRA Service Desk
-
- Closed
-
- mentioned in
Form Name |
---|
[JSDSERVER-337] JIRA Stops working after Disabling or Uninstalling JIRA Service Desk
Workflow | Original: JSD Bug Workflow v5 - TEMP [ 2304752 ] | New: JAC Bug Workflow v3 [ 3125919 ] |
Status | Original: Done [ 10044 ] | New: Closed [ 6 ] |
Workflow | Original: JSD Bug Workflow v5 [ 2058697 ] | New: JSD Bug Workflow v5 - TEMP [ 2304752 ] |
Workflow | Original: JSD Bug Workflow v5 - TEMP [ 2056804 ] | New: JSD Bug Workflow v5 [ 2058697 ] |
Workflow | Original: JSD Bug Workflow v5 [ 1956045 ] | New: JSD Bug Workflow v5 - TEMP [ 2056804 ] |
Workflow | Original: JSD Bug Workflow v4 [ 1615796 ] | New: JSD Bug Workflow v5 [ 1956045 ] |
Description |
Original:
h3. +Steps to Reproduce:+
# Install JIRA Service Desk; # Create a Project through JIRA Service Desk; # Disable or Uninstall JIRA Service Desk. h3. +Expected Behavior:+ JIRA would hide/remove any configuration regarding JIRA Service Desk, and would continue to run normally. h3. +Actual Behavior:+ * JIRA's dashboards stop working; * It is not possible to log in but through login.jsp; * Accessing a project is not possible; * Trying to view the Permission tab through the project created throws an error. ---- h3. +Workaround+ *+Option 1:+* Reinstall/Re-enable JIRA Service Desk. *+Option 2:+* # If unable to log in, access JIRA through http://<jira-address>/login.jsp # Navigate to *Administration » Issues » Permission Scheme*; # Delete "*• (Anyone)*" from all permissions in all permission schemes. *+Option 3:+* Delete these from the database using: {code:SQL| borderStyle=dashed| borderColor=#6A8EB3 |bgColor=#F8F8F8} DELETE FROM schemepermissions WHERE perm_type = 'sd.customer.portal.only'; {code} (!) If deleting through the database, please make sure to create a backup. Also, make sure to shutdown JIRA first, and restart it afterwards. ---- h4. +Notes:+ This seems to be happening because JIRA Service Desk does not remove or hide the *Service Desk Customer - Portal Access (Anyone)* permission, and when JIRA tries to load it the following is thrown in the screen: {noformat:borderStyle=dashed| borderColor=#6A8EB3 |bgColor=#F8F8F8} java.lang.NullPointerException at com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasSchemePermission(DefaultPermissionSchemeManager.java:499) at com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasPermission(DefaultPermissionSchemeManager.java:467) at com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasSchemeAuthority(DefaultPermissionSchemeManager.java:393) {noformat} This also appears in the logs: {noformat:borderStyle=dashed| borderColor=#6A8EB3 |bgColor=#F8F8F8} 2014-02-14 14:37:39,773 http-bio-8080-exec-1 ERROR matheus 877x158x5 1fqd1vy 192.168.10.104 /rest/gadget/1.0/issueTable/jql [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service java.lang.NullPointerException at com.atlassian.jira.issue.search.parameters.lucene.DefaultPermissionQueryFactory.collectProjectTerms(DefaultPermissionQueryFactory.java:171) at com.atlassian.jira.issue.search.parameters.lucene.DefaultPermissionQueryFactory.getQuery(DefaultPermissionQueryFactory.java:68) at com.atlassian.jira.issue.search.parameters.lucene.PermissionsFilterGeneratorImpl.getQuery(PermissionsFilterGeneratorImpl.java:38) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.getPermissionsFilter(LuceneSearchProvider.java:522) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.getHits(LuceneSearchProvider.java:281) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.search(LuceneSearchProvider.java:414) {noformat} |
New:
{panel:bgColor=#e7f4fa} *NOTE:* This bug report is for *JIRA Service Desk Server*. Using *JIRA Service Desk Cloud*? [See the corresponding bug report|http://jira.atlassian.com/browse/JSDCLOUD-337]. {panel} h3. +Steps to Reproduce:+ # Install JIRA Service Desk; # Create a Project through JIRA Service Desk; # Disable or Uninstall JIRA Service Desk. h3. +Expected Behavior:+ JIRA would hide/remove any configuration regarding JIRA Service Desk, and would continue to run normally. h3. +Actual Behavior:+ * JIRA's dashboards stop working; * It is not possible to log in but through login.jsp; * Accessing a project is not possible; * Trying to view the Permission tab through the project created throws an error. ---- h3. +Workaround+ *+Option 1:+* Reinstall/Re-enable JIRA Service Desk. *+Option 2:+* # If unable to log in, access JIRA through http://<jira-address>/login.jsp # Navigate to *Administration » Issues » Permission Scheme*; # Delete "*• (Anyone)*" from all permissions in all permission schemes. *+Option 3:+* Delete these from the database using: {code:SQL| borderStyle=dashed| borderColor=#6A8EB3 |bgColor=#F8F8F8} DELETE FROM schemepermissions WHERE perm_type = 'sd.customer.portal.only'; {code} (!) If deleting through the database, please make sure to create a backup. Also, make sure to shutdown JIRA first, and restart it afterwards. ---- h4. +Notes:+ This seems to be happening because JIRA Service Desk does not remove or hide the *Service Desk Customer - Portal Access (Anyone)* permission, and when JIRA tries to load it the following is thrown in the screen: {noformat:borderStyle=dashed| borderColor=#6A8EB3 |bgColor=#F8F8F8} java.lang.NullPointerException at com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasSchemePermission(DefaultPermissionSchemeManager.java:499) at com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasPermission(DefaultPermissionSchemeManager.java:467) at com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasSchemeAuthority(DefaultPermissionSchemeManager.java:393) {noformat} This also appears in the logs: {noformat:borderStyle=dashed| borderColor=#6A8EB3 |bgColor=#F8F8F8} 2014-02-14 14:37:39,773 http-bio-8080-exec-1 ERROR matheus 877x158x5 1fqd1vy 192.168.10.104 /rest/gadget/1.0/issueTable/jql [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service java.lang.NullPointerException at com.atlassian.jira.issue.search.parameters.lucene.DefaultPermissionQueryFactory.collectProjectTerms(DefaultPermissionQueryFactory.java:171) at com.atlassian.jira.issue.search.parameters.lucene.DefaultPermissionQueryFactory.getQuery(DefaultPermissionQueryFactory.java:68) at com.atlassian.jira.issue.search.parameters.lucene.PermissionsFilterGeneratorImpl.getQuery(PermissionsFilterGeneratorImpl.java:38) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.getPermissionsFilter(LuceneSearchProvider.java:522) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.getHits(LuceneSearchProvider.java:281) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.search(LuceneSearchProvider.java:414) {noformat} |
Link |
New:
This issue relates to |
Labels | Original: affects-server | New: affects-cloud affects-server |
Labels | New: affects-server |
Workflow | Original: JSD Bug Workflow v2 [ 1602966 ] | New: JSD Bug Workflow v4 [ 1615796 ] |