Custom Query (332 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (139 - 141 of 332)

Ticket Resolution Summary Owner Reporter
#216 fixed disallow multiple assignment of the same inline property bas Konstantin Ryabitsev <icon@…>
Description

(contd from #214)

Attached patch will only allow one assignment of the same inline property -- the first one. For example, take the following email using "outlook-style" quoting and top-posting:

I fixed your problem.

@status: closed
@resolution: fixed

----
From: Client
To: Developer
Sent: ...
Subject: Re: Please fix my problem

I will be fixing your problem shortly.

@status: accepted

Without the patch, the status will be set to "accepted" even though it's not the developer's intent. With this patch, the top-most assignment wins, and all further assignments are ignored.

#218 fixed Problem when multiple trac accounts match email address bas Konstantin Ryabitsev <icon@…>
Description

I came across a problem when enabling "ticket_permission_system: trac". If there is more than one account that matches the same email address (e.g. for me it was both "konstantin" and "tracadmin" accounts), then the user lookup fails and email2trac treats emails from me as coming from a non-trac user. This tweak fixes the problem.

  • (a) email2trac.py.in vs. (b) -

    a b  
    339339                users = [ (u,n,e) for (u, n, e) in self.env.get_known_users(self.db)
    340340                        if e and (e.lower() == self.email_addr.lower()) ]
    341341
    342                 if len(users) == 1:
     342                if len(users) >= 1:
    343343                        self.email_from = users[0][0]
    344344                        self.author = users[0][0]
    345345
#251 fixed NameError prevents script from running bas kofal002@…
Description

With the latest version of Email2Trac on Windows Server 2008 r2 and Python 2.7.1 (with Windows Extensions installed), I get this error:

Traceback (most recent call last):
  File "C:/.../Email2Trac/email2trac.py", line 2382, in <module>
    logger = setup_log(settings, os.path.basename(settings.project), debug_interactive)
  File "C:/.../Email2Trac/email2trac.py", line 2281, in setup_log
    log_handler = logging.handlers.NTEventLogHandler(logid, logtype='Application')
NameError: global name 'logid' is not defined

The phrase "logid" appears nowhere else in the script. I tried just changing "logid" to 1 and got a different error:

Traceback (most recent call last):
  File "C:/.../Email2Trac/email2trac.py", line 2382, in <module>
    logger = setup_log(settings, os.path.basename(settings.project), debug_interactive)
  File "C:/.../Email2Trac/email2trac.py", line 2281, in setup_log
    log_handler = logging.handlers.NTEventLogHandler(1, logtype='Application')
  File "C:\Python27\lib\logging\handlers.py", line 917, in __init__
    self._welu.AddSourceToRegistry(appname, dllname, logtype)
  File "C:\Python27\lib\site-packages\win32\lib\win32evtlogutil.py", line 35, in AddSourceToRegistry
    "SYSTEM\\CurrentControlSet\\Services\\EventLog\\%s\\%s" % (eventLogType, appName))
pywintypes.error: (5, 'RegCreateKey', 'Access is denied.')

Changing this to a different log type prevents this from happening. Instead of ending on a fatal error, perhaps if Windows logging does not work, default to a local log file instead?

Note: See TracQuery for help on using queries.