On Tuesday, March 11, 2014 7:07:43 PM UTC-7, RjOllos wrote:
>
> On Tuesday, March 11, 2014 3:58:01 PM UTC-7, CP wrote:
>>
>> When trying to assign the owner field, I received this error:
>>
>>
>>
>> Warning: The ticket field 'owner' is invalid: Access denied to modifying
>> owner
>>
>>
>>
>> I also used an account with TRAC_ADMIN privileges, and I received the
>> same error when trying to assign the owner.
>>
>>
>>
>> I then restarted Python/Trac, and that fixed the problem. This has
>> happened on multiple occasions, but sometimes it works okay. My only
>> thought is that maybe my plugins are conflicting, and maybe restarting
>> allows them to be loaded in a different order???
>>
>>
>>
>>
>>
>> Here is some additional information that may or may not be relevant. I
>> am using Trac 0.12. I am running two instances of Trac on the same server,
>> and I don't know if that is a problem.
>>
>>
>>
>> The first instance ("Trac 1") uses these plugins:
>>
>>
>>
>> AdvancedTicketWorkflowPlugin-0.11dev-py2.7
>>
>> BlackMagicTicketTweaks-0.11r1-py2.7
>>
>> CondFieldsGenshiPlugin-0.2-py2.7
>>
>> GroupTicketFields-0.0.1dev-py2.7
>>
>> ticket_clone.py
>>
>> TicketValidator-0.1-py2.7
>>
>> trac_WorkflowNotificationPlugin-0.4-py2.7
>>
>> TracAnnouncer-0.11.1-py2.7
>>
>> TracCustomFieldAdmin-0.2.8-py2.7
>>
>> TracDynamicFields-1.2.3-py2.7
>>
>> TracTicketValidator-0.1-py2.7
>>
>>
>>
>> The second Trac instance ("Trac 2") uses all of the above plugins plus
>> the following:
>>
>>
>>
>> TracAccountManager-0.4.3-py2.7
>>
>> TracDateField-2.0.0dev-py2.7
>>
>> TracVirtualTicketPermissions-1.0.0-py2.7
>>
>>
>>
>> I looked at the log file of Trac 1, and noticed that Trac 1 is checking
>> user's permissions against the permissions that are only in Trac 2.
>>
>>
>>
>> Also, in Trac 2, I am using the BlackMagic plugin to set owner.permission
>> and owner.ondenial, but I am not doing this in Trac 1 (where I am having
>> the problem).
>>
>>
>>
>> Any help or suggestions will be much appreciated!
>>
>>
>>
>> Thanks,
>>
>> Candace Patterson
>>
>
>
> The warning/error is raised by an ITicketManipulator:
>
> http://trac.edgewall.org/browser/branches/1.0-stable/trac/ticket/web_ui.py?marks=1291-1293&rev=12500#L1286
> Specifically, the BlackMagicTicketTweaksPlugin:
>
> http://trac-hacks.org/browser/blackmagictickettweaksplugin/0.12/blackmagic/blackmagic.py?marks=268-269&rev=13685#L257
>
> I think the issue is that BlackMagicTicketTweaks is not thread-safe:
>
> http://trac-hacks.org/browser/blackmagictickettweaksplugin/0.12/blackmagic/blackmagic.py?marks=43-48&rev=13685#L26
>
> I'm looking at whether this can be easily fixed.
>
Here is a ticket in which osimons has already documented the problem:
http://trac-hacks.org/ticket/7872#comment:3
I pushed an untested fix. Could you please give it a try and report back?
http://trac-hacks.org/changeset/13734
There may still be a problem with the blockedTickets and extra_permissions
attributes, but it will likely be much less severe and you may not even
notice.
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.