[rt-users] problem in scrip when ticket is created via REST request

Hugo Escobar hescobar at afslc.com
Fri Sep 16 16:30:31 EDT 2016


I've been asked to create a scrip to act on a ticket based on a custom
field set at creation time. This scrip must also add a 'refers to' value to
the ticket being created.

I wrote the scrip, (it compiles) but it's not working and I'm getting the
following log message:

RT: [4954] This login session belongs to a REST client, and cannot be used
to#012access non-REST interfaces of RT for security reasons.#012 (Please
log out and back in to obtain a session for normal browsing.  If#012you
understand the security implications, disabling RT's CSRF
protection#012will remove this restriction.)

This happens even if I set this value:
Set($RestrictReferrer, 0);

​Am I doing something wrong?

Any help will be greatly appreciated​


Hugo Escobar


4770 Biscayne Blvd, Ste 700
Miami, FL 33137

main: 305.677.0022
support: 305.921.4620
email: hescobar at afslc.com

Follow us on Facebook and Linked-In

NOTICE: This email and any attachment to this email may contain
confidential information. If you are not the intended recipient, you must
not review, retransmit, convert to hard copy, photocopy, use or disseminate
this email or any attachments to it. If you have received this email in
error, please notify us immediately by return email and delete this
message. Please note that if this email contains a forwarded message or is
a reply to a prior message, some or all of the contents of this message or
any attachments may not have been produced by our firm. *As our firm may be
deemed a debt collector, if your payment is in default, we may be
attempting to collect a debt on behalf of the association, and any
information obtained may be used for that purpose.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20160916/feddc6a1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: facebook-24x24.png
Type: image/png
Size: 814 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20160916/feddc6a1/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linkedin-24x24.png
Type: image/png
Size: 875 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20160916/feddc6a1/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AFS_logo.png
Type: image/png
Size: 3183 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20160916/feddc6a1/attachment-0002.png>

More information about the rt-users mailing list