You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by "Maxim Solodovnik (JIRA)" <ji...@apache.org> on 2012/04/28 11:59:49 UTC

[jira] [Resolved] (OPENMEETINGS-245) configuration table is not backup/restored

     [ https://issues.apache.org/jira/browse/OPENMEETINGS-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maxim Solodovnik resolved OPENMEETINGS-245.
-------------------------------------------

    Resolution: Fixed
    
> configuration table is not backup/restored
> ------------------------------------------
>
>                 Key: OPENMEETINGS-245
>                 URL: https://issues.apache.org/jira/browse/OPENMEETINGS-245
>             Project: Openmeetings
>          Issue Type: Improvement
>          Components: BuildsAndReleases
>    Affects Versions: 2.0 Apache Incubator Release
>            Reporter: Maxim Solodovnik
>            Assignee: Maxim Solodovnik
>             Fix For: 2.0 Apache Incubator Release
>
>
> configuration table is not backup/restored

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] [Resolved] (OPENMEETINGS-245) configuration table is not backup/restored

Posted by Maxim Solodovnik <so...@gmail.com>.
all default config key-values will be added, then config values from XML
will be applied.

On Sat, Apr 28, 2012 at 18:54, seba.wagner@gmail.com
<se...@gmail.com>wrote:

> Ok Thanks for the clarification!
>
> One more question:
> When you install a new version of OpenMeetings using your new method via
> CLI:
> admin -i --file $BackupFile
> => Will the install process just import the configuration values from the
> backup or first install the regular ones and then update it with the one
> from the backup
>
> Sebastian
>
>
> 2012/4/28 Maxim Solodovnik <so...@gmail.com>
>
>> Hello Sebastian,
>>
>> Both command line and web will be import/export configurations
>>
>> If configuration exists only value/comment/deleted will be updated
>> cfg.setConf_value(cfgElem.elementText("value"));
>>  cfg.setUpdatetime(new Date());
>> cfg.setDeleted(cfgElem.elementText("deleted"));
>>  cfg.setComment(cfgElem.elementText("comment"));
>>
>> If configuration was not exists it will be added.
>>
>> If DB contains configurations missing in the XML they will be ignored.
>>
>> import only updates/inserts configurations from the xml into DB (existing
>> data is not purging)
>>
>> On Sat, Apr 28, 2012 at 18:33, seba.wagner@gmail.com <
>> seba.wagner@gmail.com> wrote:
>>
>>> Hi Maxim,
>>>
>>> will the configuration values only be imported when you install from CLI
>>> or also via Web-Interface Upload ?
>>>
>>> How will the import work if the new version of OpenMeetings contains
>>> configuration values that do not exist in the backup file?
>>> Will you check the configuration table that it is complete after the
>>> backup is imported?
>>>
>>> And How will the import work if the configuration values already exists?
>>> Will it perform an "insert" or and "update"? Will there be duplicated
>>> configuration keys after the import if you did no empty the table manually
>>> before importing?
>>>
>>> Sebastian
>>>
>>> 2012/4/28 Maxim Solodovnik (JIRA) <ji...@apache.org>
>>>
>>>>
>>>>     [
>>>> https://issues.apache.org/jira/browse/OPENMEETINGS-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>>>>
>>>> Maxim Solodovnik resolved OPENMEETINGS-245.
>>>> -------------------------------------------
>>>>
>>>>    Resolution: Fixed
>>>>
>>>> > configuration table is not backup/restored
>>>> > ------------------------------------------
>>>> >
>>>> >                 Key: OPENMEETINGS-245
>>>> >                 URL:
>>>> https://issues.apache.org/jira/browse/OPENMEETINGS-245
>>>> >             Project: Openmeetings
>>>> >          Issue Type: Improvement
>>>> >          Components: BuildsAndReleases
>>>> >    Affects Versions: 2.0 Apache Incubator Release
>>>> >            Reporter: Maxim Solodovnik
>>>> >            Assignee: Maxim Solodovnik
>>>> >             Fix For: 2.0 Apache Incubator Release
>>>> >
>>>> >
>>>> > configuration table is not backup/restored
>>>>
>>>> --
>>>> This message is automatically generated by JIRA.
>>>> If you think it was sent incorrectly, please contact your JIRA
>>>> administrators:
>>>> https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
>>>> For more information on JIRA, see:
>>>> http://www.atlassian.com/software/jira
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Sebastian Wagner
>>> https://twitter.com/#!/dead_lock
>>> http://www.openmeetings.de
>>> http://www.webbase-design.de
>>> http://www.wagner-sebastian.com
>>> seba.wagner@gmail.com
>>>
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.openmeetings.de
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wagner@gmail.com
>



-- 
WBR
Maxim aka solomax

Re: [jira] [Resolved] (OPENMEETINGS-245) configuration table is not backup/restored

Posted by "seba.wagner@gmail.com" <se...@gmail.com>.
Ok Thanks for the clarification!

One more question:
When you install a new version of OpenMeetings using your new method via
CLI:
admin -i --file $BackupFile
=> Will the install process just import the configuration values from the
backup or first install the regular ones and then update it with the one
from the backup

Sebastian

2012/4/28 Maxim Solodovnik <so...@gmail.com>

> Hello Sebastian,
>
> Both command line and web will be import/export configurations
>
> If configuration exists only value/comment/deleted will be updated
> cfg.setConf_value(cfgElem.elementText("value"));
>  cfg.setUpdatetime(new Date());
> cfg.setDeleted(cfgElem.elementText("deleted"));
>  cfg.setComment(cfgElem.elementText("comment"));
>
> If configuration was not exists it will be added.
>
> If DB contains configurations missing in the XML they will be ignored.
>
> import only updates/inserts configurations from the xml into DB (existing
> data is not purging)
>
> On Sat, Apr 28, 2012 at 18:33, seba.wagner@gmail.com <
> seba.wagner@gmail.com> wrote:
>
>> Hi Maxim,
>>
>> will the configuration values only be imported when you install from CLI
>> or also via Web-Interface Upload ?
>>
>> How will the import work if the new version of OpenMeetings contains
>> configuration values that do not exist in the backup file?
>> Will you check the configuration table that it is complete after the
>> backup is imported?
>>
>> And How will the import work if the configuration values already exists?
>> Will it perform an "insert" or and "update"? Will there be duplicated
>> configuration keys after the import if you did no empty the table manually
>> before importing?
>>
>> Sebastian
>>
>> 2012/4/28 Maxim Solodovnik (JIRA) <ji...@apache.org>
>>
>>>
>>>     [
>>> https://issues.apache.org/jira/browse/OPENMEETINGS-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>>>
>>> Maxim Solodovnik resolved OPENMEETINGS-245.
>>> -------------------------------------------
>>>
>>>    Resolution: Fixed
>>>
>>> > configuration table is not backup/restored
>>> > ------------------------------------------
>>> >
>>> >                 Key: OPENMEETINGS-245
>>> >                 URL:
>>> https://issues.apache.org/jira/browse/OPENMEETINGS-245
>>> >             Project: Openmeetings
>>> >          Issue Type: Improvement
>>> >          Components: BuildsAndReleases
>>> >    Affects Versions: 2.0 Apache Incubator Release
>>> >            Reporter: Maxim Solodovnik
>>> >            Assignee: Maxim Solodovnik
>>> >             Fix For: 2.0 Apache Incubator Release
>>> >
>>> >
>>> > configuration table is not backup/restored
>>>
>>> --
>>> This message is automatically generated by JIRA.
>>> If you think it was sent incorrectly, please contact your JIRA
>>> administrators:
>>> https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
>>> For more information on JIRA, see:
>>> http://www.atlassian.com/software/jira
>>>
>>>
>>>
>>
>>
>> --
>> Sebastian Wagner
>> https://twitter.com/#!/dead_lock
>> http://www.openmeetings.de
>> http://www.webbase-design.de
>> http://www.wagner-sebastian.com
>> seba.wagner@gmail.com
>>
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
Sebastian Wagner
https://twitter.com/#!/dead_lock
http://www.openmeetings.de
http://www.webbase-design.de
http://www.wagner-sebastian.com
seba.wagner@gmail.com

Re: [jira] [Resolved] (OPENMEETINGS-245) configuration table is not backup/restored

Posted by Maxim Solodovnik <so...@gmail.com>.
Hello Sebastian,

Both command line and web will be import/export configurations

If configuration exists only value/comment/deleted will be updated
cfg.setConf_value(cfgElem.elementText("value"));
cfg.setUpdatetime(new Date());
cfg.setDeleted(cfgElem.elementText("deleted"));
cfg.setComment(cfgElem.elementText("comment"));

If configuration was not exists it will be added.

If DB contains configurations missing in the XML they will be ignored.

import only updates/inserts configurations from the xml into DB (existing
data is not purging)

On Sat, Apr 28, 2012 at 18:33, seba.wagner@gmail.com
<se...@gmail.com>wrote:

> Hi Maxim,
>
> will the configuration values only be imported when you install from CLI
> or also via Web-Interface Upload ?
>
> How will the import work if the new version of OpenMeetings contains
> configuration values that do not exist in the backup file?
> Will you check the configuration table that it is complete after the
> backup is imported?
>
> And How will the import work if the configuration values already exists?
> Will it perform an "insert" or and "update"? Will there be duplicated
> configuration keys after the import if you did no empty the table manually
> before importing?
>
> Sebastian
>
> 2012/4/28 Maxim Solodovnik (JIRA) <ji...@apache.org>
>
>>
>>     [
>> https://issues.apache.org/jira/browse/OPENMEETINGS-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>>
>> Maxim Solodovnik resolved OPENMEETINGS-245.
>> -------------------------------------------
>>
>>    Resolution: Fixed
>>
>> > configuration table is not backup/restored
>> > ------------------------------------------
>> >
>> >                 Key: OPENMEETINGS-245
>> >                 URL:
>> https://issues.apache.org/jira/browse/OPENMEETINGS-245
>> >             Project: Openmeetings
>> >          Issue Type: Improvement
>> >          Components: BuildsAndReleases
>> >    Affects Versions: 2.0 Apache Incubator Release
>> >            Reporter: Maxim Solodovnik
>> >            Assignee: Maxim Solodovnik
>> >             Fix For: 2.0 Apache Incubator Release
>> >
>> >
>> > configuration table is not backup/restored
>>
>> --
>> This message is automatically generated by JIRA.
>> If you think it was sent incorrectly, please contact your JIRA
>> administrators:
>> https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
>> For more information on JIRA, see: http://www.atlassian.com/software/jira
>>
>>
>>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.openmeetings.de
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> seba.wagner@gmail.com
>



-- 
WBR
Maxim aka solomax

Re: [jira] [Resolved] (OPENMEETINGS-245) configuration table is not backup/restored

Posted by "seba.wagner@gmail.com" <se...@gmail.com>.
Hi Maxim,

will the configuration values only be imported when you install from CLI or
also via Web-Interface Upload ?

How will the import work if the new version of OpenMeetings contains
configuration values that do not exist in the backup file?
Will you check the configuration table that it is complete after the backup
is imported?

And How will the import work if the configuration values already exists?
Will it perform an "insert" or and "update"? Will there be duplicated
configuration keys after the import if you did no empty the table manually
before importing?

Sebastian

2012/4/28 Maxim Solodovnik (JIRA) <ji...@apache.org>

>
>     [
> https://issues.apache.org/jira/browse/OPENMEETINGS-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Maxim Solodovnik resolved OPENMEETINGS-245.
> -------------------------------------------
>
>    Resolution: Fixed
>
> > configuration table is not backup/restored
> > ------------------------------------------
> >
> >                 Key: OPENMEETINGS-245
> >                 URL:
> https://issues.apache.org/jira/browse/OPENMEETINGS-245
> >             Project: Openmeetings
> >          Issue Type: Improvement
> >          Components: BuildsAndReleases
> >    Affects Versions: 2.0 Apache Incubator Release
> >            Reporter: Maxim Solodovnik
> >            Assignee: Maxim Solodovnik
> >             Fix For: 2.0 Apache Incubator Release
> >
> >
> > configuration table is not backup/restored
>
> --
> This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA
> administrators:
> https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>


-- 
Sebastian Wagner
https://twitter.com/#!/dead_lock
http://www.openmeetings.de
http://www.webbase-design.de
http://www.wagner-sebastian.com
seba.wagner@gmail.com