Forum for English speaking Miranda NG users > Development

Steam protocol

<< < (111/114) > >>

Ratha:
Imgur gallery links have always been problematic in the Steam protocol while using Miranda, but have noticed a new behavior after updating recently. In the past when receiving a link to an Imgur GALLERY, Miranda would show a single image preview link instead of the actual link to the gallery. For example, depending on how the following link / message is formatted you may get 3 different results when sending: https://imgur.com/gallery/vtqrco9

Case #1 - Miranda displays: https://i.imgur.com/WLANJIt.jpg?fb (This will happen if the link is sent by itself.) (Old behavior where link to a gallery is shown as the first image preview)
Case #2 - The link fails to show up at all, but any additional text is received. (This will happen if the link is sent with additional text on the same line.) (New behavior?)
Case #3 - The link shows as normal. (This only happens if the link formatted in a specific way by the sender using the Steam client.)


Case #1 - Input in Steam client: - Link sent by itself.

--- Code: ---https://imgur.com/gallery/vtqrco9
--- End code ---

Output on Miranda: - Miranda displays preview image for gallery, but not link to gallery.

--- Quote ---https://i.imgur.com/WLANJIt.jpg?fb
--- End quote ---

-

Case #2 - Input in Steam client: - Link sent including text on the same line.

--- Code: ---https://imgur.com/gallery/vtqrco9 - Text
--- End code ---

Output on Miranda: - Miranda ignores link, outputs only the text component.

--- Quote --- - Text
--- End quote ---

-

The following method seems to force the gallery link to display in Miranda: The person sending the link from the Steam client must include 2 hard returns after the link (Link + ShiftEnter + ShiftEnter + Text.) (A copy paste will not work.)

Case #3 - Input in Steam client: - (Required for Miranda to display Imgur gallery link properly.)

--- Code: ---https://imgur.com/gallery/vtqrco9 + [ShiftEnter]
[ShiftEnter]
Text
--- End code ---

Output on Miranda:

--- Quote ---https://imgur.com/gallery/vtqrco9

Text.
--- End quote ---

-

I was fairly sure that I had posted about this somewhere before, but couldnt find the ticket on GIT. After doing more behavior testing today I figured this might be useful to someone either as a workaround or as something that can help with protocol development.

VersionInfo
--- Quote ---CPU: Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz [Intel64 Family 6 Model 60 Stepping 3] [DEP Enabled] [4 CPUs]
Installed RAM: 24521 MBytes
Microsoft Windows 7 Ultimate Edition, 64-bit Service Pack 1 (build 7601)
Internet Explorer: 9.11.9600.18665 (build 99600)
Administrator privileges: Yes
OS Languages: (UI | Locale (User/System)) : English/English | English/English
Free disk space on Miranda partition: 43163 MBytes

Miranda NG Version: 0.95.12 alpha build #22710 (c3284222ed) [running inside WOW64]
Build time: 27 Mar 2020 2:00:42
Profile: C:\Program Files (x86)\Miranda NG\Profiles\Ratha\Ratha.dat
Profile size: 169869312 Bytes
Profile creation date: 24 Nov 2019 11:46:36
Language pack: No language pack installed
Service Mode: No

Active Plugins (20):
¤ AVS.dll v.0.98.1.2 [27 Mar 2020 2:00:48] - Avatar service
¤ CrashDumper.dll v.0.1.0.4 [27 Mar 2020 2:01:16] - Crash dumper
¤ Db_autobackups.dll v.0.1.0.4 [27 Mar 2020 2:00:54] - Db autobackuper
¤ DbEditorPP.dll v.4.0.1.3 [27 Mar 2020 2:01:16] - Database editor++
¤ Dbx_mdbx.dll v.0.95.9.1 [27 Mar 2020 2:02:14] - Miranda NG MDBX database driver
¤ Dbx_mmap.dll v.0.95.8.1 [27 Mar 2020 2:00:46] - Miranda NG mmap database driver
¤ Discord.dll v.0.6.2.5 [27 Mar 2020 2:01:54] - Discord protocol
¤ Dummy.dll v.0.2.0.0 [27 Mar 2020 2:01:46] - Dummy protocol
¤ historypp.dll v.1.5.1.5 [27 Mar 2020 2:02:30] - History++
¤ ICQ.dll v.0.95.11.9 [27 Mar 2020 2:02:02] - ICQ-WIM protocol
¤ Import.dll v.0.95.11.1 [27 Mar 2020 2:01:10] - Import contacts and messages
¤ PluginUpdater.dll v.0.2.0.6 [27 Mar 2020 2:01:18] - Plugin updater
¤ SeenPlugin.dll v.5.0.5.5 [27 Mar 2020 2:01:00] - Last seen
¤ SkypeWeb.dll v.0.12.3.6 [27 Mar 2020 2:02:00] - Skype protocol (Web)
¤ SpellChecker.dll v.0.2.6.6 [27 Mar 2020 2:01:46] - Spell checker
¤ StatusManager.dll v.1.2.0.6 [27 Mar 2020 2:01:54] - Status manager
¤ Steam.dll v.0.11.6.7 [27 Mar 2020 2:01:54] - Steam protocol
¤ TabSRMM.dll v.3.6.1.2 [27 Mar 2020 2:00:56] - TabSRMM
¤ Tipper.dll v.2.1.0.7 [27 Mar 2020 2:01:06] - Tipper
¤ YAMN.dll v.0.1.2.6 [27 Mar 2020 2:01:26] - Mail Notifier

Protocols and Accounts:
-------------------------------------------------------------------------------
Discord                  2 - Enabled 0 - Disabled  Loaded
ICQ                      1 - Enabled 1 - Disabled  Loaded
SKYPE                    1 - Enabled 0 - Disabled  Loaded
STEAM                    1 - Enabled 0 - Disabled  Loaded

Icon Packs:
-------------------------------------------------------------------------------
 Flags_icons.dll [27 Mar 2020 2:02:24]
 HistoryPP_icons.dll [27 Mar 2020 2:02:24]
 Proto_Discord.dll [27 Mar 2020 2:02:24]
 Proto_Dummy.dll [27 Mar 2020 2:02:24]
 Proto_ICQ.dll [2 Jan 2019 14:26:42]
 Proto_MetaContacts.dll [27 Mar 2020 2:02:24]
 Proto_MRA.dll [27 Mar 2020 2:02:24]
 Proto_Skype.dll [27 Mar 2020 2:02:24]
 Proto_Steam.dll [27 Mar 2020 2:02:24]
 Proto_Yahoo.dll [13 Feb 2016 22:01:38]
 Proto_YAMN.dll [27 Mar 2020 2:02:24]
 TabSRMM_icons.dll [27 Mar 2020 2:02:24]
 xStatus_ICQ.dll [28 Dec 2018 3:02:08]

--- End quote ---
[close]

ghazan:
Ratha,
that stuff might depend on IEView behaviour, on your antivirus or IE plugins installed
Miranda doesn't display previews for urls itself

Ratha:

--- Quote from: ghazan on 31 03 2020, 16:21:52 ---that stuff might depend on IEView behaviour, on your antivirus or IE plugins installed
Miranda doesn't display previews for urls itself
--- End quote ---

I dont use IEView, antiviruses, or IE/plugins or anything like that. Im glad Miranda does not display previews. I hate previews, embedded data, and extra unnecessary text clogging up the chat (like with what the Discord protocol does to links.) The only thing i want to see is EXACTLY what was typed into the message window as it was sent.

The problem here is that Miranda isnt displaying the link thats being sent at all, or if it does, its displaying the incorrect link (a single image preview instead of the link to the gallery) in the case where it does display a link. This only seems to happen with Imgur "GALLERY" links and is probably related to how Steam embeds them.

-

While doing additional testing to take screenshots i noticed different behavior today than when previously testing. I was not able to get the link to transmit at all, where as a couple of days ago using Case 3 method in the previous post, i was able to get it to transmit every time. Today Case 3 was behaving like Case 1 did a few days ago. (Today it was translating the link to the gallery into an image preview instead of displaying the full link and the text.)

Also found something that i had not noticed before:
In Case 1, instead of displaying the imgur gallery link in Miranda's message window, Miranda instead deletes the last character of the previous message from the message window. This coincides with a blank line appearing in history++ where the link should be. This was caused by sending a line of text in the Steam client. And then sending the imgur gallery link with no text from the Steam client. (Was able to reliably duplicate this behavior.)

See attached image for additional details.
Note: The time discrepancy between Case 1 and the empty line following it was probably my fault. I typed "Case 1" and then had to go find the link again, and pasted it a few minutes later.

