<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>326786</bug_id>
          
          <creation_ts>2013-10-28 13:55:16 +0000</creation_ts>
          <short_desc>Can&apos;t send .ini files</short_desc>
          <delta_ts>2014-02-06 12:32:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>telepathy</product>
          <component>send-file</component>
          <version>unspecified</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alex Fiestas">afiestas</reporter>
          <assigned_to name="Telepathy Bugs">kde-telepathy-bugs-null</assigned_to>
          <cc>kde</cc>
          
          <cf_commitlink>http://commits.kde.org/telepathy-common-internals/f661897486d989410ef7d0d65d6246f2ec9b6639</cf_commitlink>
          <cf_versionfixedin>0.8.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1407006</commentid>
    <comment_count>0</comment_count>
    <who name="Alex Fiestas">afiestas</who>
    <bug_when>2013-10-28 13:55:16 +0000</bug_when>
    <thetext>For some reason .ini files can&apos;t be sent, it does not matter if I select it using the dialog or drag and drop it.

Reproducible: Always</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1407008</commentid>
    <comment_count>1</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2013-10-28 14:06:22 +0000</bug_when>
    <thetext>I&apos;m confused.

I was the recipient in Alex&apos;s testing - and it seemed very much to match this.
I just tried creating an ini file (I renamed a file to .ini) and transferred it using my local jabber server and it worked perfectly.

I&apos;d like someone else to check.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1411099</commentid>
    <comment_count>2</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2013-11-13 10:31:23 +0000</bug_when>
    <thetext>Confirmed with testing with mck182.

Still makes absolutely no sense though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1411196</commentid>
    <comment_count>3</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2013-11-13 17:07:02 +0000</bug_when>
    <thetext>According to logs:
 - local program tries to send
 - remote does not get anything
 - local is told remove rejected the FT

Jingle logs attached. It could be Google blocking stuff (which would explain why it worked when I tested)

11/13/13 18:02:29.554960 - [gabble/file-transfer] gabble_ft_manager_handle_request (ft-manager.c:465): File transfer request
11/13/13 18:02:29.555022 - [gabble/file-transfer] gabble_ft_manager_handle_request (ft-manager.c:581): Requested outgoing channel with contact: martin.klapetek@gmail.com
11/13/13 18:02:29.555156 - [gabble/jid] gabble_signal_connect_weak (util.c:666): connecting to 0xa44f10:presences-updated with context 0xb4ff80
11/13/13 18:02:29.555210 - [gabble/file-transfer] gabble_file_transfer_channel_constructed (ft-channel.c:443): New FT channel created: /org/freedesktop/Telepathy/Connection/gabble/jabber/david_40davidedmundson_2eco_2euk_2fkde_2dtelepathy_2d657662/FileTransferChannel/0xa2d4e0 (contact: martin.klapetek@gmail.com, initiator: david@davidedmundson.co.uk, file: &quot;address.ini&quot;, size: 22)
11/13/13 18:02:29.555293 - [gabble/file-transfer] offer_gtalk_file_transfer (ft-channel.c:1344): Offering Gtalk file transfer to martin.klapetek@gmail.com/kde-telepa2A77BD86
11/13/13 18:02:29.555334 - [gabble/share] gtalk_file_collection_init (gtalk-file-collection.c:212): GTalk file collection init called
11/13/13 18:02:29.555486 - [gabble/share] gabble_jingle_share_init (jingle-share.c:153): jingle share init called
11/13/13 18:02:29.555589 - [gabble/jid] gabble_signal_connect_weak (util.c:666): connecting to 0x10a8520:notify::state with context 0x112b040
11/13/13 18:02:29.555641 - [gabble/jid] gabble_signal_connect_weak (util.c:666): connecting to 0x10a8520:terminated with context 0x114e740
11/13/13 18:02:29.555701 - [gabble/jid] gabble_signal_connect_weak (util.c:666): connecting to 0xa561e0:new-share-channel with context 0x102f300
11/13/13 18:02:29.555757 - [gabble/jid] gabble_signal_connect_weak (util.c:666): connecting to 0xa561e0:completed with context 0xb927a0
11/13/13 18:02:29.555867 - [gabble/share] produce_description (jingle-share.c:454): produce description called
11/13/13 18:02:29.556169 - [wocky] _write_node_tree: Serializing tree:
* iq xmlns=&apos;jabber:client&apos; type=&apos;set&apos; to=&apos;martin.klapetek@gmail.com/kde-telepa2A77BD86&apos; id=&apos;12763556130&apos;
    * session xmlns=&apos;http://www.google.com/session&apos; initiator=&apos;david@davidedmundson.co.uk/kde-telepaFDF02839&apos; id=&apos;1025836326&apos; type=&apos;initiate&apos;
        * description xmlns=&apos;http://www.google.com/session/share&apos;
            * manifest
                * file size=&apos;22&apos;
                    * name
                        &quot;address.ini&quot;
            * protocol
                * http
                    * url name=&apos;source-path&apos;
                        &quot;/temporary/1b2b92f5-4546-4c05-a73f-b16f72b98f05/&quot;
                    * url name=&apos;preview-path&apos;
                        &quot;/temporary/e8215086-f63c-4835-a4b6-dadc77da99dd/&quot;
        * transport xmlns=&apos;http://www.google.com/transport/p2p&apos;
