Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Glinks 3 GT libs break Gossamer Mail

Quote Reply
Glinks 3 GT libs break Gossamer Mail
Hi Adrian.

I am putting this up in a separate thread as i narrowed down the tests to just Gossamer Mail With Glinks 3 under mod_perl (as Gossamer Mail with GTlibs from any other GT Application -- forum/community/LinksSQL 2.2.x was not having any issues).

Test Scenario 1:
Only Gossamer Mail Under mod_perl (tested using both GT libs from 2.2.0 and 2.2.4)

Results : No errors on Save Draft/Delete Duplicates.

Test Scenario 2:
Glinks 3 + Gossamer Mail 2.2.0 under mod_perl

startup.pl looks like this

use lib
'/path/to/Glinks3/admin',
'/path/to/GossamerMail2.2/admin';

use Links::mod_perl;
use GMail::mod_perl;

use Apache::Constants ();
sub My::ProxyRemoteAddr ($) {
my $r = shift;
........
........
........

1;

Test Result:
mod_perl startup fine
  • Gossamer Mail
Save Draft (New Mail Compose -->Save Draft)
Can't call method "insert_id" on an undefined value at GMail::Messages::insert_user line 1738

Save Draft (Reply --> Save Draft)
NO ERROR

Save Draft (Forward --> Save Draft)
NO ERROR

FOLDER MANAGEMENT:

DELETE DUPLICATES:


136591872 message(s) deleted. -- first attempt on a folder with 3 messages

162035664 message(s) deleted. -- second attempt on same folder

163743304 message(s) deleted. -- third attempt on same folder.

No messages are deleted though and the number keeps on chamging with every attempt.

165821720 message(s) has been deleted. (tried with template set that i had with version 2.1.0)
  • Glinks3
Column editing in Glinks 3 (which gave errors when gcom was loaded under mod_perl) is fine. Th error during table column edit when gcom is also loaded is as follows as already mentioned in Linkssql forum:
GT::SQL::Editor (3121): Unknown method '_column_sql' called at GT::SQL::Editor::alter_col line 238.

If i just reverse the use lib order in startup.pl the Gossamer mail errors are gone. Just did this for sake of seeing if the errors in Gossamer Mail goes off ... it does but i know it would break a lot many things in Glinks3 so i have reverted back to the order as noted above.

Gossamer Mail breaks with Glinks3 loaded under mod_perl

NOTE: Everything operates error free when it is LinksSQL GT libs (ie no errors were observed at any stage with pre glinks3 under mod_perl)

Thanks

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================

Last edited by:

HyperTherm: Apr 5, 2005, 7:57 AM
Quote Reply
Re: [HyperTherm] Glinks 3 GT libs break Gossamer Mail In reply to
If i copy over SQL directory (gmail) to Glinks3/GT

Save Draft (Compose -->Save Draft) error is gone
Delete Duplicates Still persists.

Did this just for testing and then reverted back to Glinks3/GT/SQL

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [HyperTherm] Glinks 3 GT libs break Gossamer Mail In reply to
In Reply To:
Save Draft (New Mail Compose -->Save Draft)
Can't call method "insert_id" on an undefined value at GMail::Messages::insert_user line 1738
This was a bug fixed in 2.2.4. Here's the corrected code:
Code:
$PLG->dispatch('GMail::Messages::insert_user', sub { GMail::Messages->insert_user(@_) }, {
msgtrack_userid => $USER->{userid},
msgtrack_mid => $id,
msgtrack_fid => $drafts_fid,
msgtrack_status => $fields->{draft_reply} ? 'Draft Reply' : $fields->{draft_forward} ? 'Draft Forward' : 'Draft',
msgtrack_account => 0,
msgtrack_draft_ref => $state eq 'draft' ? $draft_ref : $compose_id,
msgtrack_draft_html => scalar($IN->param('compose_is_html')) ? 1 : 0,
}, $size) or return $self->error($GMail::Messages::error, 'WARN');
Code:
$PLG->dispatch('GMail::Messages::insert_user', sub { GMail::Messages->insert_user(@_) }, {
msgtrack_userid => $USER->{userid},
msgtrack_mid => $id,
msgtrack_fid => $drafts_fid,
msgtrack_status => $fields->{draft_reply} ? 'Draft Reply' : $fields->{draft_forward} ? 'Draft Forward' : 'Draft',
msgtrack_account => 0,
msgtrack_draft_ref => ($state eq 'draft' ? $draft_ref : $compose_id) || undef,
msgtrack_draft_html => scalar($IN->param('compose_is_html')) ? 1 : 0,
}, $size) or return $self->error($GMail::Messages::error, 'WARN');

Adrian
Quote Reply
Re: [brewt] Glinks 3 GT libs break Gossamer Mail In reply to
I scrolled through Messages.pm and could really find where to find that?
Gossamer Mail Version 2.2.0

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [HyperTherm] Glinks 3 GT libs break Gossamer Mail In reply to
In Reply To:
136591872 message(s) deleted. -- first attempt on a folder with 3 messages

162035664 message(s) deleted. -- second attempt on same folder

163743304 message(s) deleted. -- third attempt on same folder.
Unfortunately, I can't duplicate this problem (with 2.2.0 or 2.2.4).

Adrian
Quote Reply
Re: [HyperTherm] Glinks 3 GT libs break Gossamer Mail In reply to
Around line 830

Adrian
Quote Reply
Re: [brewt] Glinks 3 GT libs break Gossamer Mail In reply to
Messages.pm or Compose.pm?

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [HyperTherm] Glinks 3 GT libs break Gossamer Mail In reply to
Oh, I'm sorry, Compose.pm

Adrian
Quote Reply
Re: [brewt] Glinks 3 GT libs break Gossamer Mail In reply to
Save Draft is fixed.
I would try and see if wrt Delete Duplicates i can find something. It's happening only under mod_perl and not as plain cgi (as was the case with Save Draft too). I've pm'd a test account login details for you to see (mod_perl vs normal)

Thanks

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [HyperTherm] Glinks 3 GT libs break Gossamer Mail In reply to
So 2.2.0 w/ new libraries under mod_perl, you get that problem, but 2.2.0 w/ new libraries as a regular cgi is fine?!

Adrian
Quote Reply
Re: [brewt] Glinks 3 GT libs break Gossamer Mail In reply to
I just symlinked to new libraries
As plain cgi the Delete Dups is fine
under mod_perl every action on Delete Dups throws a large random number

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [brewt] Glinks 3 GT libs break Gossamer Mail In reply to
Hi Adrian

I just tested this on a testinstall of gossamer mail 2.2.4
Same reproducibility.
Put under mod_perl in combination with Glinks3 and random large numbers are thrown on Delete Dupes

Works fine as plain cgi

Thanks

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [brewt] Glinks 3 GT libs break Gossamer Mail In reply to
The actual numbers displayed on Delete Dupes looked to be some sort of unix timestamp in june 1975. It always kept hovering within June 1975. i must have done about 100 attempts and never did it go outside of June 1975.

This is all that i could figure out

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [brewt] Glinks 3 GT libs break Gossamer Mail In reply to
I correct my earlier observation. I must have mixed it up. Here is the finding:

2.2.0 -- > 2.2.4 testinstallation

2.2.4 using it's own libs ...
Delete Dups No Error

2.2.4 GT symlinked to GLinks3 GT Libs
Even under plain cgi mode, the error on Delete Dupes reappears.

So the error is there wrt delete dupes (in whichever mode we test) as soon as Glinks3 GT libs are used.

if you need i can send over the admin access to the Test Installation --- it was dbimport 2.2.0 install --> 2.2.4 upgrade.

It's throwing timestamp of some sort in 1970's

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [brewt] Glinks 3 GT libs break Gossamer Mail In reply to
Problem of Delete Duplicates (just doing a empirical runs) status as follows:
Just replaced Plugins.pm of Glinks3 GT with the Plugins.pm of Gossamer Mail 2.2.4 and that error is gone both in cgi mode and also in mod_perl mode.

Plugins.pm original Version :

-Revision: $Id: Plugins.pm,v 1.52 2005/03/22 08:23:17 jagerman Exp $

Plugins.pm replaced version:
+Revision: $Id: Plugins.pm,v 1.48 2004/01/13 01:35:16 jagerman Exp $

Not too sure how this would effect other stuff but this gets that Delete Duplicates error off, in following cases:

gossamer-mail 2.2.4 plain cgi mode -- earlier the error was there *
gossamer-mail 2.2.0 plain cgi-mode -- earlier the error was there *
gossamer-mail 2.2.0 mod_perl mode -- earlier the error was there *

* All cases the test done with Glinks3 GT symlinked.

Could not test 2.2.4 under mod_perl as it is a test install but really shouldn't matter.

Now the Qstns:

Is it ok to do the above ... purposely use Plugins.pm of earlier version rather than Glinks3?

Not an expert at debugging but was trying to see what was responsible for the Gossamer mail "Delete Dupes" error which was showing some sort of unix timestamp as number of messages deleted.

What else could break in opnion of GT?
Module Env shows that this version is loaded:

GT::Plugins 1.048

As soon as lates version of Plugins.pm is loaded the error creeps in back.
If you would want the complete module env loaded do let me know...
Comments awaited

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [HyperTherm] Glinks 3 GT libs break Gossamer Mail In reply to
Try the attached GT/Plugins.pm

Adrian
Quote Reply
Re: [brewt] Glinks 3 GT libs break Gossamer Mail In reply to
Actually, the replacement of Plugins.pm with the same from Gmail 2.2.4 used to throw up randomly "cannot create user error 1@neomail.nobody.com" from Authenticate.pm (Links) for already authenticated user... so switched to the orignal Glinks3 GT's Plugins.pm

I have put this "Plugins.pm,v 1.55" up and the "Delete Dupes" error is fixed. In case any errors are observed anywhere else, shall get back on this ... Running on medicated oxygen :)

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [brewt] Glinks 3 GT libs break Gossamer Mail In reply to
Hi Adrian.

Just an update after the new GT/Plugins.pm
There has been no hiccups so far. No user complains.
We did not find any abnormaility in all the probing that we could do so far.
Just planning to upgrade Gossamer mail 2.2.0 -->2.2.4 within a day or two.

In light of this, would again reiterate that GT provides a separate download of complete GT libs (workable with all GT Applications across the board) w/o the need of trying to figure out application specific stuff missing and copying over. SpellCheck for example needs to be copied over to Glinks3 and likewise there are few others...

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================