coin-or-tools / BuildTools

Macros and patches for GNU autotools
https://coin-or-tools.github.io/BuildTools/
Other
3 stars 7 forks source link

trac internal error when attaching a file to a ticket #51

Closed svigerske closed 5 years ago

svigerske commented 5 years ago

Issue created by migration from Trac.

Original creator: @svigerske

Original creation time: 2007-08-08 11:49:26

Assignee: somebody

Version: 0.5

Keywords: trac ticket

Hi,

I don't know whether I'm on the right place here.

On Osi I once created a ticket which requests for an enhancement and attached a patch file which implements this enhancement. Now I want to update this patch file to make it working with the current Osi revision. However, when I try to attach my patch file (which has the same name as before) and mark the box "Replace existing attachment of the same name", then I get the following error:

Oops…
Trac detected an internal error:

If you think this really should work and you can reproduce it, you should consider reporting this problem to the Trac team.

Go to http://trac.edgewall.org/ and create a new ticket where you describe the problem, how to reproduce it. Don't forget to include the Python traceback found below.

TracGuide — The Trac User and Administration Guide
Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 361, in process_request
    self._do_save(req, attachment)
  File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 496, in _do_save
    attachment.insert(filename, upload.file, size)
  File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 183, in insert
    filename))
  File "/usr/lib/python2.3/site-packages/trac/util/__init__.py", line 112, in create_unique_file
    raise Exception('Failed to create unique name: ' + path)
Exception: Failed to create unique name: /home/coin/Trac/Projects/Osi/attachments/ticket/35/osiglpk.100.patch

Best, Stefan

svigerske commented 5 years ago

Comment by @mjsaltzman created at 2007-08-09 18:25:45

This appears to be a Trac bug. The upstream ticket is http://trac.edgewall.org/ticket/5848.

svigerske commented 5 years ago

Comment by @svigerske created at 2007-08-09 18:32:25

Yes, it is a trac bug. But the error messages in ticket 5848 on the trac-page look different.

I did not have a problem when I first attached my patch-file, only when I tried to update / overwrite it.

svigerske commented 5 years ago

Comment by @mjsaltzman created at 2007-08-09 18:54:24

OK I filed http://trac.edgewall.org/ticket/5851 upstream. You'll recognize the content... (I'm not proud 8-).)

As a workaround, can you try attaching with a different name and a comment indicating it supersedes the old patch?

svigerske commented 5 years ago

Comment by @andrea5w created at 2007-10-05 21:14:36

Resolution: fixed

svigerske commented 5 years ago

Comment by solar created at 2008-12-21 03:31:26

wuchangxianxie inc Solar Hot Water Heater, Solar Light System - Lights Manufacturers, Suppliers, for Exports - Solar Water Heater Solar Cell Panel Non pressurized Water Heater phone:010-6483829 http://www.solar-water-heaters.com.cn