<div>Hi All,</div><div><br></div><div>I created and applied a patch using rt-4.0.5 (the version I am on) and the 4.0/context-on-custom-fields branch and it does not seem to have fixed the issue at all. I outlined the steps I used to make a patch just in case that is incorrect, but I did check the files that were changed and they do have the additional lines added and removed where I would expect them.</div>
<div><br></div><div>Any other ideas? </div><div><br></div><div>Thanks,</div><div>Jim</div><div><br></div><div><br></div><div><br></div><div>HOW TO MAKE A GIT PATCH (or at least how I made it )</div><div>====================================================================================================================</div>
<div>BACK UP YOUR REQUEST TRACKER DIRECTORY</div><div><br></div><div>In this example I am making a patch for the rt-4.0.5 tagged version using the 4.0/context-on-custom-fields branch</div><div><br></div><div>1. Change to a directory to work in like /tmp/patch or something</div>
<div>cd /tmp</div><div>md patch</div><div>cd patch</div><div><br></div><div><br></div><div>2. Clone the latest stable version</div><div>git clone <a href="https://github.com/bestpractical/rt.git">https://github.com/bestpractical/rt.git</a> -b stable</div>
<div><br></div><div>3. Change to the stable directory</div><div>cd stable</div><div><br></div><div>4. Make a patch from the two branch names or a tag name and a branch name. In the case below, I could not</div><div>get the branch name to work because it included a forward slash so I used the commit id... Maybe someone can chime in?</div>
<div>This didn't work: git format-patch rt-4.0.5..4.0/context-on-custom-fields --stdout > fields.patch</div><div><br></div><div>git format-patch 94acf9055ccb6a7368d539dcc8f1d2684016e8ef..2b3265a91a4e5e8cdf724ea218ea30fa501f73b2 --stdout > fields.patch</div>
<div><br></div><div><br></div><div>5. Change to the RequestTracker install directory</div><div>cd /opt/rt4</div><div><br></div><div>6. This shows what changes are in the patch:</div><div>git apply --stat /tmp/patch/stable/fields.patch</div>
<div><br></div><div><br></div><div>7. This allows you to try out the patch:</div><div>git apply --check /tmp/patch/stable/fields.patch</div><div><br></div><div><br></div><div>8. And Finally this applies the patch:</div><div>
git apply -v /tmp/patch/stable/fields.patch</div><br><div class="gmail_quote">On Mon, Mar 5, 2012 at 12:11 PM, Kevin Falcone <span dir="ltr"><<a href="mailto:falcone@bestpractical.com">falcone@bestpractical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Mon, Mar 05, 2012 at 08:58:40AM -0500, Jim Lesinski wrote:<br>
> I copied over the changed files from the branch you suggested into<br>
> /local/lib/RT/CustomField.pm<br>
> /local/lib/RT/Interface/Web.pm<br>
> /local/lib/RT/Transaction.pm<br>
> Then I cleared the mason cache and restarted apache. I ended up with this error.<br>
<br>
</div>Unfortunately, 4.0/context-on-custom-fields predates some work we did<br>
in 4.0.5, so copying the files will take out code we added later.<br>
You really want to apply patches (or do a local merge of that branch)<br>
rather than trying to pull full files out of it.<br>
<br>
Github will show you what changes you'd need to apply here, but I'm<br>
not sure how to get it to give you a patch file.<br>
<br>
<a href="https://github.com/bestpractical/rt/compare/stable...4.0%2Fcontext-on-custom-fields" target="_blank">https://github.com/bestpractical/rt/compare/stable...4.0%2Fcontext-on-custom-fields</a><br>
<br>
-kevin<br>
<div class="im"><br>
> error: Undefined subroutine &HTML::Mason::Commands::MaybeRedirectToApproval called at<br>
> /opt/rt4/share/html/Ticket/autohandler line 14.<br>
> context: ...<br>
> 10: |(?<!\.html))<br>
> 11: $<br>
> 12: }ix;<br>
> 13:<br>
> 14: MaybeRedirectToApproval(<br>
> 15: Whitelist => $whitelist,<br>
> 16: ARGSRef => \%ARGS,<br>
> 17: );<br>
> 18:<br>
> ...<br>
> code stack: /opt/rt4/share/html/Ticket/autohandler:14<br>
> /opt/rt4/sbin/../local/lib/RT/Interface/Web.pm:538<br>
> /opt/rt4/sbin/../local/lib/RT/Interface/Web.pm:285<br>
> /opt/rt4/share/html/autohandler:53<br>
><br>
> Have I done something wrong? Must I overwrite these files instead of adding to the local<br>
> directory? I did move the files manually into my local copy of 4.0.5 but I thought that would<br>
> work.<br>
> Thanks for the help. I am thinking a work around would be to just assign permissions to the<br>
> field. Maybe I should just wait for 4.0.6.<br>
> Jim<br>
</div><div class="im">> On Wed, Feb 29, 2012 at 6:29 AM, Ruslan Zakirov <[1]<a href="mailto:ruz@bestpractical.com">ruz@bestpractical.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> You need fixes from 4.0/context-on-custom-fields branch.<br>
</div><div class="im">> On Tue, Feb 28, 2012 at 20:32, Jim Lesinski <[2]<a href="mailto:jim.lesinski@gmail.com">jim.lesinski@gmail.com</a>> wrote:<br>
> > I turned on debug (*new to me) and it looks like this is the relevant error<br>
> > in the logs:<br>
> ><br>
> > Feb 28 11:22:11 buf-rtdev RT: Permission denied. User #63 has no<br>
> > SeeCustomField right on CF #13<br>
> ><br>
> > If I assign SeeCustomField directly to the custom field (#13) for RTUser,<br>
> > then the autocomplete value works.<br>
> ><br>
> > Maybe I am missing something here with permissions... Should I be assigning<br>
> > group or specific user permissions on a field by field basis? Up until now I<br>
> > had only put users in groups and assigned group permissions to queues. I do<br>
> > have a couple nested groups as well, but no permissions explicitly defined<br>
> > on a per field basis. It seems like it should be working though since it<br>
> > does work for other field types, just not autocomplete.<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
</div>> > On Tue, Feb 28, 2012 at 10:46 AM, Ruslan Zakirov <[3]<a href="mailto:ruz@bestpractical.com">ruz@bestpractical.com</a>><br>
<div class="im">> > wrote:<br>
> >><br>
> >> Hi,<br>
> >><br>
> >> Anything in debug logs when this doesn't work?<br>
> >><br>
> >><br>
</div>> >> On Tue, Feb 28, 2012 at 19:38, Jim Lesinski <[4]<a href="mailto:jim.lesinski@gmail.com">jim.lesinski@gmail.com</a>><br>
<div class="im">> >> wrote:<br>
> >> > The user (RTuser) is Privileged.<br>
> >> ><br>
> >> > Here is an outline of the permissions assigned to RTUser:<br>
> >> ><br>
> >> > RTUser is a member of a GroupA that has OwnTicket, StealTicket and<br>
> >> > TakeTicket rights on the queue1.<br>
> >> ><br>
> >> > GroupA is a member of GroupB, which has CommentOnTicket, CreateTicket,<br>
> >> > ReplyToTicket, Watch, SeeCustomField, SeeQueue, and ShowTicket<br>
> >> > permissions<br>
> >> > on queue1.<br>
> >> ><br>
> >> > To test permissions, I just now assigned every single permission to<br>
> >> > RTUser<br>
> >> > on the General Rights, Rights for Staff, and Rights for Administrators<br>
> >> > tabs<br>
> >> > to RTUser for queue1 and still the autocomplete values do not populate.<br>
> >> ><br>
> >> > If I go to Tools - Configuration - Global - User Rights and add RTUser<br>
> >> > and<br>
> >> > then check in "Do anything and everything", the autocomplete values work<br>
> >> > for<br>
</div>> >> > [5]<a href="http://groups.pm" target="_blank">groups.pm</a>.<br>
> >> ><br>
> >> ><br>
> >> ><br>
> >> > On Tue, Feb 28, 2012 at 10:03 AM, Thomas Sibley <[6]<a href="mailto:trs@bestpractical.com">trs@bestpractical.com</a>><br>
<div class="im">> >> > wrote:<br>
> >> >><br>
> >> >> On 02/28/2012 09:17 AM, Ruslan Zakirov wrote:<br>
> >> >> >> I have set up a custom data source for a custom field as outlined<br>
> >> >> >> in external_custom_fields.pod. It seems that everything works fine<br>
> >> >> >> and<br>
> >> >> >> I get<br>
> >> >> >> pick list data populated into the custom field for all field types<br>
> >> >> >> when<br>
> >> >> >> logged in as an account with root privileges. However, if I switch<br>
> >> >> >> to<br>
> >> >> >> an<br>
> >> >> >> account that has non-root privileges, all the fields types work as<br>
> >> >> >> expected<br>
> >> >> >> other than the autocomplete field type. For some reason this field<br>
> >> >> >> type<br>
> >> >> >> returns no data when I am logged in as a non-root user account.<br>
> >> >> [snip]<br>
> >> >> >> Has anyone else run into this? Can someone else verify this in their<br>
> >> >> >> environment?<br>
> >> >> >><br>
> >> >> ><br>
</div>> >> >> > [7]<a href="http://issues.bestpractical.com/Ticket/Display.html?id=16946" target="_blank">http://issues.bestpractical.com/Ticket/Display.html?id=16946</a><br>
<div class="im">> >> >><br>
> >> >> To clarify, that bug applies to Self Service (unprivileged) users only.<br>
> >> >> It's not clear if your non-root user accounts that you tested with are<br>
> >> >> privileged or unprivileged. If they are privileged, autocomplete CFs<br>
> >> >> should work just fine.<br>
> >> >><br>
> >> >> Thomas<br>
> >> >> --------<br>
</div>> >> >> RT Training Sessions ([8]<a href="http://bestpractical.com/services/training.html" target="_blank">http://bestpractical.com/services/training.html</a>)<br>
<div class="im">> >> >> * Boston March 5 & 6, 2012<br>
> >> ><br>
> >> ><br>
> >> ><br>
> >> > --------<br>
</div>> >> > RT Training Sessions ([9]<a href="http://bestpractical.com/services/training.html" target="_blank">http://bestpractical.com/services/training.html</a>)<br>
<div class="im">> >> > * Boston * March 5 & 6, 2012<br>
> >><br>
> >><br>
> >><br>
> >> --<br>
> >> Best regards, Ruslan.<br>
> ><br>
> ><br>
><br>
> --<br>
> Best regards, Ruslan.<br>
><br>
</div>> References<br>
><br>
> Visible links<br>
> 1. mailto:<a href="mailto:ruz@bestpractical.com">ruz@bestpractical.com</a><br>
> 2. mailto:<a href="mailto:jim.lesinski@gmail.com">jim.lesinski@gmail.com</a><br>
> 3. mailto:<a href="mailto:ruz@bestpractical.com">ruz@bestpractical.com</a><br>
> 4. mailto:<a href="mailto:jim.lesinski@gmail.com">jim.lesinski@gmail.com</a><br>
> 5. <a href="http://groups.pm/" target="_blank">http://groups.pm/</a><br>
> 6. mailto:<a href="mailto:trs@bestpractical.com">trs@bestpractical.com</a><br>
> 7. <a href="http://issues.bestpractical.com/Ticket/Display.html?id=16946" target="_blank">http://issues.bestpractical.com/Ticket/Display.html?id=16946</a><br>
> 8. <a href="http://bestpractical.com/services/training.html" target="_blank">http://bestpractical.com/services/training.html</a><br>
> 9. <a href="http://bestpractical.com/services/training.html" target="_blank">http://bestpractical.com/services/training.html</a><br>
<div class="im"><br>
> --------<br>
> RT Training Sessions (<a href="http://bestpractical.com/services/training.html" target="_blank">http://bestpractical.com/services/training.html</a>)<br>
</div>> * Boston ? March 5 & 6, 2012<br>
<br>
<br>--------<br>
RT Training Sessions (<a href="http://bestpractical.com/services/training.html" target="_blank">http://bestpractical.com/services/training.html</a>)<br>
* Boston — March 5 & 6, 2012<br></blockquote></div><br>