Opened 17 years ago

Closed 17 years ago

#983 closed defect (fixed)

update.sh script doesn't validate parameters

Reported by: Jari Häkkinen Owned by: Nicklas Nordborg
Priority: trivial Milestone: BASE 2.6.2
Component: install Version: trunk
Keywords: Cc:

Description

I am following the Illumina plug-in installation recipe and read that I should run BASE cores 'update.sh' to create needed database support> So I do

bin> ./updatedb.sh 


java.lang.ArrayIndexOutOfBoundsException: 1
	at net.sf.basedb.install.InitDB.main(InitDB.java:66)

???? What is wrong? Two things, I did not read the manual for how to use update.sh and the response of update.sh.

I know realize that I should give a couple of arguments such as install/upgrade and a password. How I end up in line 66 is a mystery.

I run a pre-release of Java 6 on Leopard (mac).

Change History (2)

comment:1 by Nicklas Nordborg, 17 years ago

Milestone: BASE 2.6.2
Owner: changed from everyone to Nicklas Nordborg
Priority: majortrivial
Status: newassigned
Summary: Problems running update.sh script with no argumentsupdate.sh script doesn't validate parameters

There is a bug in the code that doesn't detect an incorrect number of parameters.

comment:2 by Nicklas Nordborg, 17 years ago

Resolution: fixed
Status: assignedclosed

(In [4214]) Fixes #983: update.sh script doesn't validate parameters

Note: See TracTickets for help on using tickets.