Custom Query (332 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (76 - 78 of 332)

Ticket Resolution Summary Owner Reporter
#428 invalid email2trac crashes with Python error bas anonymous
Description

When running email2trac 2.12.2 on CentOS7 with Python 2.7.5 and the commandline:

email2trac -d -v < msg.txt

using the msg.txt distributed with the application, parsing crashes. python does a trace dump as follows:

2018-05-06 16:54:59,457 email2trac test: function inline_properties 2018-05-06 16:54:59,457 email2trac test: function unique_attachment_names() 2018-05-06 16:54:59,457 email2trac test: function get_body_text() 2018-05-06 16:54:59,459 email2trac test: Traceback (most recent call last):

2018-05-06 16:54:59,459 email2trac test: File "/usr/local/bin/email2trac", line 2922, in <module>

tktparser.parse(sys.stdin)

2018-05-06 16:54:59,459 email2trac test: File "/usr/local/bin/email2trac", line 1863, in parse

self.parse_subject_field(m, subject, spam_msg)

2018-05-06 16:54:59,459 email2trac test: File "/usr/local/bin/email2trac", line 2008, in parse_subject_field

self.new_ticket(m, subject, spam_msg)

2018-05-06 16:54:59,459 email2trac test: File "/usr/local/bin/email2trac", line 1340, in new_ticket

self.id = tkt.insert()

2018-05-06 16:54:59,459 email2trac test: File "/usr/lib64/python2.7/site-packages/trac/ticket/model.py", line 261, in insert

db_values = self._to_db_types(self.values)

2018-05-06 16:54:59,459 email2trac test: File "/usr/lib64/python2.7/site-packages/trac/ticket/model.py", line 405, in _to_db_types

values[field] = _datetime_to_db_str(value, is_custom_field)

2018-05-06 16:54:59,460 email2trac test: File "/usr/lib64/python2.7/site-packages/trac/ticket/model.py", line 63, in _datetime_to_db_str

ts = to_utimestamp(dt)

2018-05-06 16:54:59,460 email2trac test: File "/usr/lib64/python2.7/site-packages/trac/util/datefmt.py", line 193, in to_utimestamp

diff = dt - _epoc

2018-05-06 16:54:59,460 email2trac test: TypeError?: unsupported operand type(s) for -: 'unicode' and 'datetime.datetime'

2018-05-06 16:54:59,460 email2trac test: saving email to /tmp/test_DeEDc.email2trac 2018-05-06 16:54:59,461 email2trac test: function get_message_parts() 2018-05-06 16:54:59,461 email2trac test: Message part: Main-Type: multipart 2018-05-06 16:54:59,461 email2trac test: Message part: Content-Type: multipart/mixed 2018-05-06 16:54:59,461 email2trac test: Skipping multipart container 2018-05-06 16:54:59,461 email2trac test: Message part: Main-Type: text 2018-05-06 16:54:59,461 email2trac test: Message part: Content-Type: text/plain

#202 fixed email2trac does not honor Trac permissions when creating/updating tickets bas Dennis McRitchie <dmcr@…>
Description

Hi Bas,

I love this script, and am increasingly using it with our Trac projects; however, one problem is that it does not appear to respect the Trac permissions set up for creating or updating tickets.

This seems to happen whether the reporter is "anonymous" (in which case, I would expect it to respect the permissions assigned to "anonymous"), as well as when the reporter has an email address that can be translated into one of the known users (where I would expect email2trac to respect the permissions for that user).

As it is, email2trac will create a ticket for anyone, even if that person could not create a ticket if they went to the Trac website and tried to do it from there. I would think the two methods should be consistent.

Is this intentional, or just something you have not had time to get around to yet? Or worse still, does Trac not support a way of finding out the permissions using its API?

Thanks,

Dennis

P.S. I'm actually using 1.4.2, which is not on the Version drop-down list.

#365 fixed email2trac doesn't work with discussionplugin 0.9 bas anonymous
Description

trying to use email2trac v2.8.8 with discussionplugin v0.9dev. I think the discussionplugin API must have changed and there is an incompatibility

2015-05-09 16:46:03,957 email2trac wol: Traceback (most recent call last):

2015-05-09 16:46:03,957 email2trac wol: File "/usr/local/bin/email2trac", line 2915, in <module>

tktparser.parse(sys.stdin)

2015-05-09 16:46:03,957 email2trac wol: File "/usr/local/bin/email2trac", line 1823, in parse

self.parse_subject_field(m, subject, spam_msg)

2015-05-09 16:46:03,957 email2trac wol: File "/usr/local/bin/email2trac", line 1938, in parse_subject_field

self.discussion_topic_reply(m, subject[result.end('topic'):])

2015-05-09 16:46:03,957 email2trac wol: File "/usr/local/bin/email2trac", line 1589, in discussion_topic_reply

topic = api.get_topic(context, self.id)

2015-05-09 16:46:03,957 email2trac wol: File "build/bdist.linux-x86_64/egg/tracdiscussion/api.py", line 1699, in get_topic

(id,))

2015-05-09 16:46:03,957 email2trac wol: File "build/bdist.linux-x86_64/egg/tracdiscussion/model.py", line 54, in _get_item

cursor = context.db.cursor()

2015-05-09 16:46:03,958 email2trac wol: AttributeError?: 'RenderingContext?' object has no attribute 'db'

Note: See TracQuery for help on using queries.