VW 7.8, problem with Glorp - Active Record

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

VW 7.8, problem with Glorp - Active Record

Christophe Allegrini
Hello ,

I have a problem with VW 7.8,

When I try this code :

ActiveRecord resetLogin.
ActiveRecord resetSession.
ActiveRecord resetSystem.

ActiveRecord defaultLogin: (
                Glorp.Login new
                        database: PostgreSQLPlatform new;
                        connectString:  'localhost_sesame';
                        username:  '---';
                        password: '---';
                        yourself).

Utilisateur findAll inspect.

VW launch an error that indicate "No descriptor for Utilisateur" .
But this code works fine with VW 7.6 and 7.7 .

If any people know why, please ?

Best Regards, Christophe
Reply | Threaded
Open this post in threaded view
|

Re: VW 7.8, problem with Glorp - Active Record

Wallen, David
Password security has been enhanced in this release, so that passwords
are immediately forgotten after use. If this happens to be an issue at
your site, you can disable the feature as shown below by sending
>>secure: false. That will restore the former behavior.

postgresqlLogin := (Login new)
                database: PostgreSQLPlatform new;
                schema: 'public';
                username: 'myname';
                password: 'mypw';
                secure: false;
                connectString: 'postgres'.
GlorpDatabaseLoginResource defaultLogin: postgresqlLogin.
GlorpDatabaseLoginResource reset.
GlorpDemoTablePopulatorResource invalidateSetup.
ActiveRecord defaultLogin: (GlorpDatabaseLoginResource current login)

- Dave

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On
Behalf Of Christophe Allegrini
Sent: Friday, May 06, 2011 11:13 AM
To: [hidden email]
Subject: [vwnc] VW 7.8, problem with Glorp - Active Record

Hello ,

I have a problem with VW 7.8,

When I try this code :

ActiveRecord resetLogin.
ActiveRecord resetSession.
ActiveRecord resetSystem.

ActiveRecord defaultLogin: (
                Glorp.Login new
                        database: PostgreSQLPlatform new;
                        connectString:  'localhost_sesame';
                        username:  '---';
                        password: '---';
                        yourself).

Utilisateur findAll inspect.

VW launch an error that indicate "No descriptor for Utilisateur" .
But this code works fine with VW 7.6 and 7.7 .

If any people know why, please ?

Best Regards, Christophe

--
View this message in context:
http://forum.world.st/VW-7-8-problem-with-Glorp-Active-Record-tp3503799p
3503799.html
Sent from the VisualWorks mailing list archive at Nabble.com.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: VW 7.8, problem with Glorp - Active Record

Alan Knight-2
In reply to this post by Christophe Allegrini
No, I can't think of a reason that would be failing.  I don't think much has changed in the ActiveRecord code recently. Do you have a stack for the failure?
[hidden email]
May 6, 2011 2:12 PM


Hello ,

I have a problem with VW 7.8,

When I try this code :

ActiveRecord resetLogin.
ActiveRecord resetSession.
ActiveRecord resetSystem.

ActiveRecord defaultLogin: (
Glorp.Login new
database: PostgreSQLPlatform new;
connectString: 'localhost_sesame';
username: '---';
password: '---';
yourself).

Utilisateur findAll inspect.

VW launch an error that indicate "No descriptor for Utilisateur" .
But this code works fine with VW 7.6 and 7.7 .

If any people know why, please ?

Best Regards, Christophe

--
View this message in context: http://forum.world.st/VW-7-8-problem-with-Glorp-Active-Record-tp3503799p3503799.html
Sent from the VisualWorks mailing list archive at Nabble.com.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

--
Alan Knight [|], Engineering Manager, Cincom Smalltalk
[hidden email]
[hidden email]
http://www.cincomsmalltalk.com

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: VW 7.8, problem with Glorp - Active Record

Christophe Allegrini
Hello,

David had given a part of the solution, but one problem remain in the ActiveRecordDescriptorSystem Class.

The method : findConstraintsForTables : works fine in VW7.7 version but doesnt works in 7.8 version.

VW, with the 7.8 version of this method, produce an error in the line : & (each table schema asLowercase = self session schema asLowercase) . Because schema is empty, but I dont know why.

Thanks for your help David, Alan.

Best Regards,

Christophe Allegrini


Reply | Threaded
Open this post in threaded view
|

Re: VW 7.8, problem with Glorp - Active Record

Wallen, David
Some DBs don't use schemas, but the code should still work (by using an
empty string, I think). You're using Postgres, so something isn't right.
As a temporary workaround, perhaps you could add
        schema: 'public';
or
        schema: '';
in your Login creation statement? That would at least get you a non-null
schema in the login.
-Dave


-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On
Behalf Of Christophe Allegrini
Sent: Monday, May 09, 2011 10:26 AM
To: [hidden email]
Subject: Re: [vwnc] VW 7.8, problem with Glorp - Active Record

Hello,

David had given a part of the solution, but one problem remain in the
ActiveRecordDescriptorSystem Class.

The method : findConstraintsForTables : works fine in VW7.7 version but
doesnt works in 7.8 version.

VW, with the 7.8 version of this method, produce an error in the line :
&
(each table schema asLowercase = self session schema asLowercase) .
Because
schema is empty, but I dont know why.

Thanks for your help David, Alan.

Best Regards,

Christophe Allegrini




--
View this message in context:
http://forum.world.st/VW-7-8-problem-with-Glorp-Active-Record-tp3503799p
3509833.html
Sent from the VisualWorks mailing list archive at Nabble.com.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: VW 7.8, problem with Glorp - Active Record

Christophe Allegrini
Hello,

That's work fine,

To resume the solution :
ActiveRecord defaultLogin: (
                Glorp.Login new
                        database: PostgreSQLPlatform new;
                        connectString:  'localhost_sesame';
                        username:  'postgres';
                        password: '---';
                        secure: false;
                        schema: '';     or   " schema: 'public'; "
                        yourself).

Thanks for your help