Skip to Content.
Sympa Menu

en - [sympa-users] SOAP addRequest verses web interface subscribe

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: <address@concealed>
  • To: address@concealed
  • Subject: [sympa-users] SOAP addRequest verses web interface subscribe
  • Date: Wed, 14 May 2008 13:51:21 +0200

Hi,

I'm currently working with sysmp 5.3.3 and am trying to test something.

I have written my own custom condition which applies when a subscription
attempt is made (the config of my list definition points 'subscribe' to my own
defined scenario). Basically if my custom condition returns 0 then an owner
must approve the request otherwise the subscription is allowed. I've tested
this via the sympa web interface and I'm seeing the results I would have
expected.

I then turned my focus to the SOAP interface. I used the add function to add a
subscriber to a list. The results I'm seeing are confusing me a little as the
subscription request is validated immediately and the subscription approved.,
when the return from the custom condition being called is 0 which is meant to
stop automatic subscriptions.

My question is really looking at the documentation on
http://www.sympa.org/manual/soap

it is implied that "scenario authorization is used with the same rules as mail
interface or usual web interface".

Should the SOAP add function be using the same authorisation scenario as the
request to subscribe via the web interface?

many thanks

Catherine



Archive powered by MHonArc 2.6.19+.

Top of Page