|
|
Author |
Message |
Ancaglon
Joined: 28 Sep 2006 Posts: 18
|
Posted: Sun Oct 01, 2006 11:51 am Post subject: Problems with preprocessor permissions under Win32 |
|
|
... 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.
| Description: |
|
 Download |
| Filename: |
errors.txt |
| Filesize: |
2.59 KB |
| Downloaded: |
170 Time(s) |
| Description: |
|
 Download |
| Filename: |
ukeqpp_0.1.zip |
| Filesize: |
11.02 KB |
| Downloaded: |
187 Time(s) |
| Description: |
|
 Download |
| Filename: |
ppraidlog.txt |
| Filesize: |
3.46 KB |
| Downloaded: |
157 Time(s) |
|
|
Back to top |
|
 |
Lokorin Site Admin
Joined: 03 Apr 2006 Posts: 697
|
Posted: Sun Oct 01, 2006 1:06 pm Post subject: |
|
|
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
|
Posted: Sun Oct 01, 2006 5:32 pm Post subject: |
|
|
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
|
Posted: Sun Oct 01, 2006 8:40 pm Post subject: |
|
|
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
|
Posted: Mon Oct 02, 2006 5:49 am Post subject: |
|
|
| 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
|
Posted: Tue Oct 03, 2006 5:15 pm Post subject: |
|
|
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
|
Posted: Tue Oct 03, 2006 9:50 pm Post subject: |
|
|
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 under Linux or Win32.
|
|
Back to top |
|
 |
Lokorin Site Admin
Joined: 03 Apr 2006 Posts: 697
|
Posted: Wed Oct 04, 2006 7:12 am Post subject: |
|
|
Here's a build for Win32.
| 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
|
Posted: Wed Oct 04, 2006 1:44 pm Post subject: |
|
|
Okay, that works great!
I've attached the perl script I'm using as a preprocessor:
| 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
|
Posted: Thu Oct 12, 2006 5:12 pm Post subject: |
|
|
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
|
|
Back to top |
|
 |
|