This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 76557 - ganerating no-license.txt to tmp folder is risky
Summary: ganerating no-license.txt to tmp folder is risky
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 78232 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-18 13:39 UTC by pzajac
Modified: 2006-11-23 16:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2006-05-18 13:39:24 UTC
The no-license.txt file is written into file
${java.io.tmpdir}/no-license.txt

There is problem when on the machine work more developers (for example connected
to X-server). The file is created with access rights of first user. Therefore
the second user cannot access to the file.   

It should be better to generate the no-license file to build dir of project.

nbm-license-init:
/space/zajo/netbeans/harness/suite.xml:38: The following error occurred while
executing this line:
/space/zajo/netbeans/harness/build.xml:41: java.io.FileNotFoundException:
/var/tmp/no-license.txt (Permission denied)
BUILD FAILED (total time: 11 seconds)
Comment 1 Jesse Glick 2006-05-19 05:40:57 UTC
Thanks, good catch.

Checking in build.xml;
/shared/data/ccvs/repository/apisupport/harness/release/build.xml,v  <--  build.xml
new revision: 1.18; previous revision: 1.17
done
Comment 2 Maros Sandor 2006-05-23 14:52:42 UTC
I noticed that profiler build fails on my machine; it may be caused by this
patch or I have to investigate further on my side. The problem is that the
'build' directory does not exist when <echo file="${license.file}">[NO LICENSE
SPECIFIED]</echo> executes.
F:\projects\profiler\build\netbeans\harness\build.xml:41:
java.io.FileNotFoundException:
F:\projects\profiler\profiler\modules\profiler-main\build\no-license.txt (The
system cannot find the path specified)
Comment 3 Martin Krauskopf 2006-05-23 14:58:22 UTC
I've just encountered the same with library wrapper module.
Comment 4 pzajac 2006-05-23 15:15:25 UTC
Yes the build fails. It can be simply reproduced on FeedReader example.

files-init:
nbm-license-init:
/home/pzajac/builds/daily/netbeans/harness/suite.xml:38: The following error
occurred while executing this line:
/home/pzajac/builds/daily/netbeans/harness/build.xml:41:
java.io.FileNotFoundException:
/tmp/feedreader-suite/FeedReader/build/no-license.txt (No such file or directory)
BUILD FAILED (total time: 1 second)
Comment 5 Jesse Glick 2006-05-24 00:51:29 UTC
Right.

committed     Up-To-Date  1.19        apisupport/harness/release/build.xml
Comment 6 Jesse Glick 2006-06-19 19:54:53 UTC
*** Issue 78232 has been marked as a duplicate of this issue. ***
Comment 7 pzajac 2006-11-23 16:52:22 UTC
verified