Bug 739915 - Typo and clarification for 12.6.8 NotifyFTPList
Summary: Typo and clarification for 12.6.8 NotifyFTPList
Keywords:
Status: ASSIGNED
Alias: None
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: doc-ESB_Programmers_Guide
Version: 5.2
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: FUTURE
Assignee: soa-docs@redhat.com
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-20 12:30 UTC by Oliver Hörmann
Modified: 2018-03-29 21:45 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)

Description Oliver Hörmann 2011-09-20 12:30:35 UTC
Description of problem:
In chapter 12.6.8 the notifier NotifyFTPList is being described. The table column "child attributes" contains an typographic error.

- Attribute "deletelistFile" should be named "deleteListFile"
See source code NotifyFTPList.java:
            public NotifyFTPList(ConfigTree config)
                    throws NotificationException {
                super (config);
                ConfigTree ftpConfig = getFtpConfig();
                listFiles = ftpConfig.getBooleanAttribute("listFiles", false);
                deleteListFile = ftpConfig.getBooleanAttribute(
                        "deleteListFile", false);
            }


- Attribute "filename" is not used. The actual filenames contained in the lists are being used for the destination file names.
See source code NotifyFTPList.java:
            @Override
            protected File getFileToSend(Message message) {
                return (File) message.getBody().get(FILE_LOCATION);
            }

            @Override
            protected String getFileName(Message message)
                    throws NotificationException {
                File file = (File) message.getBody().get(FILE_LOCATION);
                if (file == null) {
                    throw new NotificationException(
                            "Could not find a file in the file location");
                }
                return file.getName();
            }

Version-Release number of selected component (if applicable):


How reproducible:
Every time.

Steps to Reproduce:
1.
Use the NotifyFTPList. Set attribute deletelistFile="true". Check that the listfile isn't deleted.
2.
Use the NotifyFTPList. Set attribute deleteListFile="true". Check that the listfile is deleted.

  
Actual results:


Expected results:


Additional info:
This documentation bug is also present in JBoss ESB 4.x.

Comment 1 Suz 2012-03-09 04:31:07 UTC
Have corrected this spelling error and removed the filename attribute.


Note You need to log in before you can comment on or make changes to this bug.