Ticket #4273 (closed Bug: fixed)

Opened 7 years ago

Last modified 3 years ago

Webdav : AT bug creating new files if ID metadata not equals to filename uploaded ???

Reported by: Yannick Owned by:
Priority: minor Milestone: 2.1
Component: Infrastructure Keywords:
Cc:

Description

Hi,

Using FTP/Webdav on an empty folder, trying to upload files (ATCT Plone site so AT related) (id means : field in the metadata set with RFC882 Marshaller)


Filename : KB10000 ==> FILE KB10000 created Id : KB10000

Then

Filename : KB10000 ==> FILE KB10000 replaced by FILE TESTOFID Id : TESTOFID

  • Delete any remaining file in directory *

Filename : KB10000 ==> NO FILE CREATED SEE TRACEBACK BELOW Id : TESTOFID

It seems that you can Set a new ID to an object only if it is already existing in Plone. ie you can rename its ID using ID meta field but you need first to upload a copy with both filename and id name the same !

I've tried Enfold DAVPack as well but it is creating tons of new errors without fixing this one ;)

Traceback (innermost last):

Module ZPublisher.Publish, line 101, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module webdav.NullResource, line 154, in PUT Module Products.Archetypes.BaseContent, line 115, in PUT Module Products.Archetypes.Marshall, line 119, in demarshall Module Products.Archetypes.BaseObject, line 231, in setId Module Products.Archetypes.OrderedBaseFolder, line 209, in manage_renameObject Module OFS.CopySupport, line 252, in manage_renameObject

Copy Error: <HTML> <HEAD> <TITLE>Not Supported</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF"> <FORM ACTION="manage_main" METHOD="GET" > <TABLE BORDER="0" WIDTH="100%" CELLPADDING="10"> <TR>

<TD VALIGN="TOP"> <BR> <CENTER><B><FONT SIZE="+6" COLOR="#77003B">!</FONT></B></CENTER> </TD> <TD VALIGN="TOP"> <BR><BR> <CENTER> The action against the <em>KB10000</em> object could not be carried out. One of the following constraints caused the problem: <br><br>The object does not support this operation.<br><br>-- OR --<br><br>The currently logged-in user does not have the <b>Copy or Move</b> permission respective to the object. </CENTER> </TD>

</TR> <TR>

<TD VALIGN="TOP"> </TD> <TD VALIGN="TOP"> <CENTER> <INPUT TYPE="SUBMIT" VALUE=" Ok "> </CENTER> </TD>

</TR> </TABLE> </FORM> </BODY></HTML>

Change History

comment:1 Changed 7 years ago by Anonymous User

All reported fixes have been fixed with DavPack. If you have not tried the most recently released version, 1.1.9, please give it a try and report any issues you find.

As for the bug itself, it's fixed by the use of DavPack in Zope versions prior to 2.7.7, and if you use Zope 2.7.7 or Zope 2.8.1 then you don't need DavPack.

comment:2 Changed 7 years ago by limi

  • Status changed from new to closed
  • Resolution set to fixed

I assume this can be closed, then.

comment:3 Changed 7 years ago by Anonymous User

DavPack 1.1.9 is creating more troubles on my system with Webdav and Archetypes framework than it is resolving!

I will maybe try to update myt zope server from 2.7.4 from latest 2.7.x serie but I don't sure it will then be fixed

comment:4 Changed 7 years ago by Anonymous User

Are you experiencing a bug with DavPack? Report and it will be fixed. If you do not report, you will only cause more pain for everyone. The same code that's on DavPack has been merged to Plone, Zope and Archetypes, so if there's a bug there we *need* to know before it's too late for everyone.

Provide us tracebacks and you will get the bugs fixed.

comment:5 Changed 7 years ago by runyaga

Hi. At Enfold Systems we use DAV daily and heavily. DavPack (on our website) has no known bugs and is in production are many clients. If the original person will follow up with the following information we can help diagnosis it better:

  • What versions of Python, Zope, CMF, Plone, AT are you running?
  • What COntent Types are you trying to create, an ATFile? A "Photo" object? What specifically are you trying to create?
  • Is it possible for us to access (remotely) the box that has the problem?

thanks, alan@…

comment:6 Changed 7 years ago by Anonymous User

To answer Enfold :

Versions are describéed in grey under the title of the issue. I was using zope 2.7.4 until friday, I will maybe have some time this week to test DAV on the 2.7.7 I just installed. (I saw that Dav required 2.7.6 instead of 2.7.4)

There's unfortunately no way to access remotely to the test server as I am behind a (very) restrictive firewall (no svn, cvs access !!! :'( )

I was trying to upload a simple custom ATCT created (a faq with id title description body)

comment:7 Changed 3 years ago by hannosch

  • Component changed from WebDAV to Infrastructure
Note: See TracTickets for help on using tickets.