title: Smack's FileTransferManager.createOutgoingFileTransfer only accepts full JIDs. How can I determine the full JID of a user in Smack?
body: <p>After hours of debugging and trying to find out why the file transfer was not working using aSmack, while normal messaging was, I finally managed to pin it down to this.</p>
  
  <p>The Openfire server is sending the Rosters' JID missing the / at the end when I follow the method given in the Smack documentation to get a user's Roster list.</p>
  
  <pre><code>Collection&lt;RosterEntry&gt; entries = roster.getEntries();
  for (RosterEntry r : entries) {
      Log.v("Gabriel","Receiving: " + r.getUser());
  }      
  </code></pre>
  
  <p>For example if I receive a message from the user gabriel, I get the "From" as:  </p>
  
  <pre><code>gabriel@dragonov/Smack
  </code></pre>
  
  <p>But the r.getUser() returns to the user as</p>
  
  <pre><code>gabriel@dragonov
  </code></pre>
  
  <p>Even</p>
  
  <pre><code>connection.getRoster().getPresence(contactName).getFrom()
  </code></pre>
  
  <p>is returning is as "gabriel@dragonov".</p>
  
  <p>This is causing the File transfer to fail, but oddly not the regular messaging. However when I manually add the /Smack at the end of</p>
  
  <pre><code> OutgoingFileTransfer transferr = manager.createOutgoingFileTransfer(contactJID+"/Smack");
  </code></pre>
  
  <p>it works.</p>
  
  <p>My question is, how can I receive the full JID with the resource part included or configure the file transfer so that it doesn't fail when using a bare JID?</p>
  
  <hr>
  
  <p>Edit:</p>
  
  <p>I have tried the following method:</p>
  
  <pre><code> Log.v("Gabriel", entries.size() + " buddy(ies):");
      for (RosterEntry r : entries) {
          Log.v("Pat","adding: " + r.getType() + "  " + r.getName());
          contacts.add(r.getUser());
      }      
  
      for (String contact : contacts){
          Iterator&lt;org.jivesoftware.smack.packet.Presence&gt; presences = connection.getRoster().getPresences(contact);
          Log.v("Gabriel", contact+" has: ");
          while(presences.hasNext()){
              Log.v("Gabriel",presences.next().getFrom());
          }           
      }
  </code></pre>
  
  <p>But I am still getting the bare ID.</p>
  
  <p>The output:
      gabriel@dragonov has: 
      gabriel@dragonov</p>