11/13/13 18:02:29.556327 - [gabble/share] jingle_session_state_changed_cb (gtalk-file-collection.c:420): called
11/13/13 18:02:29.556369 - [gabble/file-transfer] gabble_file_transfer_channel_gtalk_file_collection_state_changed (ft-channel.c:1278): gtalk ft state changed to 0
11/13/13 18:02:29.556476 - [gabble/jid] gabble_signal_connect_weak (util.c:666): connecting to 0xa2d4e0:closed with context 0x102f260
11/13/13 18:02:29.756895 - [wocky] _end_element_ns: Received stanza
* iq xmlns=&apos;jabber:client&apos; type=&apos;error&apos; to=&apos;david@davidedmundson.co.uk/kde-telepaFDF02839&apos; id=&apos;12763556130&apos; from=&apos;martin.klapetek@gmail.com/kde-telepa2A77BD86&apos;
    * session xmlns=&apos;http://www.google.com/session&apos; initiator=&apos;david@davidedmundson.co.uk/kde-telepaFDF02839&apos; id=&apos;1025836326&apos; type=&apos;initiate&apos;
        * description xmlns=&apos;http://www.google.com/session/share&apos;
            * manifest
                * file size=&apos;22&apos;
                    * name
                        &quot;address.ini&quot;
            * protocol
                * http
                    * url name=&apos;source-path&apos;
                        &quot;/temporary/1b2b92f5-4546-4c05-a73f-b16f72b98f05/&quot;
                    * url name=&apos;preview-path&apos;
                        &quot;/temporary/e8215086-f63c-4835-a4b6-dadc77da99dd/&quot;
        * transport xmlns=&apos;http://www.google.com/transport/p2p&apos;
    * error code=&apos;405&apos; type=&apos;cancel&apos;
        * not-allowed xmlns=&apos;urn:ietf:params:xml:ns:xmpp-stanzas&apos;
11/13/13 18:02:29.757064 - [gabble/share] jingle_session_state_changed_cb (gtalk-file-collection.c:420): called
11/13/13 18:02:29.757195 - [gabble/file-transfer] gabble_file_transfer_channel_gtalk_file_collection_state_changed (ft-channel.c:1278): gtalk ft state changed to 3
11/13/13 18:02:29.757282 - [gabble/file-transfer] close_session_and_transport (ft-channel.c:888): Closing session and transport
11/13/13 18:02:29.757328 - [gabble/share] gtalk_file_collection_terminate (gtalk-file-collection.c:1668): called
11/13/13 18:02:29.757388 - [gabble/file-transfer] gabble_file_transfer_channel_gtalk_file_collection_state_changed (ft-channel.c:1278): gtalk ft state changed to 3
11/13/13 18:02:29.757430 - [gabble/file-transfer] close_session_and_transport (ft-channel.c:888): Closing session and transport
11/13/13 18:02:29.757468 - [gabble/share] gtalk_file_collection_terminate (gtalk-file-collection.c:1668): called
11/13/13 18:02:29.757507 - [gabble/share] gtalk_file_collection_dispose (gtalk-file-collection.c:246): dispose called
11/13/13 18:02:29.757553 - [gabble/jid] user_data_destroyed_cb (util.c:635): user_data for 0x112b040 destroyed; disconnecting
11/13/13 18:02:29.757596 - [gabble/jid] user_data_destroyed_cb (util.c:635): user_data for 0x114e740 destroyed; disconnecting
11/13/13 18:02:29.757639 - [gabble/jid] user_data_destroyed_cb (util.c:635): user_data for 0x102f300 destroyed; disconnecting
11/13/13 18:02:29.757682 - [gabble/jid] user_data_destroyed_cb (util.c:635): user_data for 0xb927a0 destroyed; disconnecting
11/13/13 18:02:29.757734 - [gabble/share] gabble_jingle_share_dispose (jingle-share.c:169): dispose called
11/13/13 18:03:01.558717 - [wocky] _end_element_ns: Received stanza</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1428467</commentid>
    <comment_count>4</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2014-02-03 11:55:17 +0000</bug_when>
    <thetext>We found the cause of this:
Google blocks (silently) the sending of any file that ends in .exe or .ini

When sending a file with this extension we want to rename the file the other person receives.

It should be possible to do this by changing the suggested file name http://telepathy.freedesktop.org/doc/telepathy-qt/a00231.html

in ktp-common-internals/KTp/actions.cpp startFileTransfer</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1429113</commentid>
    <comment_count>5</comment_count>
    <who name="Daniel Vrátil">dvratil</who>
    <bug_when>2014-02-06 12:32:36 +0000</bug_when>
    <thetext>Git commit f661897486d989410ef7d0d65d6246f2ec9b6639 by Dan Vrátil, on behalf of Jan Stourac.
Committed on 06/02/2014 at 12:30.
Pushed by dvratil into branch &apos;master&apos;.

Fix for sending ini and exe files using Google Talk account

Each file transfer is checked for using Google Talk and forbidden extensions.
In that case, &quot;_&quot; character is appended to suggested file name. For all other
cases transfer process remains the same.

REVIEW: 115463
FIXED-IN: 0.8.0

M  +33   -2    KTp/actions.cpp
M  +8    -2    data/ktelepathy.notifyrc

http://commits.kde.org/telepathy-common-internals/f661897486d989410ef7d0d65d6246f2ec9b6639</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>