On Wednesday, April 2, 2014 7:25:09 AM UTC-7, CP wrote: > > *From:* Patterson, Candace > > *Sent:* Wednesday, March 12, 2014 11:05 AM > *To:* [email protected] <javascript:> > *Subject:* RE: [Trac] The ticket field 'owner' is invalid > > > > > 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. > > ---------------------------------------------- > > > > Thanks so much! I loaded the BlackMagic 11.2 plugin that you modified, > and so far it appears to work properly. I will continue to monitor it for > errors, but currently the log file isn’t showing any permission validations > against the Trac2-only permissions. So, I think that is a good sign. I > will report back if the problem returns. Thanks again! > > > > Candace > > > > > > Update April 2, 2014: > > > > I have noticed that my new BlackMagic 11.2 plugin isn’t loading/importing > properly. Below are the errors from the log file. By the way, I loaded my > old plugin 11.1 (the one with the permission problems), and it loads > properly. Any suggestions? > > > > Thanks a lot, > > Candace > > > > Trac[loader] DEBUG: Loading blackmagic from > d:\tracracrs\plugins\blackmagictickettweaks-0.11.2-py2.7.egg > > Trac[loader] ERROR: Skipping "blackmagic = blackmagic": > > Traceback (most recent call last): > > File "C:\Python27\lib\site-packages\trac\loader.py", line 68, in > _load_eggs > > entry.load(require=True) > > File "C:\Python27\lib\site-packages\pkg_resources.py", line 1954, in load > > entry = __import__(self.module_name, globals(),globals(), ['__name__']) > > ImportError: No module named blackmagic > It was working for a while and then stopped working?
The plugin version wasn't bumped for a while, so you could be running one of several versions: http://trac-hacks.org/log/blackmagictickettweaksplugin/0.11 The version was bumped to 0.11r1 was @7886. Everything since then looks pretty harmless though. I suggest installing from the 0.12 branch, but it looks like there may be no differences between the two branches. http://trac-hacks.org/log/blackmagictickettweaksplugin/0.12 I will do some more investigation this evening. -- 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.
