Issue Details (XML | Word | Printable)

Key: DERBY-613
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Deepa Remesh
Reporter: Daniel John Debrunner
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

Intended location of network server tracing files is not clear.

Created: 11/Oct/05 04:54 AM   Updated: 22/Oct/05 03:26 AM
Return to search
Component/s: Documentation, Network Server
Affects Version/s: 10.2.1.6
Fix Version/s: 10.1.2.1, 10.2.1.6

Time Tracking:
Not Specified

Resolution Date: 22/Oct/05 03:26 AM


 Description  « Hide
The javadoc for NetworkServer control says:

-----
tracedirectory <tracedirectory> [-h <host>] [-p <portnumber>]: This changes where new trace files will be placed. For sessions with tracing already turned on, trace files remain in the previous location. Default is clousdcape.system.home
------

Apart from the problem of cloudscape.system.home instead of derby.system.home, when I turn tracing on the trace files are created in the current directory (user.dir) and not derby.system.home. Also if the documentation is correct, then the location when derby.system.home is not set should be specified.

java -Dderby.system.home=$PWD/dsh org.apache.derby.drda.NetworkServerControl start

Then turn tracing on with

java org.apache.derby.drda.NetworkServerControl trace on

and connect.




 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #326289 Tue Oct 18 22:58:08 UTC 2005 djd DERBY-375 DERBY-613
Fix test failure for derbynet/getCurrentProperties.java

1. Removes the following permission from derbynet.jar and classes
directory. This is not required after the patch for DERBY-375.
permission java.io.FilePermission "${user.dir}${/}*", "write";

2. Grants the following permission to derbynet.jar. This is required
since tracing file location now defaults to ${derby.system.home}. The
test derbynet/getCurrentProperties.java uses this.
// tracing files default to derby.system.home,
derbynet/getCurrentProperties.java
permission java.io.FilePermission "${derby.system.home}${/}*", "write";

3. Grants the following permission to derbynet.jar and classes
directory. This is required by the test jdbcapi/secureUsers1.sql when
run using sane builds.
// sane=true, jdbcapi/secureUsers1.sql
permission java.io.FilePermission "${user.dir}${/}CloudLDAP.out", "write";

Contributed by Deepa Remesh dremesh@gmail.com
Files Changed
MODIFY /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy

Deepa Remesh added a comment - 20/Oct/05 05:13 AM
This patch has been fixed with DERBY-375.

Deepa Remesh made changes - 20/Oct/05 05:13 AM
Field Original Value New Value
Assignee Deepa Remesh [ deepa ]
Fix Version/s 10.2.0.0 [ 11187 ]
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Deepa Remesh made changes - 20/Oct/05 05:14 AM
Status Resolved [ 5 ] Closed [ 6 ]
Repository Revision Date User Message
ASF #327018 Thu Oct 20 22:39:09 UTC 2005 kmarsden DERBY-375 - Specification of incomplete server properties on command line causes NPE with NetworkServerControl when starting the server.
merge from trunk
DERBY-613 - Change default tracing location to derby.system.home

svn merge -r 321273:321274 https://svn.apache.org/repos/asf/db/derby/code/trunk
svn merge -r 326288:326289 https://svn.apache.org/repos/asf/db/derby/code/trunk

Contributed by Deepa Remesh
Files Changed
MODIFY /db/derby/code/branches/10.1/java/drda/org/apache/derby/impl/drda/NetworkServerControlImpl.java
MODIFY /db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/sysinfo_sed.properties
MODIFY /db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/master/testProperties.out
MODIFY /db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy
ADD /db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/getCurrentProperties_sed.properties (from /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/getCurrentProperties_sed.properties)
MODIFY /db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/testProperties.java
MODIFY /db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/copyfiles.ant
MODIFY /db/derby/code/branches/10.1/java/drda/org/apache/derby/drda/NetworkServerControl.java

Deepa Remesh added a comment - 21/Oct/05 09:05 AM
Re-opening to update fix version. This has been merged to 10.1 as revision 327018.

Deepa Remesh made changes - 21/Oct/05 09:05 AM
Resolution Fixed [ 1 ]
Status Closed [ 6 ] Reopened [ 4 ]
Deepa Remesh made changes - 21/Oct/05 09:05 AM
Fix Version/s 10.1.2.0 [ 12310270 ]
Deepa Remesh made changes - 22/Oct/05 03:26 AM
Resolution Fixed [ 1 ]
Status Reopened [ 4 ] Closed [ 6 ]