DKP Log Parser Forum Index
 Forum FAQ   Search   Register   Log in 
 About   Download   Forum   Wiki   Development
Problems with preprocessor permissions under Win32

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DKP Log Parser Forum Index -> Error reports

Author

Message

Ancaglon



Joined: 28 Sep 2006
Posts: 18

PostPosted: Sun Oct 01, 2006 11:51 am    Post subject: Problems with preprocessor permissions under Win32

Reply with quote


... but NOT under Linux!

I don't know what I'm doing wrong, but the fingerprinting seems to go okay, I then click the checkboxes for the permission to read and write the temporary file (exactly as with Linux), but they never become enabled. However, when I try to parse, the errors.txt indicates that permission to read the log file was denied, long before it gets to writing anything to the output file.

While it does work under Linux, I'd like to get it working with Win32 because the people who need to use it don't necessarily have a Linux machine available.



errors.txt
 Description:
Java error log

Download
 Filename:  errors.txt
 Filesize:  2.59 KB
 Downloaded:  170 Time(s)


ukeqpp_0.1.zip
 Description:
preprocessor

Download
 Filename:  ukeqpp_0.1.zip
 Filesize:  11.02 KB
 Downloaded:  187 Time(s)


ppraidlog.txt
 Description:
input file

Download
 Filename:  ppraidlog.txt
 Filesize:  3.46 KB
 Downloaded:  157 Time(s)

Back to top

Lokorin
Site Admin


Joined: 03 Apr 2006
Posts: 697

PostPosted: Sun Oct 01, 2006 1:06 pm    Post subject:

Reply with quote


Interesting, I have not had the opportunity to test preprocessors under Windows so I'm very glad that you reported this.

The permission to read the log to be parsed is supposed to be given and revoked by a wrapper found in com.lokorin.dkplp.preproc.PreprocessorHandler.getPreprocessor(), so I would assume that
the error could be pinpointed by setting breakpoints there and examining the security manager and policy file (~/.dkplp/dkplp.policy) to see where things go wrong. The issue has been entered as defect DLPC43.

Back to top

Ancaglon



Joined: 28 Sep 2006
Posts: 18

PostPosted: Sun Oct 01, 2006 5:32 pm    Post subject:

Reply with quote


The policy file seems to show that it gets confused between Unix style and Windows style paths... it seems to be trying to add the full path, with backslashes translated, to the home directory path. I'm afraid I don't know enough Java to be able to work out how to debug this though.

Is there any way I could just disable the security manager? (Yes, I know, bad idea, etc....)

Back to top

Ancaglon



Joined: 28 Sep 2006
Posts: 18

PostPosted: Sun Oct 01, 2006 8:40 pm    Post subject:

Reply with quote


Hmmm... I just tried to set up a temporary http-style pre-processor to do this in the interim, and neither version (Win32 nor Linux) wants to use it -- complains that it wasn't found....

Back to top

Lokorin
Site Admin


Joined: 03 Apr 2006
Posts: 697

PostPosted: Mon Oct 02, 2006 5:49 am    Post subject:

Reply with quote


Ancaglon wrote:
The policy file seems to show that it gets confused between Unix style and Windows style paths... it seems to be trying to add the full path, with backslashes translated, to the home directory path. I'm afraid I don't know enough Java to be able to work out how to debug this though.


Aye, that might be it. I wil try to make some temporary fixes when I get the time.

Back to top

Lokorin
Site Admin


Joined: 03 Apr 2006
Posts: 697

PostPosted: Tue Oct 03, 2006 5:15 pm    Post subject:

Reply with quote


A fix for the http:// problem has been submitted to the subversion repository (svn://dkplp.org) along with a possible fix for this bug. I'm however not able to test it under Windows, so I would appreciate if you could check out the latest revision of /branches/client/1.4.0 and test that part. If you would prefer a compiled development build of the latest revision then say the word and I will upload one.

Back to top

Ancaglon



Joined: 28 Sep 2006
Posts: 18

PostPosted: Tue Oct 03, 2006 9:50 pm    Post subject:

Reply with quote


I'm afraid I'll have to ask for a built version, since I'm not very familiar with Subversion or Java development.... I'll be happy to test it if you build it though Smile under Linux or Win32.

Back to top

Lokorin
Site Admin


Joined: 03 Apr 2006
Posts: 697

PostPosted: Wed Oct 04, 2006 7:12 am    Post subject:

Reply with quote


Here's a build for Win32.


dkp-log-parser-win32.zip
 Description:
Development build 1.4.0d dev for Win32

Download
 Filename:  dkp-log-parser-win32.zip
 Filesize:  4.53 MB
 Downloaded:  204 Time(s)

Back to top

Ancaglon



Joined: 28 Sep 2006
Posts: 18

PostPosted: Wed Oct 04, 2006 1:44 pm    Post subject:

Reply with quote


Okay, that works great!

I've attached the perl script I'm using as a preprocessor:



pseudoxmlrpc.pl.txt
 Description:
Perl pseudo-http-xml-rpc preprocessor

Download
 Filename:  pseudoxmlrpc.pl.txt
 Filesize:  4.23 KB
 Downloaded:  143 Time(s)

Back to top

Lokorin
Site Admin


Joined: 03 Apr 2006
Posts: 697

PostPosted: Thu Oct 12, 2006 5:12 pm    Post subject:

Reply with quote


The fix is now release publicly in 1.4.0d . Nice script by the way, I know other people have asked for a way to use perl as preprocessor, I guess I will just direct them to your script in the future Wink

Back to top

Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DKP Log Parser Forum Index -> Error reports All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
SoftGreen 1.1 phpBB theme © DaTutorials.com 2005