incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Bloodhound" <bloodhound-...@incubator.apache.org>
Subject Re: [Apache Bloodhound] #154: Installer fails when providing repository type without a path and vice versa
Date Fri, 28 Sep 2012 17:11:22 GMT
#154: Installer fails when providing repository type without a path and vice
versa
------------------------+-----------------------
  Reporter:  gjm        |      Owner:  nobody
      Type:  defect     |     Status:  assigned
  Priority:  major      |  Milestone:  Release 2
 Component:  installer  |    Version:
Resolution:             |   Keywords:  starter
------------------------+-----------------------
Changes (by gjm):

 * owner:  gjm => nobody
 * status:  new => assigned


Comment:

 This may be difficult for a starter to interpret without further comment.
 So...

 The failure of the installation is because if someone runs one of these
 commands in the setup phase:

 {{{
 python bloodhound_setup.py -d sqlite --admin-password=password
 --repository-type=svn
 }}}
 or
 {{{
 python bloodhound_setup.py -d sqlite --admin-password=password
 --repository-path=/path/to/repo
 }}}

 you will see the output
 {{{
 Initenv for
 '/home/gjm/projects/bloodhound_dev/trunk/installer/bloodhound/environments/main'
 failed.
 Wrong number of arguments: 3
 }}}
 followed by a traceback.

 The traceback itself is because the trac.do_initenv method (around line
 179 of installer/bloodhound_setup.py) completes unsuccessfully but without
 throwing an exception, causing a problem for later code when an expected
 path doesn't exist. Or something like that.

 We can avoid the problem by making sure that we either pass both the
 repository type and repository path or neither.

 I am still torn on whether we need to stop the setup when either is
 missing so perhaps it would be better to output a warning saying that the
 repository specification was ignored.

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/154#comment:2>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker

Mime
View raw message