Description

xmlrpc put Attachment tells the whole path in the log entry where the file is stored instead of the filename only

Steps to reproduce

  1. do this...

Example

Component selection

Details

MoinMoin Version

1.8

OS and Version

Python Version

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

Discussion

   1 diff -r ac4d5b11edd2 MoinMoin/xmlrpc/__init__.py
   2 --- a/MoinMoin/xmlrpc/__init__.py       Thu Dec 03 15:29:45 2009 +0100
   3 +++ b/MoinMoin/xmlrpc/__init__.py       Fri Dec 04 16:43:30 2009 +0100
   4 @@ -991,7 +991,7 @@
   5          if os.path.exists(filename) and not os.path.isfile(filename):
   6              return self.noSuchPageFault()
   7          open(filename, 'wb+').write(data.data)
   8 -        AttachFile._addLogEntry(self.request, 'ATTNEW', pagename, filename)
   9 +        AttachFile._addLogEntry(self.request, 'ATTNEW', pagename, attachname)
  10          return xmlrpclib.Boolean(1)
  11  
  12      # XXX END WARNING XXX

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/xmrpc_put_attachment_TooVerbose (last edited 2009-12-04 22:05:51 by ReimarBauer)