D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => DNS-323 => Topic started by: P01arBear on November 02, 2009, 10:36:20 PM

Title: FTP cannot send/read MS Word files
Post by: P01arBear on November 02, 2009, 10:36:20 PM
Hi people,

I'm just wondering if it's normal that I can't acces my MS Word files by the FTP server?

It's pretty strange since MS Excel documents word fine, as well as any .zip or .txt files. But when I try to copy or read any MS Word files, it cannot be accessed. It shows a broken link/no answer page.

They are MS Word 2007, but I've tryed to convert them to MS Word 97-03 and also to PDF with the same result.

Any ideas?
Title: Re: FTP cannot send/read MS Word files
Post by: gunrunnerjohn on November 03, 2009, 05:00:22 AM
That's the oddest thing I've heard!  Are you saying it's tied to document content?  I have no problem with Word 2007 documents or PDF files, so this isn't a universal issue.
Title: Re: FTP cannot send/read MS Word files
Post by: P01arBear on November 03, 2009, 09:13:48 AM
That's good to know!

I'll try to figure it out.

Notes;
- This only happens in group access
- Only happens with Word 97, Word 07 and PDF / Txt, Excel and zip files are OK.


For some reason, when I create word files from my job and put them on the ftp then there is no problem. That's pretty strange...

I'll do more tests to try to locate the problem more specificaly.
Title: Re: FTP cannot send/read MS Word files
Post by: ECF on November 03, 2009, 09:32:53 AM
This issue only will happen if the user is part o***roup?
Title: Re: FTP cannot send/read MS Word files
Post by: P01arBear on November 03, 2009, 11:12:55 AM
Not sure what you mean by "o***roup?"

If you mean users in a group, then yes.

But I havn't done much test, will try to run more tests after work to find the source of the problem.
Title: Re: FTP cannot send/read MS Word files
Post by: ECF on November 03, 2009, 01:58:10 PM
Yeah a group. Haha it seems the forum though I said something not appropriate.
Title: Re: FTP cannot send/read MS Word files
Post by: gunrunnerjohn on November 03, 2009, 02:18:26 PM
One wonders at what you actually typed to hit the censor. :D
Title: Re: FTP cannot send/read MS Word files
Post by: P01arBear on November 04, 2009, 10:06:30 AM
I'm back and have made a few more tests...

- Group or single account makes no differance, the files cannots be opened or copied.
- The files work very well when accessed by the network
- This applies to MS Office files (Word, sometimes excel also...2007, or saved as 2003 makes no differance)
- The client used is windows explorer

Now the problem is still, why won't the ftp server allow me to copy or open word files?
Title: Re: FTP cannot send/read MS Word files
Post by: gunrunnerjohn on November 04, 2009, 01:38:17 PM
Duh!  :'(  I just realized that you are having the problem ONLY with the FTP server!  FWIW, I have the exact same issue!  I just copied a .DOC file over and then tried to use the Windows 7 standard FTP client to access it, and got "no such file or directory".  Of course, I can access it fine with Windows sharing.

This is obviously a real bug, not just one that affects you. :)
Title: Re: FTP cannot send/read MS Word files
Post by: P01arBear on November 04, 2009, 02:26:38 PM
Aww...I was hoping it wasn't so, I really need to share and access these files!  :'(
Title: Re: FTP cannot send/read MS Word files
Post by: gunrunnerjohn on November 04, 2009, 02:39:55 PM
It's hard to know why they have this issue. 

I change my story, I found out why mine didn't transfer.  I had the filename in upper case and did the FTP in lower case.

Are you sure you don't have a case mismatch between the FTP client and the actual filename?




Title: Re: FTP cannot send/read MS Word files
Post by: P01arBear on November 04, 2009, 03:07:17 PM
I don't understand...

I'm using windows explorer to get to the files.

I made a file named test.doc and didn't work.
Title: Re: FTP cannot send/read MS Word files
Post by: gunrunnerjohn on November 04, 2009, 03:11:01 PM
Windows explorer is not case sensitive, so it doesn't care.  FTP is case sensitive, so if you type in the wrong case for any letter, it will fail to find the file.

I don't know that this is your issue, just happened to bite me when I was testing the FTP, I wasn't thinking about case.
Title: Re: FTP cannot send/read MS Word files
Post by: ECF on November 04, 2009, 03:30:58 PM
Can you provide details on users setup in the network access list and user setup for the FTP server.
Title: Re: FTP cannot send/read MS Word files
Post by: P01arBear on November 04, 2009, 03:47:40 PM
What I did:
1) I created a user name/password for 4 accounts.
2) Immediatly, I added them into a group I created. (group named RegimeKetzer) 4 membres as of now - only groupe I made)
3) access for this group is set to 1 folder directly on volume 1. (folder named RegimeKetzer) Their permission is READ/WRITE.
4) In this folder are a few zip files, 1 subfolder and about 5-6 doc files (MS Word 2007, but saved as 97-03).

