Uploaded image for project: 'JBoss ESB'
  1. JBoss ESB
  2. JBESB-3147

FTP notifier - Illegal character in fragment - with special char in password

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.7
    • Fix Version/s: None
    • Component/s: Documentation, Rosetta
    • Labels:
      None
    • Affects:
      Documentation (Ref Guide, User Guide, etc.)

      Description

      Related to: https://jira.jboss.org/jira/browse/JBESB-2828

      For example - this FTP notifier:

      <action class="org.jboss.soa.esb.actions.Notifier" name="notify">
      <property name="okMethod" value="notifyOK" />
      <property name="notification-details">
      <NotificationList type="OK">
      <target class="NotifyFTP">
      <ftp
      URL="ftp://username:char##@servername.jboss.com/ftp_dir##"
      filename=".test.

      {jbossesb.message.id}.dat"
      passive="true" />
      </target>
      </NotificationList>
      </property>
      </action>

      Raises this exception:

      17:06:33,898 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
      17:06:33,899 INFO [STDOUT] Body: Hello World
      17:06:33,899 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
      17:06:33,899 INFO [STDOUT] Message structure:
      17:06:33,899 INFO [STDOUT] [Hello World].
      17:06:33,923 ERROR [NotificationList] Can't instantiate target <target class="NotifyFTP">
      <ftp URL="ftp://username:char##@servername.jboss.com/ftp_dir##" filename=".test.{jbossesb.message.id}

      .dat" passive="true"/>
      </target>
      org.jboss.soa.esb.notification.NotificationException: org.jboss.soa.esb.ConfigurationException: java.net.URISyntaxException: Illegal character in fragment at index 23: ftp://username:char##@servername.qa.atl.jboss.com/ftp_dir##
      at org.jboss.soa.esb.notification.NotifyFTP.getFtpEpr(NotifyFTP.java:139)
      at org.jboss.soa.esb.notification.NotifyFTP.sendNotification(NotifyFTP.java:159)
      at org.jboss.soa.esb.notification.NotificationList.notifyAll(NotificationList.java:164)
      at org.jboss.soa.esb.actions.Notifier.notifyOK(Notifier.java:93)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.processSuccess(ActionProcessorMethodInfo.java:165)
      at org.jboss.soa.esb.listeners.message.OverriddenActionLifecycleProcessor.processSuccess(OverriddenActionLifecycleProcessor.java:108)
      at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.notifySuccess(ActionProcessingPipeline.java:950)
      at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:724)
      at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:586)
      at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:420)
      at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:540)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:636)
      Caused by: org.jboss.soa.esb.ConfigurationException: java.net.URISyntaxException: Illegal character in fragment at index 23: ftp://userrname:char##@servername.jboss.com/ftp_dir##
      at org.jboss.soa.esb.listeners.ListenerUtil.fileEprFromElement(ListenerUtil.java:331)
      at org.jboss.soa.esb.notification.NotifyFTP.getFtpEpr(NotifyFTP.java:135)
      ... 17 more
      Caused by: java.net.URISyntaxException: Illegal character in fragment at index 23: ftp://username:char##@servername.jboss.com/ftp_dir##
      at java.net.URI$Parser.fail(URI.java:2825)
      at java.net.URI$Parser.checkChars(URI.java:2998)
      at java.net.URI$Parser.parse(URI.java:3044)
      at java.net.URI.<init>(URI.java:595)
      at org.jboss.soa.esb.listeners.ListenerUtil.fileEprFromElement(ListenerUtil.java:205)
      ... 18 more

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  ldimaggio Leonard Dimaggio
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated: