Bug 794088 (JBEPP-1154) - EPP-SP: Need to provide a more useful exception message in log file for an AccessControlException
Summary: EPP-SP: Need to provide a more useful exception message in log file for an Ac...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: JBEPP-1154
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: Site Publisher
Version: 5.1.1.GA
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.2.0.CR01
Assignee: Martin Weiler
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-08 21:37 UTC by Matt Davis
Modified: 2012-02-28 16:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-25 14:42:01 UTC
Type: Feature Request


Attachments (Terms of Use)
UIDocumentForm.java (28.25 KB, text/x-java)
2011-09-08 21:38 UTC, Matt Davis
no flags Details
UIDocumentFormException.log (12.66 KB, text/plain)
2011-09-08 21:38 UTC, Matt Davis
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEPP-1154 0 None None None Never

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.



Note You need to log in before you can comment on or make changes to this bug.