Community discussions

MUM Europe 2020
 
mitry
just joined
Topic Author
Posts: 22
Joined: Tue Jun 26, 2012 10:06 pm

[BUG] fetch https problem

Tue Dec 30, 2014 9:03 pm

Hello!
I found when using /tool fetch in https mode, it download broken truncated files.
Example:
[admin@MikroTik] > /tool fetch url="http://23.88.165.139/test/testfile.rsc"
 status: finished
[admin@MikroTik] > /tool fetch url="https://23.88.165.139/test/testfile.rsc"
status: finished
In first case fetch get all 121kb file(same as wget or browser).
In second case file is always truncated around 114kb.
This become real problem for me because i update configuration on routers by https with certificate checking.

This bug in all releases since 6.19, i report it in october 2014 but nobody care in Mikrotik.
They just wrote in 6.20 Changelog:
*) fetch - fixed problem where files fetched over https were trimmed in size;

I report few times after this but no reaction from Mikrotik.
Looks like they specially push users for insecure downloads. WTF??
Last edited by mitry on Tue Jan 13, 2015 3:39 pm, edited 1 time in total.
 
shawill
just joined
Posts: 2
Joined: Sat Jul 16, 2011 12:53 pm

Re: fetch https bug

Mon Jan 05, 2015 12:07 pm

Hello,
I've the same problem too with fetch command.
After 6.20 release I was suspecting a problem in my side, but @mitry confirms that the problem still exists.
I'm stuck on 6.18 just because we do not want to refrain from using https for our custom provisioning tool.

thank you in advance,
regards,
Francesco
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 5960
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: [BUG] fetch https problem

Tue Jan 13, 2015 5:53 pm

Last fix for this problem was in 2014-12-12. Any version built after this date does not have problem. Also we do not have reports that it still doesn't work in latest RouterOS.
 
mitry
just joined
Topic Author
Posts: 22
Joined: Tue Jun 26, 2012 10:06 pm

Re: [BUG] fetch https problem

Tue Jan 13, 2015 6:07 pm

This problem still exist in 6.24 and 6.25rc4.
Maybe this to difficult for very busy support, but please try just type this code:
[admin@ROUTER] > /tool fetch url="http://23.88.165.139/test/testfile.rsc" dst-path=file1
  status: finished
[admin@ROUTER] > /tool fetch url="https://23.88.165.139/test/testfile.rsc" dst-path=file2
  status: finished
[admin@ROUTER] > /file print
 # NAME                                                     TYPE                                                           SIZE CREATION-TIME       
 0 file2                                                    file                                                        99.8KiB jan/14/2015 00:03:23
 1 file1                                                    file                                                       118.0KiB jan/14/2015 00:03:09
And then try to repeat with https:// - file size will differ on every fetch.
 
shawill
just joined
Posts: 2
Joined: Sat Jul 16, 2011 12:53 pm

Re: [BUG] fetch https problem

Wed Jan 28, 2015 1:20 pm

Hello,
the problem seems to be solved in 6.25.

thank you
 
mitry
just joined
Topic Author
Posts: 22
Joined: Tue Jun 26, 2012 10:06 pm

Re: [BUG] fetch https problem

Wed Jan 28, 2015 1:34 pm

Finally, after 3.5 months is fixed. Bravo Mikrotik.
Write something in Changelog about this? Nobody care.
 
User avatar
jayd2k
newbie
Posts: 45
Joined: Tue Sep 10, 2013 6:46 am
Location: Philippines

Re: [BUG] fetch https problem

Sun May 10, 2015 8:38 pm

Sorry for resurrecting this one but the problem still seems to exist. When fetching a script with 287KB in size from a remote web server using https the file is being truncated:
[admin@router] > import openbl.rsc
expected end of command (line 5014 column 20)
When downloading the respective script from the router it clearly is truncated. When downloading the file from its remote source to my workstation and uploading it manually to the router using SSH everything works fine. My test box is an RB2011-UiAS-2HnD running on v6.28 and firmware version 3.22.
By 2016 total internet traffic will be 3x 2011

Who is online

Users browsing this forum: babiwd, FlyRaz and 140 guests