Did the same with 1 single account, same access but in no group.

ERROR MESSAGE ON COPY: "An error occured while copying the file."
ERROR MESSAGE ON OPEN: "Internet Explorer cannot display the webpage"


Notes;
- Files open well when accessed by network.
- Client is windows explorer.
- FTP is in passive mode.
- Only 1 group exists with 4 members.
- In total, 5 members have access to the ftp.
- Problem also occurs with PDF, excel files. Zip and txt files can open with no problem.
- Address is by DDNS
- As been tested with file names such as "test.doc" and more complex as "Atelier I - Législation approfondi.docx"

Group Quota: 1024 MB (0 used)
Individual Quotas: Unlimited

Network Access: Default settings (Type: SMB / SMB List: Volume_1 / USER: ALL / OPLOCKS: NO / Map archive: NO / READ+WRITE)

Code: [Select]
Status  Started
  Port 21
  Max. User 5
  Flow Control Unlimited
  Idle Time 2 
  Client Language Western European
  SSL/TLS connection Yes
  Passive Mode 55536~55663


Code: [Select]
DEVICE INFO
-----------
System Temperature:  105°F / 41°C
Current Rx/Tx:  214289/225482
System Up Time:  3 days 6 hours 34 minutes 


Code: [Select]
HARD DRIVE INFO
---------------
Volume Name:  Volume_1
Volume Type:  Standard
Total Hard Drive Capacity:  491203 MB
Used Space:  22 MB
Unused Space:  491181 MB


Code: [Select]
DHCP Server: Disabled
LLTD: Disabled
UPNP Server: Disabled
iTunes Server: Disabled
Lan Settings: DHCP Client
Jumbo Frame Settings: Disabled
Flow control: unlimited


DIR-655 A4 Firmware 1.21
DNS-323 Firmware 1.08b05 w/ WD Caviar Green 500Gig

All router ports are forwarded for passive and virtual server is set for port 21 towards the DNS.
Title: Re: FTP cannot send/read MS Word files
Post by: bella on November 04, 2009, 03:50:57 PM
What are the filename for these files? are you using unicode or any special characters?
Title: Re: FTP cannot send/read MS Word files
Post by: fordem on November 04, 2009, 04:02:10 PM
There is definitely a problem of some sort.

Using the 1.08b5 beta - the only files I can transfer are .txt files - I have tried word files (.doc), excel files (.xls), adobe files (.pdf) and zip archives - they all appear to transfer successfully, until you attempt to open them at which point the application reports that they are corrupt of have an invalid format.
Title: Re: FTP cannot send/read MS Word files
Post by: P01arBear on November 04, 2009, 04:23:09 PM
What are the filename for these files? are you using unicode or any special characters?
Look at the settings up a few posts; Client Language Western European  ;D


