This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Probably mixing up of line-breaks across platforms when mounting an smb-share from Windows on a Macintosh | ||
---|---|---|---|
Product: | java | Reporter: | Peter Werno <peterwerno> |
Component: | Unsupported | Assignee: | issues@java <issues> |
Status: | RESOLVED WORKSFORME | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | Macintosh | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Peter Werno
2002-07-18 15:45:47 UTC
Hmm... maybe there's also bug in MacOS' JDK (?) File.getOutputStream() (which is used for writing out editor contents) is supposed to truncate the file to zero length. The linebreak style used when saving is supposed to be the same as on the first line break in the file, will investigate. Set target milestone to TBD Peter, I was not able to reproduce it with Windows (with \r\n linebreaks) files. Can you, please try to copy your Windows files from your samba-mounted disk to local disk and try it once more? Thanks. Hello Tomas, I have tried it with copying the (Windows-)Files to local directory. Both produce basically the same error with a small difference: When the file is on a mounted Samba-Share and I change it from the IDE running in Mac OS X, the file gets appended a few additional characters. If I then close and reopen the file in the IDE, I can SEE this additional text. Doing the same thing with a copy on the local file system, it still adds these additional chars, but if I close & reopen the files, I do NOT see them ... (hmmmmm) (actually only a "rough/quick" testing ...) Which OS have you tried to reproduce this on? I currently have no access to a Linux machine to check if it worked there. I am running the IDE on Mac OS X which has a VSS- Share mounted from a Win2K Server (actually, which version of Windows / Samba have you mounted the shares from when testing?) It could well be that this is a problem with Apple's JDK (as Svatopuk Dedic mentioned) I haven't done any investigations into this (so little time :-) but if I find a few minutes I will try and post the results here! Regards, Peter >Doing the same thing with a copy on the local file system, >it still adds these additional chars, but if I close & >reopen the files, I do NOT see them ... (hmmmmm) (actually >only a "rough/quick" testing ...) I am sorry, but I don't understand it. How do you know that additional characters were added if you did not see them? >Which OS have you tried to reproduce this on? Mac OS X 10.1.5, with Java 1.3.1Update. >actually, which version of Windows / Samba have you mounted the shares from when >testing? I did not test it with Samba-mounted directory. I had Windows files on my local disk and I was not able to reproduce your problem. Therefore I asked you to try it on local disk to find out if samba is involved in the problem or not. Seems to work for us -- I also tried to access the file on a SMB share (although from Linux) with no strange things happening. |