Contribute cannot EDIT files over SFTP

Ask a Question related to Macromedia Contribute Connection Administrtion, Design and Development.

  1. #1

    Default Contribute cannot EDIT files over SFTP

    Contribute 3 seems to be incompatible with certain SFTP servers. When I create
    connections, everything works fine. But as soon as I try to edit a page or try
    to open the "administer" dialog, Contribute displays the following meaningful
    message: "An error occured. Please contact your administrator."

    I used the network logging feature and found out that Contribute always stops
    when it looks for the *.LCK files. Here the part of my log files:

    ---------------------begin log--------------

    197 07.03.2005
    19:39:23 tom action/start ntEdit 0 0 0 0.0000 [url]http://www.xxxxxxxx.de/Geschichte/[/url]
    hist-alt/testverzeichnis/1/welcome.html -
    198 07.03.2005
    19:39:23 tom netio/SFTP FileNameExists 0 0 0 0.1133 sftp://xxxxxxxx.de/testverze
    ichnis/1/welcome.html
    199 07.03.2005
    19:39:23 tom netio/SFTP GetData 0 4 4 0.1152 sftp://xxxxxxxx.de/testverzeichnis/
    1/welcome.html.LCK
    200 07.03.2005
    19:39:30 tom action/end ntEdit 0 0 0 6.9928 [url]http://www.xxxxxxxx.de/testverzeichn[/url]
    is/1/welcome.html -
    ---------------------end log--------------

    Contribute looks for the *.LCK lockfile with the GetData command and receives
    a protocol error 4. Now instead of realizing that this means that there is no
    lockfile, Contribute simply aborts. I tried another server that is also
    accessible with unencrypted FTP, and here the corresponding GetData...*.LCK
    line looks different:

    ---------------------begin log--------------

    157 07.03.2005
    19:10:36 tom action/start ntEdit 0 0 0 0.0000 [url]http://www.xxxxxx.de/testverzeichn[/url]
    is/1/welcome.html -
    158 07.03.2005
    19:10:36 tom netio/FTP FileNameExists 0 0 0 0.2833 [url]ftp://xxxxxx.de/[/url] /testverzeic
    hnis/1/welcome.html
    159 07.03.2005
    19:10:36 tom netio/FTP GetData RESOURCE_DOESNT_EXIST 0 0 0.6424 [url]ftp://xxxxxx.de/[/url]
    /testverzeichnis/1/welcome.html.LCK

    ---------------------end log--------------

    Here Contribute doesn't receive a protocol error, but realizes correctly that
    the lockfile does not exist. It doesn't abort and everything works fine.

    I also tried to create the lockfile manually on the SFTP server. In this case,
    Contribute found the .LCK file and correctly displayed a message that the file
    was currently being edited by someone else.

    The university I work at was going to buy Contribute for website editing, but
    of course the trial version has to work properly first. Using unencrypted FTP
    connections is not an option, of course. Can a Macromedia engineer please try
    to resolve this bug? If you want me to do more tests or if you need an account
    on our SFTP server to test this yourself, I will gladly help.

    I'm sorry for my bad English.

    P.S.: Our SFTP server runs AIX with SSH 3.2.5, as Contribute clients I tried
    Windows XP, Windows 2003 Server and Mac OS X 10.3.8, but the error occurs on
    all three Contribute platforms.

    HelgeGrimm Guest

  2. Similar Questions and Discussions

    1. Given correct SFTP login information, Contribute tellsme it's wrong
      I'm attempting to set up a new SFTP connection. When I give my login information, it pops up an error "Your Secure FTP (SFTP) username or password...
    2. Does Contribute 3 allow you to edit php files?
      I am looking at purchasing Contribute 3 from a firend and wanted to know whether Contribute 3, the one in Studio 8, would allow me to edit simple php...
    3. Cannot Edit in Contribute 2
      Hello, Anyone know why I can't "edit" on one of the pages of my Website and how to fix it. When I hit "edit" on this page--all the other pages...
    4. Help with Net::SFTP when sftp on unix works.
      Running on AIX, the unix sftp will connect to my site just fine, but the Net::SFTP perl modules hangs at one point. Here are the logs for the...
    5. Can Contribute Edit an SSI?
      This is my first post so I hope I'm not asking dumb questions. On a small site I have each page containing the link command for the old NN4 CSS...
  3. #2

    Default Re: Contribute cannot EDIT files over SFTP

    Has anybody else ever seen this behaviour of an SFTP server?
    If you try to "get" a file that doesn't exist, the server returns error 2
    (file not found). But if you try to "chmod" or "rename" it, the server returns
    error 4 (general error).
    I don't know how Contribute tries to check if the lock file exists, but the
    server answers with error 4 if the file does not exist. Contribute then aborts,
    because it only understands error 2. I don't know why the SFTP server returns
    error 4, but it's the standard distribution of OpenSSH 3.2.5 running on AIX.
    Isn't it possible to patch Contribute in a way that it recognizes error 4 or
    uses another method to detect the presence of lock files?

    HelgeGrimm Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139