[Koha-bugs] [Bug 7428] New: koha-create shoud check for length of instancename

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 9 20:20:43 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7428

             Bug #: 7428
           Summary: koha-create shoud check for length of instancename
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: master
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Packaging
        AssignedTo: robin at catalyst.net.nz
        ReportedBy: magnus at enger.priv.no
         QAContact: ian.walls at bywatersolutions.com


"MySQL user names can be up to 16 characters long." (
http://dev.mysql.com/doc/refman/5.0/en/user-names.html )

koha-create constructs the mysql username for a new instance by prepending
"koha_" to the instancename. If this results in a username that is longer than
16 characters, mysql will give an error. 

koha-create should do one of these: 

- check the length of the provided instancename and exit with an explanatory
message if the mysql username will be too long

- truncate the instancename and use the resulting string as the mysql username,
making sure to put the right string in koha-conf.xml

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the Koha-bugs mailing list