[rt-users] RTFM permission issue

Patrick Hurley phurley at tacc.utexas.edu
Thu Jan 29 15:37:05 EST 2004


> The problem looks to be this segment:
> 
>   unless ( $ArticleObj->CurrentUserHasRight('ShowArticle') ) {
>     $m->comp( "/RTFM/Elements/Error", Why => "No permission to view
> Article" );
> }
> 
> from share/html/RTFM/Article/Edit.html but I'm not sure why.

Are you using postgres?

I have this problem with RT 3.0.8 and RTFM 2.0.2 using postgres -- "No
permission to view Article" occurring anytime anybody attempts to create
an article, either through extracting or directly creating a new
article.

Through apache/postgres logs, it looks like it has to do with RTFM not
being completely nice with postgres 7.3 or later.  Several int's in RTFM
are initialized as '' by default, and pg_atoi doesn't like that anymore.
Thus, the pg_atoi zero-length string errors cause failures.  These need
to be initialized as 0.  

I opened a new ticket on the issue in Best Practical's RT, but if you
are able to track down where these changes need to occur before they get
to it, I'm sure we'd all be overjoyed.


Thanks,

Patrick




More information about the rt-users mailing list