Bug 794088 (JBEPP-1154)

Summary: EPP-SP: Need to provide a more useful exception message in log file for an AccessControlException
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Matt Davis <mattd>
Component: Site PublisherAssignee: Martin Weiler <mweiler>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.1.1.GACC: epp-bugs, mweiler
Target Milestone: ---   
Target Release: 5.2.0.CR01   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-1154
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-25 14:42:01 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
UIDocumentForm.java
none
UIDocumentFormException.log none

Description Matt Davis 2011-09-08 21:37:18 UTC
Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A0000007sUdm&sfdc.override=1
project_key: JBEPP

When there is an AccessControlException, a stacktrace is logged, however there is no useful information to help identify the root cause of the problem. 

Proposed change is in attached UIDocumentForm.java :

In the java file, the change is marked by comments. The proposed fix is:

      // RECOMMENDED CHANGE HERE
      //LOG.error("Unexpected error", e);
      LOG.error("User Access Error, user [" + userName + "] does not have access to the template for content type [" +
		      contentType + "] in repository + [" + repositoryName + "]");
      // END RECOMMENDED CHANGE

Exception log also attached.

Comment 1 Matt Davis 2011-09-08 21:38:07 UTC
Attachment: Added: UIDocumentForm.java


Comment 2 Matt Davis 2011-09-08 21:38:19 UTC
Attachment: Added: UIDocumentFormException.log


Comment 4 Martin Weiler 2011-10-27 11:03:46 UTC
Related ECMS issue on eXo side: https://jira.exoplatform.org/browse/ECMS-2730

Comment 5 Jared MORGAN 2011-11-16 03:05:58 UTC
Set Release Notes Not Yet Documented because this issue is a Customer-initiated issue.
When the issue is fixed, all issues with Helpdesk ticket references *must* have a release note provided, and
included in the Release Notes document.


Comment 6 Jared MORGAN 2011-11-16 03:05:58 UTC
Release Notes Docs Status: Added: Not Yet Documented
Release Notes Text: Added: CAUSE:

CONSEQUENCE:

FIX:

RESULT:


Comment 7 Martin Weiler 2011-11-25 14:27:51 UTC
Closing, at this issue was resolved in WCM 2.3.3 through https://jira.exoplatform.org/browse/ECMS-2730. Verified that this is making it into EPP 5.2.0 SitePublisher.

Comment 8 Martin Weiler 2011-11-25 14:42:01 UTC
Release Notes Text: Removed: CAUSE:

CONSEQUENCE:

FIX:

RESULT: Added: CAUSE:
  When an AccessControlException occurred, a stacktrace was logged, however there was no useful information to help identify the root cause of the problem. 
CONSEQUENCE:
  It was not possible from the exception to identify the root cause of the problem.
FIX:
  The error message of the thrown AccessControlException was improved to contain detais about the cause of the problem.
RESULT:


Comment 9 Jared MORGAN 2011-12-01 02:50:03 UTC
Release Notes Docs Status: Removed: Not Yet Documented Added: Documented as Resolved Issue
Release Notes Text: Removed: CAUSE:
  When an AccessControlException occurred, a stacktrace was logged, however there was no useful information to help identify the root cause of the problem. 
CONSEQUENCE:
  It was not possible from the exception to identify the root cause of the problem.
FIX:
  The error message of the thrown AccessControlException was improved to contain detais about the cause of the problem.
RESULT: Added: When an AccessControlException occurred, a stacktrace was logged, however there was no useful information to help identify the root cause of the problem. It was not possible to identify the root cause of the problem from the exception. The AccessControlException now contains details about the cause of the problem.