file names make no differance, have tried renaming them many times.
Title: Re: FTP cannot send/read MS Word files
Post by: DocD on November 04, 2009, 09:12:23 PM
Thought I'd add another datapoint.  I tried this using WinXP SP2 and Office 2003 - both Word 2003 .doc and 2007 .docx formats.  (I haven't upgraded to Win7 or Off2007 yet).  I can transfer Word documents to and from my NAS (firmware 1.08b05) without any problem using Windows Explorer's FTP, Internet Explorer's FTP and Roadkil's compact FTP client.  I haven't tried opening a file from inside Word2003 that's stored on the NAS - that might be problematical since Word will try storing a temporary file in the same directory and there might be some EXT2 permissions that Word might have trouble dealing with.  (Actually, I just did try it - and Word2003 errored out thinking the .doc file was compressed...)  Bottom line - I can swap .doc and .docx files on and off the NAS by FTP - and even when done multiple times, there are no problems opening them on my local hard drive.  Unless I'm missing a crucial step, I'm not seeing the problem.
-DocD
Title: Re: FTP cannot send/read MS Word files
Post by: P01arBear on November 04, 2009, 09:57:45 PM
I can't even copy the file to my desktop when using a ftp client. It makes an error :/
Title: Re: FTP cannot send/read MS Word files
Post by: gunrunnerjohn on November 05, 2009, 07:31:42 AM
OK, same effect here.  Here's a PDF, DOC, and XLS file.  All appeared to transfer successfully, and all had an error when they arrived.  The original files were all verified to work properly, and still do.

FTP is clearly broken on the DNS-323!



Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\xxx>ftp dlink
Connected to dlink.
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 1 of 3 allowed.
220-Local time is now 10:25. Server port: 21.
220-This server supports FXP transfers
220 You will be disconnected after 5 minutes of inactivity.
User (dlink:(none)): testuser1
331 User testuser1 OK. Password required
Password:
230 OK. Current restricted directory is /
ftp> dir
200 PORT command successful
150 Connecting to port 61372
-rwxrwxrwx    1 testuser1 702         24576 Mar 19  2009 test1.doc
-rwxrwxrwx    1 testuser1 702         38400 Oct 18 11:13 test2.xls
-rwxrwxrwx    1 testuser1 702        288161 Sep 29 14:50 test3.pdf
226-Options: -l
226 11 matches total
ftp: 814 bytes received in 0.00Seconds 407.00Kbytes/sec.
ftp> get test1.doc
200 PORT command successful
150-Connecting to port 61384
150 24.0 kbytes to download
226-File successfully transferred
226 0.002 seconds (measured here), 10.60 Mbytes per second
ftp: 24602 bytes received in 0.00Seconds 24602000.00Kbytes/sec.
ftp> get test2.xls
200 PORT command successful
150-Connecting to port 61389
150 37.5 kbytes to download
226-File successfully transferred
226 0.003 seconds (measured here), 13.17 Mbytes per second
ftp: 38944 bytes received in 0.00Seconds 38944.00Kbytes/sec.
ftp> get test3.pdf
200 PORT command successful
150-Connecting to port 61394
150 281.4 kbytes to download
226-File successfully transferred
226 0.018 seconds (measured here), 15.11 Mbytes per second
ftp: 290183 bytes received in 0.01Seconds 20727.36Kbytes/sec.
ftp>
Title: Re: FTP cannot send/read MS Word files
Post by: P01arBear on November 05, 2009, 08:02:54 AM
I found a fatal error, haha  8)

Well now...When is our next fixed firmware coming out?  ;D

Oh and...Please throw these features at the same time;
Quote from: P01arBear
[Feature Enhancements]
FTP montly bandwith upload and download limit
Add a feature of monthly bandwith upload and download limit per account would be good to gain control over the ftp activities. I think it might be better than receiving your bill at the end of the month with a bad surprise.

FTP User and Group support with per User Virtual Directories
So we can create virtual directories for groups or accounts with differant types of access to folders at differant locations on the DNS's hard drives. As of now, it's impossible to share 1 specific folder for 2 distinct users or groupes.

FTP Auto-ban IP anti-flood
Always in the optics of getting better protection, there could be a system that, after so many attemps (10...) with bad password/login in x time (example 1min) then your IP is banned from the DNS for (30min/60min/always). Perhaps this would also be good against brute force. And have a pannel to control these IP's to either keep them on that block list or unblock them (ex a friend tried too many times and just forgot his pwd).

FTP Active Logs
A simple log that could be seen directly from the GUI for direct consultation. Would help alot to know what is going wrong or who is getting access to your DNS. Again, this is almost a security addition.
Title: Re: FTP cannot send/read MS Word files
Post by: lizzi555 on November 05, 2009, 09:42:25 AM
At least it is partly solved in the next beta 1.08b07.

