IBM Support

put command failed with "Attempting to put filenames longer than 8 characters = returning: 'File name too long' "

Troubleshooting


Problem

A customer using SSH-FTP is able to successfully connect and authenticate to a C:E mailbox, however, on attempting to put a file -one of two errors are seen; Attempting to put filenames up to and including 8 characters = "Mailbox access not permitted (MAILBOX_EACCESS)." Attempting to put filenames longer than 8 characters = "Mailbox component '55555.rtf' too long - returning: 'File name too long'"

Symptom

trace file:
RealMailbox( path='/55555.rtc', buf=0xffbfb524, size=1024 )
Mailbox component '55555.rtc' too long - returning: 'File name too long'

Cause

Wrong 'put' command syntax used

Diagnosing The Problem

Enable tracing for the apropriated protocol daemon
ceutrace -d<daemon-name> -o -l9

e.g. ceutrace -dSSHFTP -o -l9

Resolving The Problem

Check the 'put' command syntax

use:

put sourcefile
- This will put the source file to the current mailbox with the same filename

or

put sourcefile ./destinationfile
- This will put the source file to the current mailbox with the destinationfile name

or

put sourcefile /mailbox/destinationfile
- This will put the source file to a mailbox with the destinationfile name

[{"Product":{"code":"SSFVK3","label":"IBM Sterling Connect:Enterprise for UNIX"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Extensions","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF027","label":"Solaris"}],"Version":"2.5;2.4","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
17 December 2019

UID

swg21642456