Apr 09, 2013; 09:51
Dave Bruhn
Error Msg: The marker was larger than maximum
Good morning, Lassoers!
So I've got a Lasso 9.2.5 server that talks to a Lasso 8.5 machine that runs Mailman, and I've run into a weird issue when it gets its json reply.
If #moderation == 'off', everything works fine.
If #moderation == 'on', I get the following error message: "Error Msg: The marker was larger than maximum"
I've narrowed it down to the os_process being run in #mod_process. Even if I set that to something simple like "/bin/ls," it still gives the error message.
Any ideas, anyone?
Here's the 8.5 code:
==<?LassoScript
include('/globals/databases.lasso');
local('list_address') = string(action_param('list_address'));
local('person_id') = integer(action_param('person_id'));
local('moderation') = (integer(action_param('moderation')) == 2 ? 'off' | 'on');
local('result') = map('status' = 'success', 'message' = ('User successfully subscribed to ' + #list_address));
local('email') = string(action_param('email'));
inline(-username='lasso_shell', -password='nccNX-0!');
local('mm_process') = (OS_Process('/usr/local/mailman/bin/add_members', array('-r', '-', #list_address)));
#mm_process->Write(#email + '\n');
#mm_process->CloseWrite;
local('listserv_result') = #mm_process->Read;
#mm_process->Close;
/inline;
if(#listserv_result !>> 'Subscribed:');
local('result') = map('status' = 'error', 'results' = #listserv_result);
content_body = encode_json(#result);
abort;
/if;
// Turn off moderation, if appropriate
if(string(#moderation) == 'on');
local('mod_process') = (OS_Process('/usr/local/mailman/bin/moderation_on.sh', array(#list_address, #email)));
local('moderation_result') = #mod_process->Read;
#mod_process->Close;
if(#moderation_result !>> 'successfully turned on');
#result = map('status' = 'error', 'results' = #moderation_result);
content_body = encode_json(#result);
abort;
/if;
/if;
content_body = encode_json(#result);
?>
Thanks in advance,
Dave
---
Dave Bruhn
Systems Analyst
North Carolina Hospital Association
PO Box 4449
Cary, NC 27519-4449
919-677-4145 (office)
dbruhn@ncha.org
http://www.ncha.org
#############################################################
Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Apr 09, 2013; 15:21
Jolle Carlestam
Re: Error Msg: The marker was larger than maximum
Apr 09, 2013; 11:41
Dave Bruhn
Re: Error Msg: The marker was larger than maximum
Apr 09, 2013; 15:44
Jolle Carlestam
Re: Error Msg: The marker was larger than maximum
Apr 09, 2013; 12:35
Steve Piercy - Web Site Builder
Re: Error Msg: The marker was larger than maximum