Opened 5 years ago

Closed 5 years ago

#1972 closed enhancement (fixed)

SECORE_EPSG versions in secoredb folder which don't exist in def.war should be collected when it starts

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 9.8
Component: secore Version: 9.7
Keywords: Cc: Dimitar Misev, Vlad Merticariu
Complexity: Medium

Description

Currently, SECORE only regards EPSG versions which are included in def.war (e.g: version 8.5, 8.9.2 and 9.4.2). However, some existing versions (e.g: version 9.5, 9.5.2,…) which don't exist in def.war at tomcat/webapps/secoredb are not regarded and SECORE does not open these existing databases.

 DEBUG [2019-01-29 11:18:39] BaseX@95: The database gml_85 doesn't seem to exist
  INFO [2019-01-29 11:18:39] BaseX@97: Initializing database gml_85
  INFO [2019-01-29 11:18:43] BaseX@118: Database successfully initialized.
  INFO [2019-01-29 11:18:43] BaseX@92: Database connection to userdb successfully opened.
  INFO [2019-01-29 11:18:43] BaseX@92: Database connection to gml_942 successfully opened.
 DEBUG [2019-01-29 11:18:43] BaseX@95: The database gml_892 doesn't seem to exist
  INFO [2019-01-29 11:18:43] BaseX@97: Initializing database gml_892
  INFO [2019-01-29 11:18:46] BaseX@118: Database successfully initialized.
  INFO [2019-01-29 11:18:47] BaseX@92: Database connection to gml_0 successfully opened.

Change History (7)

comment:1 by Dimitar Misev, 5 years ago

Could we decouple the EPSG datasets to be outside of the def.war? So that a user could add their own for example if needed

in reply to:  1 comment:2 by Bang Pham Huu, 5 years ago

Replying to dmisev:

Could we decouple the EPSG datasets to be outside of the def.war? So that a user could add their own for example if needed

Yes, if this patch is fixed, they just need to add to secoredb a new EPSG version folder (e.g: tomcat/webapps/secoredb/gml_9.1)

comment:3 by Dimitar Misev, 5 years ago

Ok, then this should also be documented (e.g. what naming scheme should be used, permissions and such).

in reply to:  3 comment:4 by Bang Pham Huu, 5 years ago

Replying to dmisev:

Ok, then this should also be documented (e.g. what naming scheme should be used, permissions and such).

yes, it should be added to the patch also.

comment:5 by Bang Pham Huu, 5 years ago

Resolution: fixed
Status: newclosed

comment:6 by Dimitar Misev, 5 years ago

Resolution: fixed
Status: closedreopened

I see this now, it seems like the old dirs need to be removed by secore?

drwxrwxr-x. 2 rasdaman rasdaman 4096 Feb  2 08:10 gml_0
drwxrwxr-x. 2 rasdaman rasdaman 4096 Jan 24 14:10 gml_85
drwxrwxr-x. 2 rasdaman rasdaman 4096 Feb  2 08:10 gml_8.5
drwxrwxr-x. 2 rasdaman rasdaman 4096 Jan 24 14:10 gml_892
drwxrwxr-x. 2 rasdaman rasdaman 4096 Feb  2 08:10 gml_8.9.2
drwxrwxr-x. 2 rasdaman rasdaman 4096 Jan 24 14:10 gml_942
drwxrwxr-x. 2 rasdaman rasdaman 4096 Feb  2 08:10 gml_9.4.2
drwxrwxr-x. 2 rasdaman rasdaman 4096 Feb  2 08:10 userdb

comment:7 by Dimitar Misev, 5 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.