Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 298979 - EclipseLog fails under Security Manager when checking log file size
Summary: EclipseLog fails under Security Manager when checking log file size
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.6 M5   Edit
Assignee: equinox.framework-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-06 14:13 EST by Mike Mansell CLA
Modified: 2010-01-06 14:57 EST (History)
1 user (show)

See Also:


Attachments
Fixed the bug when logging under the SecurityManager (973 bytes, patch)
2010-01-06 14:14 EST, Mike Mansell CLA
tjwatson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Mansell CLA 2010-01-06 14:13:40 EST
Build Identifier: R3_5_1

When checking for the log file size, the EclipseLog code directly accesses the java.io.File.length method. However, this checks permissions. Instead, it should be using the secureAction handler. Patch provided with this small change.

Reproducible: Always

Steps to Reproduce:
1. Enable a SecurityManager
2. Attempt to log to the EclipseLog
Comment 1 Mike Mansell CLA 2010-01-06 14:14:38 EST
Created attachment 155437 [details]
Fixed the bug when logging under the SecurityManager
Comment 2 Thomas Watson CLA 2010-01-06 14:56:36 EST
Thanks Mike! Patch has been released for 3.6.
Comment 3 Thomas Watson CLA 2010-01-06 14:57:28 EST
Comment on attachment 155437 [details]
Fixed the bug when logging under the SecurityManager

Mark patch for iplog.