Differences between revisions 1 and 2
Revision 1 as of 2010-02-08 07:59:17
Size: 5735
Editor: bastion
Comment:
Revision 2 as of 2010-02-08 08:34:22
Size: 0
Comment: duplicate
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Description =

## Please read this page. Lines prefixed with ## such as this one are comments,
## you can remove them (except for those after the "Plan" section.)
## Please follow the instructions given in those comments and the text.
## After creating the bug page, please subscribe to it! We may have questions
## that only you can answer, and if you get email when your bug changes it'll
## be much faster to get it fixed since you can answer the questions!

Error during mail import via xmlrpc

== Steps to reproduce ==
## Describe the steps needed to reproduce the bug. If we can't reproduce it, we probably can't fix it.
 1. Import mail with moin command. E.g. /usr/bin/moin --config-dir=/usr/local/wikifarm/ --wiki-url=https://wiki.example.com/wiki/ xmlrpc mailimport < /home/wiki/testmail<<BR>><<BR>>

 OR<<BR>><<BR>>

 2. receive mail on server via fetchmail and let procmail process the mail

== Example ==
##Add URL that show the bug, screenshot or test wiki markup that fail...

##URL:

##{{attachment:screenshot.png}}

##{{{
##Example wiki markup that fail
##}}}

== Component selection ==

## Where you think is this bug happening ? (general, plugin [plugin name], theme [theme name], ...

 * general

== Details ==

## If you got a traceback, please save the traceback page as html and attach here:
## [[attachment:traceback.html]]
Output of {{{moin.log}}} when importing a page:
{{{
procmail: [7775] Fri Feb 5 13:14:28 2010
procmail: No match on ! "^From:.*example\.com"
procmail: Match on "^To:.*@example\.com"
procmail: Executing "/usr/bin/moin,--config-dir=/usr/local/wikifarm/,--wiki-url=https://wiki.example.com/wiki/,xmlrpc,mailimport"
procmail: Assigning "LASTFOLDER=/usr/bin/moin --config-dir=/usr/local/wikifarm/ --wiki-url=https://wiki.example.com/wiki/ xmlrpc mailimport"
procmail: Notified comsat: "wiki@:/usr/bin/moin --config-dir=/usr/local/wikifarm/ --wiki-url=https://wiki.example.com/wiki/ xmlrpc mailimport"
 Subject: [[test]] test
  Folder: /usr/bin/moin --config-dir=/usr/local/wikifarm/ --wiki-ur 2555
2010-02-05 13:14:28,299 WARNING MoinMoin.log:139 using logging configuration read from built-in fallback in MoinMoin.log module!
Traceback (most recent call last):
  File "/usr/bin/moin", line 6, in ?
    run()
  File "/usr/lib/python2.4/site-packages/MoinMoin/script/moin.py", line 15, in run
    MoinScript().run(showtime=0)
  File "/usr/lib/python2.4/site-packages/MoinMoin/script/__init__.py", line 138, in run
    self.mainloop()
  File "/usr/lib/python2.4/site-packages/MoinMoin/script/__init__.py", line 253, in mainloop
    plugin_class(args[2:], self.options).run() # all starts again there
  File "/usr/lib/python2.4/site-packages/MoinMoin/script/__init__.py", line 138, in run
    self.mainloop()
  File "/usr/lib/python2.4/site-packages/MoinMoin/script/xmlrpc/mailimport.py", line 52, in mainloop
    result = s.ProcessMail(secret, xmlrpclib.Binary(input.read()))
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1286, in _parse_response
    return u.close()
  File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 1: 'exceptions.NameError: global name \'wikiutil\' is not defined\n File "/usr/lib/python2.4/site-packages/MoinMoin/xmlrpc/__init__.py", line 149, in process\n response = self.dispatch(method, params)\n\n File "/usr/lib/python2.4/site-packages/MoinMoin/xmlrpc/__init__.py", line 189, in dispatch\n response = fn(self, *params)\n\n File "/usr/lib/python2.4/site-packages/MoinMoin/xmlrpc/ProcessMail.py", line 23, in execute\n mailimport.import_mail_from_string(request, mail)\n\n File "/usr/lib/python2.4/site-packages/MoinMoin/mail/mailimport.py", line 199, in import_mail_from_string\n return import_mail_from_message(request, email.message_from_string(string))\n\n File "/usr/lib/python2.4/site-packages/MoinMoin/mail/mailimport.py", line 219, in import_mail_from_message\n d = get_pagename_content(request, msg)\n\n File "/usr/lib/python2.4/site-packages/MoinMoin/mail/mailimport.py", line 186, in get_pagename_content\n pagename = wikiutil.normalize_pagename(pagename, request.cfg)\n'>

}}}

## if the bug is in this wiki, just kill the table and write: This Wiki.

## If a traceback is not available, please fill in the details here:
|| '''!MoinMoin Version''' || 1.9.1 ||
|| '''OS and Version''' || CentOS release 5.4 - 2.6.18 - x86_64 ||
|| '''Python Version''' || 2.4.3 ||
|| '''Server Setup''' || Apache 2.2.3 ||
|| '''Server Details''' || mod_wsgi 3.1, mpm_prefork ||
|| '''Language you are using the wiki in''' (set in the browser/UserPreferences) || de ||

== Workaround ==
## How to deal with the bug until it is fixed


= Discussion =
 * Two different mailimport.py files appear in the stacktrace, which were shipped by the installation package.
  * /MoinMoin/mail/mailimport.py
  * /MoinMoin/script/xmlrpc/mailimport.py

= Plan =
## This part is for Moin``Moin developers:

 * Priority:
 * Assigned to:
 * Status:

----
## If you are a moin core developer, replace the category to Category* in these cases:
## Category MoinMoinNoBug - if this is not a bug.
## Category MoinMoinBugConfirmed - if you can confirm the bug on current code.
## Category MoinMoinBugFixed - after the bug is fixed in current code.
CategoryMoinMoinBug