|
From: Ben W. <be...@we...> - 2004-08-28 07:29:37
|
Howdy,
I sent this to jedit-users, but didn't get any responses; I figured I'd
try sending it to -devel, see if anyone on here has any ideas. Sorry if
you get this twice.
- Ben
-------- Original Message --------
Subject: [ jEdit-users ] I/O error: Permission denied (SFTP?)
Date: Wed, 18 Aug 2004 17:05:38 +0930
From: Ben Williams <be...@we...>
To: jed...@li...
Hi All,
My apologies if this has been covered before - I couldn't find anything
on google or in the list archives. I've just subscribed to this list.
I'm using jEdit 4.2pre15, and I'm editing files on a remote linux server
via SFTP (using the fantastic FTP Plugin, v0.7.2). The ownership &
permissions on the files are important to maintain - I'm not the owner,
but I am a member of the owner's group and the group permissions are
such that I can modify the files. This works fine if editing in an ssh
terminal.
If I use the Two-stage save option, my files save fine, but the file
ownership & group reverts to my username & primary group (different to
the group that originally owned the files) - not what I want.
If I don't use the two-stage save, the contents of the file is updated
successfully, but I get an error dialog with the following message:
sftp://ben@my.host.com.au:22/my/file.php:
Cannot save: java.io.IOException: Permission denied
I get the following relevant lines in the Activity Log:
-------------
[error] BufferIORequest: java.io.IOException: Permission denied
[error] BufferIORequest: at
com.sshtools.j2ssh.sftp.SftpSubsystemClient.getOKRequestStatus(Unknown
Source)
[error] BufferIORequest: at
com.sshtools.j2ssh.sftp.SftpSubsystemClient.setAttributes(Unknown Source)
[error] BufferIORequest: at
com.sshtools.j2ssh.sftp.SftpSubsystemClient.changePermissions(Unknown
Source)
[error] BufferIORequest: at ftp.SFtpConnection.chmod(Unknown Source)
[error] BufferIORequest: at ftp.FtpVFS._saveComplete(Unknown Source)
[error] BufferIORequest: at
org.gjt.sp.jedit.buffer.BufferIORequest.save(BufferIORequest.java:783)
[error] BufferIORequest: at
org.gjt.sp.jedit.buffer.BufferIORequest.run(BufferIORequest.java:134)
[error] BufferIORequest: at
org.gjt.sp.util.WorkThread.doRequest(WorkThread.java:194)
[error] BufferIORequest: at
org.gjt.sp.util.WorkThread.doRequests(WorkThread.java:161)
[error] BufferIORequest: at
org.gjt.sp.util.WorkThread.run(WorkThread.java:135)
[error] ErrorListDialog$ErrorEntry:
sftp://ben@my.host.com.au:22/my/file.php:
[error] ErrorListDialog$ErrorEntry: Cannot save: java.io.IOException:
Permission denied
-------------
I believe it's the chmod line (ftp.SFtpConnection.chmod) that is
producing that error - indeed, I can't chmod the files in a ssh terminal
either (which is expected behaviour).
I know jEdit has some kind of permissions-maintaining code in it's save
routine. I guess the question is, is this a problem with the FTP plugin,
or with jEdit? Is there any way I can stop jEdit and/or the FTP plugin
from trying to execute the chmod?
Possibly relevant info: Client - Windows XP (not SP2), Sun J2RE
1.4.2_04, jEdit 4.2pre15, FTP Plugin 0.7.2; Server - Redhat 7.2, ext3
filesystem.
(This might be related to bug 978894 on sourceforge?
<http://sourceforge.net/tracker/index.php?func=detail&aid=978894&group_id=588&atid=100588>)
Thanks in advance,
- Ben
|