Quote from: D-Link Multimedia
1. Bugfix : Unable to save the modified word/excel file which already in device through Samba.
2. Bugfix : Normal to Raid1 : create a new volume for the remaining disk space.

Those are the exact bug fixes for b07....

I'm able to save and open changed Office 2007 files directly on/from the NAS.
FTP transfer is also possible - didn't try to open files via ftp.

Title: Re: FTP cannot send/read MS Word files
Post by: gunrunnerjohn on November 05, 2009, 11:26:38 AM
Well, if that beta had been made available by D-Link, we probably wouldn't be complaining about this issue!  ::)
Title: Re: FTP cannot send/read MS Word files
Post by: fordem on November 05, 2009, 11:52:48 AM
At least it is partly solved in the next beta 1.08b07.

I'm able to save and open changed Office 2007 files directly on/from the NAS.
FTP transfer is also possible - didn't try to open files via ftp.


Are you sure?

Quote
I'm able to save and open changed Office 2007 files directly on/from the NAS.
I've not had any problems with that.
Quote
FTP transfer is also possible - didn't try to open files via ftp.
But - having transferred the files - can you open them?

In case it's not clear - I have no problem moving files using Windows explorer, cut & paste, etc - and I can open files on the NAS directly from MS Office or Acrobat Reader - where I have a problem is that if use ftp to get a file from the NAS to the PC, it is corrupted and MS Office, etc. will not open it.

Your tests - at least as you describe them - do not check for this particular condition.
Title: Re: FTP cannot send/read MS Word files
Post by: gunrunnerjohn on November 05, 2009, 11:59:07 AM
My tests have the identical results as fordem reports.  I copied the files to the DNS-323 using SMB (Windows Explorer), they are fine on the DNS-323.  I can copy them back with Windows Explorer, and they're still fine.

They are corrupted by the DNS-323 FTP server if I put them there from my system OR get them from the DNS-323 to my system. 

I can't believe you'd get a different result with 1.08b05.  Since D-Link hasn't seen fit to actually make 1.08b07 available, I can't speak for that one.
Title: Re: FTP cannot send/read MS Word files
Post by: lizzi555 on November 05, 2009, 02:22:41 PM
Works fine when using ftp.
You may try yourself. I opened the server for read/write with 2 testfiles - you can change them if you want.

ftp://lizzi556.dyndns.org:40/
Title: Re: FTP cannot send/read MS Word files
Post by: gunrunnerjohn on November 05, 2009, 02:28:50 PM
Perhaps that's the real fix in 1.08b07. :)
Title: Re: FTP cannot send/read MS Word files
Post by: fordem on November 05, 2009, 04:59:15 PM
Well - that's certainly nice to know - means there won't be a "further delay" in the release of the new firmware.
Title: Re: FTP cannot send/read MS Word files
Post by: lizzi555 on November 05, 2009, 10:21:33 PM
Yes, this version does everything I need from it.

The DNS is my backup-server for older files not longer stored on my other NAS and so I only need it from time to time.
Nevertheless it is good to know that it works :)

I wish someone would write a rsync .pkg for it, then I could use it for direct backup of my Synology.

(ftp is shut down now)
Title: Re: FTP cannot send/read MS Word files
Post by: P01arBear on November 06, 2009, 10:38:15 AM
So do we know when this new firmware should be released... :-\
Title: Re: FTP cannot send/read MS Word files
Post by: gunrunnerjohn on November 06, 2009, 10:42:14 AM
Not unless you're clairvoyant. :D
Title: Re: FTP cannot send/read MS Word files
Post by: P01arBear on December 10, 2009, 12:01:14 PM
So I just loaded up the 1.08b08 beta update.

The problem seems to be solved, has anyone else tryed with this version and also works or am I just lucky?
Title: Re: FTP cannot send/read MS Word files
Post by: gunrunnerjohn on December 10, 2009, 12:21:59 PM
I have the latest beta, they work fine here.  I think it's really solved. :D

From the release notes:

2. Bugfix : Unable to save the modified word/excel file which already in device through Samba.
Title: Re: FTP cannot send/read MS Word files
Post by: P01arBear on December 10, 2009, 12:43:15 PM
Well, my DNS323 just passed from "useless" to "I can't live without it".

Good job D-Link team, once again.