ghazan:
Ratha,
a piece of network log would be far more helpful in this case, instead of screenshots
attach please snippets for all three cases

Ratha:
#1 - Sending the following line from Steam to Miranda: (This one isnt shown in the screenshot) No link was transmitted via the network log when the link was sent before text. (But the text was)

--- Quote ---"https://imgur.com/gallery/vtqrco9 - Imgur Gallery Link"
--- End quote ---
Spoiler[10:53:47 0AB4] [STEAM_1] (0000000007AFB590:1080) Data received
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 269
Expires: Fri, 03 Apr 2020 16:53:47 GMT
Date: Fri, 03 Apr 2020 16:53:47 GMT
Connection: close

{"pollid":0,"messages":[{"type":"saytext","timestamp":12029879,"utc_timestamp":1585932827,"steamid_from":"***REDACTED***","text":" - Imgur Gallery Link"}],"messagelast":39,"timestamp":12029879,"utc_timestamp":1585932827,"messagebase":38,"sectimeout":12,"error":"OK"}
[10:53:47 0AB4] [STEAM_1] (0000000007AFB590:1080) Data received
{"pollid":0,"messages":[{"type":"saytext","timestamp":12029879,"utc_timestamp":1585932827,"steamid_from":"***REDACTED***","text":" - Imgur Gallery Link"}],"messagelast":39,"timestamp":12029879,"utc_timestamp":1585932827,"messagebase":38,"sectimeout":12,"error":"OK"}
[10:53:47 0AB4] [STEAM_1] (0000000007AFB590:1080) Connection closed internal
[10:53:47 0AB4] [STEAM_1] (0000000007AFB590:4294967295) Connection closed
[10:53:47 0AB4] [STEAM_1] Connection request to api.steampowered.com:443 (Flags 11)....
[10:53:47 0AB4] [STEAM_1] (0000000007AFC1F0) Connecting to server api.steampowered.com:443....
[10:53:47 0AB4] [STEAM_1] (0000000007AFC1F0) Connecting to ip 23.204.57.164:443 ....
[10:53:47 0AB4] [STEAM_1] (1080) Connected to api.steampowered.com:443
[10:53:47 0AB4] [STEAM_1] (1080 api.steampowered.com) Starting SSL negotiation
[10:53:47 0AB4] [STEAM_1] (1080 api.steampowered.com) SSL negotiation successful
[10:53:47 0AB4] [STEAM_1] (0000000007AFC1F0:1080) Data sent
POST /ISteamWebUserPresenceOAuth/Poll/v0001 HTTP/1.1
Content-Type: application/x-www-form-urlencoded
User-Agent: Miranda/0.95.12.22738 (x64)
Accept-Encoding: deflate, gzip
Host: api.steampowered.com
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Content-Length: 110

access_token=***REDACTED***&umqid=***REDACTED***&message=39&secidletime=0&sectimeout=30
[close]


#2 - Sending the following lines in a single message from Steam to Miranda: (Sandwiching the link between text (sometimes) causes the link to show up in Miranda.)

--- Quote ---Test

"https://imgur.com/gallery/vtqrco9

Test
--- End quote ---
Spoiler[11:08:04 0AB4] [STEAM_1] (0000000007AFC310:1184) Data received
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 297
Expires: Fri, 03 Apr 2020 17:08:04 GMT
Date: Fri, 03 Apr 2020 17:08:04 GMT
Connection: close

