View Issue Details

IDProjectCategoryView StatusLast Update
0008264ADK-VCDKSQLpublic2018-05-21 14:19
ReporterChris ZakrewskyAssigned ToIvan Smahin 
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version8.3.x 
Summary0008264: VServer 8.2.1 - broken processing of "BACKUP DATABASE"
DescriptionFollowing sequence which works OK in v7.x is broken in v8.2:

  char *targetNameP = Database_GetName ( db );
  char *strP = strstr ( targetNameP, ".vdb" );

  if ( strP )
    *strP = '\0'; // cut off .vdb from name
  sprintf ( sql, "USE \"%s\"; BACKUP DATABASE TO \'C:\\Users\\Public\\Documents\' WITH DIAGNOSE", targetNameP );
  Connection_SqlExecute ( connection, sql, NULL, 0 );
  VCDK_Free ( targetNameP );


In v7.x it created a directory with copy of database.
In v8.2 it creates an empty directory and a copy of database (with malformed filename) outside of this directory (see the attached screenshot)
TagsNo tags attached.

Activities

Chris Zakrewsky

Chris Zakrewsky

2018-05-20 20:45

reporter  

Snapshot-2018-05-20-224425.png (8,680 bytes)
Chris Zakrewsky

Chris Zakrewsky

2018-05-20 20:49

reporter   ~0010181

Forgot to add, this is on Windows 10.
Ivan Smahin

Ivan Smahin

2018-05-21 07:40

manager   ~0010182

I guess you are about vKernel (Local mode) - not vServer, because in case of vServer (Remote mode) the path for backup will be completely ignored and backup will be stored into SYSTEMBACKUPCATALOG (see vServer's ini).
Chris Zakrewsky

Chris Zakrewsky

2018-05-21 08:13

reporter   ~0010183

I am talking about VServer.
I believe your statement is conflicting with current Valentina documentation, in this case the delivered vserver.ini:

  ; The full path, where backups are stored. (Folder must exist)
  ; param absence - means - clients may choose any folder on the server.
  ; SystemBackupCatalog=

The problem is reproducible on all my VServer instances deployed on Windows 10 machines. It works correctly on Linux deployments though.

I suspect you got corrupted directory delimiter somehow.

Issue History

Date Modified Username Field Change
2018-05-20 20:45 Chris Zakrewsky New Issue
2018-05-20 20:45 Chris Zakrewsky File Added: Snapshot-2018-05-20-224425.png
2018-05-20 20:49 Chris Zakrewsky Note Added: 0010181
2018-05-21 07:40 Ivan Smahin Note Added: 0010182
2018-05-21 08:13 Chris Zakrewsky Note Added: 0010183
2018-05-21 14:19 Ivan Smahin Status new => resolved
2018-05-21 14:19 Ivan Smahin Fixed in Version => 8.3.x
2018-05-21 14:19 Ivan Smahin Resolution open => fixed
2018-05-21 14:19 Ivan Smahin Assigned To => Ivan Smahin