Issue Details (XML | Word | Printable)

Key: DERBY-535
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Kathey Marsden
Reporter: Daniel John Debrunner
Votes: 0
Watchers: 0
Operations

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

Driver.acceptsURL() for embedded driver incorrectly returns true for a client url like jdbc:derby://

Created: 25/Aug/05 01:01 AM   Updated: 20/Mar/07 09:54 PM
Return to search
Component/s: JDBC
Affects Version/s: 10.1.1.0
Fix Version/s: 10.1.2.1, 10.2.1.6

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works DERBY535.diff 2005-08-26 05:23 AM Kathey Marsden 9 kB

Resolution Date: 29/Aug/05 09:53 PM


 Description  « Hide
org.apache.derby.jdbc.InternalDriver.acceptsURL will return tru for any URL starting with jdbc:derby: which of course incorrectly includes jdbc:derby://

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #240352 Fri Aug 26 22:00:39 UTC 2005 kmarsden DERBY-535 Driver.acceptsURL() for embedded driver incorrectly returns true for
a client url like jdbc:derby://

Changed embedded driver to reject network URL's
Added test for testing driver methods.
Files Changed
MODIFY /db/derby/code/trunk/java/engine/org/apache/derby/jdbc/InternalDriver.java
ADD /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/checkDriver.out
MODIFY /db/derby/code/trunk/java/engine/org/apache/derby/iapi/reference/Attribute.java
ADD /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/checkDriver.java
MODIFY /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/copyfiles.ant

Repository Revision Date User Message
ASF #263981 Mon Aug 29 01:10:44 UTC 2005 kmarsden DERBY-535 Driver.acceptsURL() for embedded driver incorrectly returns true for
a client url like jdbc:derby://

Changed embedded driver to reject network URL's
Added test for testing driver methods.
Files Changed
MODIFY /db/derby/code/branches/10.1/java/engine/org/apache/derby/iapi/reference/Attribute.java
MODIFY /db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/copyfiles.ant
ADD /db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/checkDriver_app.properties (from /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/checkDriver_app.properties)
ADD /db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/checkDriver.java (from /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/checkDriver.java)
MODIFY /db/derby/code/branches/10.1/java/engine/org/apache/derby/jdbc/InternalDriver.java
ADD /db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/master/checkDriver.out (from /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/checkDriver.out)