{"pollid":0,"messages":[{"type":"saytext","timestamp":12886538,"utc_timestamp":1585933683,"steamid_from":"***REDACTED***","text":"Test\n\nhttps://imgur.com/gallery/vtqrco9\n\nTest"}],"messagelast":50,"timestamp":12886538,"utc_timestamp":1585933683,"messagebase":49,"sectimeout":12,"error":"OK"}
[11:08:04 0AB4] [STEAM_1] (0000000007AFC310:1184) Data received
{"pollid":0,"messages":[{"type":"saytext","timestamp":12886538,"utc_timestamp":1585933683,"steamid_from":"***REDACTED***","text":"Test\n\nhttps://imgur.com/gallery/vtqrco9\n\nTest"}],"messagelast":50,"timestamp":12886538,"utc_timestamp":1585933683,"messagebase":49,"sectimeout":12,"error":"OK"}
[11:08:04 0AB4] [STEAM_1] (0000000007AFC310:1184) Connection closed internal
[11:08:04 0AB4] [STEAM_1] (0000000007AFC310:4294967295) Connection closed
[11:08:04 0AB4] [STEAM_1] Connection request to api.steampowered.com:443 (Flags 11)....
[11:08:04 0AB4] [STEAM_1] (0000000007AFC310) Connecting to server api.steampowered.com:443....
[11:08:04 0AB4] [STEAM_1] (0000000007AFC310) Connecting to ip 23.204.57.164:443 ....
[11:08:04 0AB4] [STEAM_1] (1184) Connected to api.steampowered.com:443
[11:08:04 0AB4] [STEAM_1] (1184 api.steampowered.com) Starting SSL negotiation
[11:08:04 0AB4] [STEAM_1] (1184 api.steampowered.com) SSL negotiation successful
[11:08:04 0AB4] [STEAM_1] (0000000007AFC310:1184) Data sent
POST /ISteamWebUserPresenceOAuth/Poll/v0001 HTTP/1.1
Content-Type: application/x-www-form-urlencoded
User-Agent: Miranda/0.95.12.22738 (x64)
Accept-Encoding: deflate, gzip
Host: api.steampowered.com
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Content-Length: 110

access_token=***REDACTED***&umqid=***REDACTED***&message=50&secidletime=0&sectimeout=30
[close]


#3 - Sending the following lines in a single message from Steam to Miranda: (This one does not display the link in Miranda)

--- Quote ---Test
https://imgur.com/gallery/vtqrco9
--- End quote ---
Spoiler[11:08:04 0AB4] [STEAM_1] (0000000007AFC310:1184) Data received
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 297
Expires: Fri, 03 Apr 2020 17:08:04 GMT
Date: Fri, 03 Apr 2020 17:08:04 GMT
Connection: close

{"pollid":0,"messages":[{"type":"saytext","timestamp":12886538,"utc_timestamp":1585933683,"steamid_from":"***REDACTED***","text":"Test\n\nhttps://imgur.com/gallery/vtqrco9\n\nTest"}],"messagelast":50,"timestamp":12886538,"utc_timestamp":1585933683,"messagebase":49,"sectimeout":12,"error":"OK"}
[11:08:04 0AB4] [STEAM_1] (0000000007AFC310:1184) Data received
{"pollid":0,"messages":[{"type":"saytext","timestamp":12886538,"utc_timestamp":1585933683,"steamid_from":"***REDACTED***","text":"Test\n\nhttps://imgur.com/gallery/vtqrco9\n\nTest"}],"messagelast":50,"timestamp":12886538,"utc_timestamp":1585933683,"messagebase":49,"sectimeout":12,"error":"OK"}
[11:08:04 0AB4] [STEAM_1] (0000000007AFC310:1184) Connection closed internal
[11:08:04 0AB4] [STEAM_1] (0000000007AFC310:4294967295) Connection closed
[11:08:04 0AB4] [STEAM_1] Connection request to api.steampowered.com:443 (Flags 11)....
[11:08:04 0AB4] [STEAM_1] (0000000007AFC310) Connecting to server api.steampowered.com:443....
[11:08:04 0AB4] [STEAM_1] (0000000007AFC310) Connecting to ip 23.204.57.164:443 ....
[11:08:04 0AB4] [STEAM_1] (1184) Connected to api.steampowered.com:443
[11:08:04 0AB4] [STEAM_1] (1184 api.steampowered.com) Starting SSL negotiation
[11:08:04 0AB4] [STEAM_1] (1184 api.steampowered.com) SSL negotiation successful
[11:08:04 0AB4] [STEAM_1] (0000000007AFC310:1184) Data sent
POST /ISteamWebUserPresenceOAuth/Poll/v0001 HTTP/1.1
Content-Type: application/x-www-form-urlencoded
User-Agent: Miranda/0.95.12.22738 (x64)
Accept-Encoding: deflate, gzip
Host: api.steampowered.com
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Content-Length: 110

access_token=***REDACTED***&umqid=***REDACTED***&message=50&secidletime=0&sectimeout=30[close]


Spoilers #2 and #3 are shown in the screenshot.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

There was an error while thanking
Thanking...
Go to full version