Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-1869

Degraded file transfer feature when sending files between different networks

    XMLWordPrintable

    Details

      Description

      It's hard to investigate File transfer issues, but it seems that in 2.7 it was more reliable when sending between different subnets/networks (say in my virtual environment). In 2.8 i can only send files from my virtual host into a virtual machine, but not back or between virtual machines. It works ok in local LAN at work.

      On the sending side it logs:

      Jan 23, 2017 10:23:23 PM org.jivesoftware.spark.util.log.Log error
      SEVERE: There was an error during file transfer.
      org.jivesoftware.smack.SmackException: Error in execution
          at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer.negotiateStream(IncomingFileTransfer.java:199)
          at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer.access$100(IncomingFileTransfer.java:57)
          at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer$1.run(IncomingFileTransfer.java:129)
          at java.lang.Thread.run(Unknown Source)
      Caused by: java.util.concurrent.ExecutionException: org.jivesoftware.smack.SmackException: SOCKS5 negotiation failed
          at java.util.concurrent.FutureTask.report(Unknown Source)
          at java.util.concurrent.FutureTask.get(Unknown Source)
          at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer.negotiateStream(IncomingFileTransfer.java:193)
          ... 3 more
      Caused by: org.jivesoftware.smack.SmackException: SOCKS5 negotiation failed
          at org.jivesoftware.smackx.bytestreams.socks5.Socks5Client$1.call(Socks5Client.java:105)
          at org.jivesoftware.smackx.bytestreams.socks5.Socks5Client$1.call(Socks5Client.java:80)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          ... 1 more

      Receiving (failing) side shows this in raw receiving packets:

      <iq type="result" id="iAnNS-348" to="sato@wroot/wrootXP"><query xmlns="jabber:iq:private"><scratchpad xmlns="scratchpad:tasks"/></query></iq>
      <presence id="bo9y2-12" from="mira@wroot/Spark" to="sato@wroot"><status>Online</status><priority>1</priority><c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.igniterealtime.org/projects/smack" ver="TJuVIXqTCVfJSthaPu4MtTbaf9A="/></presence>
      <iq to="sato@wroot/wrootXP" id="bo9y2-426" type="set" from="mira@wroot/Spark"><si xmlns="http://jabber.org/protocol/si" id="jsi_6086888746219777919" profile="http://jabber.org/protocol/si/profile/file-transfer"><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" name="sip-communicator.properties" size="897"><desc>Sending file</desc></file><feature xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" type="form"><field var="stream-method" type="list-single"><option><value>http://jabber.org/protocol/bytestreams</value></option><option><value>http://jabber.org/protocol/ibb</value></option></field></x></feature></si></iq>
      <iq to="sato@wroot/wrootXP" id="bo9y2-430" type="set" from="mira@wroot/Spark"><query xmlns="http://jabber.org/protocol/bytestreams" sid="jsi_6086888746219777919" mode="tcp"><streamhost jid="mira@wroot/Spark" host="2001:0:2854:193c:3457:20a7:f5ff:fdf0" port="7777"/><streamhost jid="mira@wroot/Spark" host="fe80:0:0:0:3457:20a7:f5ff:fdf0%net1" port="7777"/><streamhost jid="mira@wroot/Spark" host="10.0.2.15" port="7777"/><streamhost jid="mira@wroot/Spark" host="fe80:0:0:0:0:5efe:a00:20f%net0" port="7777"/><streamhost jid="mira@wroot/Spark" host="fe80:0:0:0:19:7735:d202:855c%eth1" port="7777"/></query></iq>
      <iq to="sato@wroot/wrootXP" id="bo9y2-432" type="set" from="mira@wroot/Spark"><open xmlns="http://jabber.org/protocol/ibb" block-size="4096" sid="jsi_6086888746219777919" stanza="iq"/></iq>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              wroot wroot
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: