All versions of POI do this all the way back well as long as I can
remember. Changing this is innocuous. you know when you install Excel
how it asks for your name? You know how it stamps that in files, etc.
This is that. We just grabbed the user.name because it was the only
thing that made sense to put in there.
I'd be cool if you submitted a patch that caught a security exception
(in the event it can't be accessed) and perhaps let the user of the API
set this via some getters and setters if they please.
-Andy
On Tue, 2002-10-08 at 17:55, Nicholson, Dale wrote:
> I was building an EJB to implement POI for my programs and had a problem
> with access to system properties in the Workbook class.
>
> In build 1.8.0, the createWriteAccess() method calls
> System.getProperty("user.name"). My application server does not allow
> access to system properties so I had to modify the source and hard code a
> value for user.name in my implementation. I realize this probably does not
> affect most users, I assume that most application servers might not be able
> to modify system properties but would at least be able to read them.
>
> Does anyone know if there will be any other unforseen problems with me doing
> this? What about other places this might be a problem? Are system
> properties being accessed in all recent versions of POI?
>
> TIA.
>
> Dale Nicholson
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
--
http://www.superlinksoftware.com - software solutions for business
http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
Java
http://krysalis.sourceforge.net/centipede - the best build/project
structure
a guy/gal could have! - Make Ant simple on complex Projects!
The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>