Re: [Ifolder-dev] Incompatible database version

2007-02-23 Thread Ramesh Sunder

Hi

I am attaching a patch for updating the store version for both client as well 
as server.

Pls review.

Thanks,
--Ramesh
 
 
>>> Xabier Ezpeleta <[EMAIL PROTECTED]> 02/23/07 4:24 PM >>> 
First of all, thanks for your fast reply.

We are in a little trouble with this version change so, sure, we will 
check any patch you could provide us and give you all the feedback we
can about it.

Thanks


Balakrishnan KalIdas(e)k dio:
> Hi Xabier
>
>  This issue is fixed in the latest version. I will let Ramesh respond to this 
> about the revision in which it has been fixed.
>
>  We would like to know if it is ok for you to take a patch in case you are 
> unable to get the latest source RPM or check- out from svn.
>
> Thanks,
> Kalis
>   
 Xabier Ezpeleta <[EMAIL PROTECTED]> 02/23/07 4:12 PM >>>
 
>
> Hi,
>
> We had installed iFolder Server 3.5.6269 and running succesfully in 
> Debian Sarge. We have tried updating this version to iFolder Server 
> 3.5.7039, using the same simiasdatadir.
>
> Now when we start the server we have this error:
>
> ERROR Simias.Service.Manager -  Incompatible database version. Expected 
> version 1.1.0 -  Found version 1.0.1.
> Simias.SimiasException: Incompatible database version. Expected version 
> 1.1.0 -  Found version 1.0.1.
>
>
> The problem seems quite obvius, it seems that there is a database 
> version change, but what is the solution ?
>
> I can't find any tool or howto explaining anything about this migration. 
> Could anyone please help me or refer me to some information
> about this topic ?
>
> Thank you very much.
> ___
> ifolder- dev mailing list
> ifolder- [EMAIL PROTECTED] 
> http://forge.novell.com/mailman/listinfo/ifolder- dev
>   


Index: src/core/CollectionStore/Store.cs
===
--- src/core/CollectionStore/Store.cs   (revision 6728)
+++ src/core/CollectionStore/Store.cs   (working copy)
@@ -379,7 +379,7 @@
}
 
// Either create the store or authenticate to it.
-   if ( created )
+   if ( created )  // store is newly created...
{
try
{
@@ -448,7 +448,7 @@
throw;
}
}
-   else
+   else// store already existing
{
// Get the local database object.
LocalDatabase ldb = GetDatabaseObject();
@@ -456,10 +456,21 @@
{
throw new DoesNotExistException( "Local 
database object does not exist." );
}
-
// Compare the store version to make sure that 
it is correct.
-   if ( storeVersion != Version )
+   if( Version == "1.0.1")
{
+   try
+   {
+   ldb.Properties.AddNodeProperty( 
PropertyTags.StoreVersion, storeVersion );
+   ldb.Commit();
+   }
+   catch(Exception e)
+   {
+   }
+   }
+   else if ( storeVersion != Version )
+   {
+   // Change the store version if the 
store version is 1.0.1
throw new SimiasException( 
String.Format( "Incompatible database version. Expected version {0} - Found 
version {1}.", storeVersion, Version ) );
}
 
___
ifolder-dev mailing list
ifolder-dev@forge.novell.com
http://forge.novell.com/mailman/listinfo/ifolder-dev

Re: [Ifolder-dev] Incompatible database version

2007-02-23 Thread Xabier Ezpeleta

First of all, thanks for your fast reply.

We are in a little trouble with this version change so, sure, we will 
check any patch you could provide us and give you all the feedback we

can about it.

Thanks


Balakrishnan KalIdas(e)k dio:

Hi Xabier

 This issue is fixed in the latest version. I will let Ramesh respond to this 
about the revision in which it has been fixed.

 We would like to know if it is ok for you to take a patch in case you are 
unable to get the latest source RPM or check-out from svn.

Thanks,
Kalis
  

Xabier Ezpeleta <[EMAIL PROTECTED]> 02/23/07 4:12 PM >>>



Hi,

We had installed iFolder Server 3.5.6269 and running succesfully in 
Debian Sarge. We have tried updating this version to iFolder Server 
3.5.7039, using the same simiasdatadir.


Now when we start the server we have this error:

ERROR Simias.Service.Manager - Incompatible database version. Expected 
version 1.1.0 - Found version 1.0.1.
Simias.SimiasException: Incompatible database version. Expected version 
1.1.0 - Found version 1.0.1.



The problem seems quite obvius, it seems that there is a database 
version change, but what is the solution ?


I can't find any tool or howto explaining anything about this migration. 
Could anyone please help me or refer me to some information

about this topic ?

Thank you very much.
___
ifolder-dev mailing list
ifolder-dev@forge.novell.com 
http://forge.novell.com/mailman/listinfo/ifolder-dev
  


___
ifolder-dev mailing list
ifolder-dev@forge.novell.com
http://forge.novell.com/mailman/listinfo/ifolder-dev


Re: [Ifolder-dev] Incompatible database version

2007-02-23 Thread Balakrishnan KalIdas
Hi Xabier

 This issue is fixed in the latest version. I will let Ramesh respond to this 
about the revision in which it has been fixed.

 We would like to know if it is ok for you to take a patch in case you are 
unable to get the latest source RPM or check-out from svn.

Thanks,
Kalis
>>> Xabier Ezpeleta <[EMAIL PROTECTED]> 02/23/07 4:12 PM >>>

Hi,

We had installed iFolder Server 3.5.6269 and running succesfully in 
Debian Sarge. We have tried updating this version to iFolder Server 
3.5.7039, using the same simiasdatadir.

Now when we start the server we have this error:

ERROR Simias.Service.Manager - Incompatible database version. Expected 
version 1.1.0 - Found version 1.0.1.
Simias.SimiasException: Incompatible database version. Expected version 
1.1.0 - Found version 1.0.1.


The problem seems quite obvius, it seems that there is a database 
version change, but what is the solution ?

I can't find any tool or howto explaining anything about this migration. 
Could anyone please help me or refer me to some information
about this topic ?

Thank you very much.
___
ifolder-dev mailing list
ifolder-dev@forge.novell.com 
http://forge.novell.com/mailman/listinfo/ifolder-dev
___
ifolder-dev mailing list
ifolder-dev@forge.novell.com
http://forge.novell.com/mailman/listinfo/ifolder-dev


[Ifolder-dev] Incompatible database version

2007-02-23 Thread Xabier Ezpeleta


Hi,

We had installed iFolder Server 3.5.6269 and running succesfully in 
Debian Sarge. We have tried updating this version to iFolder Server 
3.5.7039, using the same simiasdatadir.


Now when we start the server we have this error:

ERROR Simias.Service.Manager - Incompatible database version. Expected 
version 1.1.0 - Found version 1.0.1.
Simias.SimiasException: Incompatible database version. Expected version 
1.1.0 - Found version 1.0.1.



The problem seems quite obvius, it seems that there is a database 
version change, but what is the solution ?


I can't find any tool or howto explaining anything about this migration. 
Could anyone please help me or refer me to some information

about this topic ?

Thank you very much.
___
ifolder-dev mailing list
ifolder-dev@forge.novell.com
http://forge.novell.com/mailman/listinfo/ifolder-dev