Project

General

Profile

Feature #4776

DBSchemaLoader should prompt for password if parameter is missing

Added by Wojciech Kapcia TigaseTeam over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
Due date:
2017-03-20
% Done:

100%

Estimated time:
Database:
n/a
Source Code Disclaimer:

Description

Currently DBSchemaLoader assumes default passwords if the parameters are missing - it would be better if it would prompt for a password to avoid entering it in plain text in commandline.


Related issues

Related to Tigase Message Archiving - Support #5164: tigase-message-archiving - Build # 1592 - Failure!Closed2017-03-30

Related to Tigase MUC - Bug #5165: tigase-muc - Build # 1975 - Failure!Closed2017-03-30

Related to Tigase HTTP API - Bug #5166: tigase-http-api - Build # 1408 - Failure!Closed2017-03-30

Associated revisions

Revision 201cc73a (diff)
Added by W Administrator about 2 years ago

#4776: command-line parser, handling both single-letter parameter (space separated value) and full-name parameter (equal-sign separated value), sensitive data is correctly retrieved; support for interactive mode in which user is prompted for all non-provided parameters;

Revision d01bfdd2 (diff)
Added by W Administrator about 2 years ago

#4776: integrate tigase.util.ui.console.ParameterParser in DBSchemaLoader

Revision f177d828 (diff)
Added by W Administrator about 2 years ago

#4776: remove per-database scripts and redirect everything to directly to DBSchemaLoader

Revision d5db2ef5 (diff)
Added by W Administrator about 2 years ago

#4776: move DBSchemaLoader to tigase.db.util package

Revision 71d6fb2b (diff)
Added by W Administrator about 2 years ago

#4776: this was supposed to be below right from the start

Revision 7c84da06 (diff)
Added by W Administrator about 2 years ago

#4776: if provided file doesn’t exist then skip it instead of throwing exception

History

#1 Updated by Wojciech Kapcia TigaseTeam about 2 years ago

  • Due date set to 2017-03-20
  • Start date deleted (2016-12-21)

#2 Updated by Wojciech Kapcia TigaseTeam about 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Current parameter parser was… lacking and quite rough. So in the end I've created rather generic one: tigase.util.ui.console.ParameterParser (which we can use in different projects) and then integrated it into DBSchemaLoader. For the sake of simplicity I've also left only two scripts/db-create.* scripts (@sh@ for *nix and cmd for Windows) and redirected all parameter handling to DBSchemaLoader (so instead of maintaining it up-to-date in couple of places we have only single one.

#3 Updated by Wojciech Kapcia TigaseTeam about 2 years ago

  • Status changed from Resolved to Closed

#4 Updated by Wojciech Kapcia TigaseTeam about 2 years ago

  • Related to Support #5164: tigase-message-archiving - Build # 1592 - Failure! added

#5 Updated by Wojciech Kapcia TigaseTeam about 2 years ago

  • Related to Bug #5165: tigase-muc - Build # 1975 - Failure! added

#6 Updated by Wojciech Kapcia TigaseTeam about 2 years ago

  • Related to Bug #5166: tigase-http-api - Build # 1408 - Failure! added

Also available in: Atom PDF