[rt-users] Using Ajax with Mason in RT

Martin Drasar drasar at ics.muni.cz
Fri Aug 17 03:26:30 EDT 2012


On 16.8.2012 18:48, Thomas Sibley wrote:
> 403 is Forbidden.  RT denies direct requests to /Elements/ directories
> (among other internal components).  This denial happens in RT's normal
> request handling phase, which doesn't get called when you set inherit =>
> undef.

Hi Thomas,
thank you, moving it outside of elements to custom directory did the
trick. It finally works!

> Please just remove the <%flags> section all together.  You also lose
> things like encoding handling, not to mention authentication, when you
> disable RT's request handling.

I have gladly thrown it away...

>> If I keep it, I get back following error: "syntax error at
>> /home/RT/RT-4.0.6/local/html/Ticket/Elements/TestComponent line 15, at EOF"
> 
> I'm betting it's the semicolon in the <%flags> section.  Remove it.  The
> line number being off is Mason getting it wrong (I'll bet it's the line
> # of the Mason object file).

Heh, I am used to missing semicolon, not the other way round. Anyway
this was really the cause. Removing it made it worked, although it is no
longer necessary because of what was written before.

Still, I wonder how come that Paul could successfully run my scripts...

Anyway, big thanks to you.

Martin



More information about the rt-users mailing list