Author Topic: vla-GetRemoteFile versus "secureload"  (Read 2013 times)

0 Members and 1 Guest are viewing this topic.

Peter2

  • Swamp Rat
  • Posts: 650
vla-GetRemoteFile versus "secureload"
« on: September 19, 2017, 09:45:09 AM »
I have a lisp which uses vla-GetRemoteFile to download a zip-file (see relating topics here in the forum).

It works fine when "secureload=0", but it stops working at the line with "vla-GetRemoteFile" when "secureload=1"

Anyone who can confirm this? Is there really a dependency between these things or did I stumbled about a simple side-effect in my code?
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

ChrisCarlson

  • Guest
Re: vla-GetRemoteFile versus "secureload"
« Reply #1 on: September 19, 2017, 10:11:18 AM »
Is the download location within a trusted path?

Peter2

  • Swamp Rat
  • Posts: 650
Re: vla-GetRemoteFile versus "secureload"
« Reply #2 on: September 19, 2017, 10:32:13 AM »
No - the download source is the internet (http), the download-target is %temp%
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

ChrisCarlson

  • Guest
Re: vla-GetRemoteFile versus "secureload"
« Reply #3 on: September 19, 2017, 10:54:43 AM »
Add %temp% within your trusted paths and try the routine again.

Peter2

  • Swamp Rat
  • Posts: 650
Re: vla-GetRemoteFile versus "secureload"
« Reply #4 on: September 19, 2017, 11:33:02 AM »
Hmm - I see no difference at the moment.
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: vla-GetRemoteFile versus "secureload"
« Reply #5 on: September 19, 2017, 12:53:04 PM »
Try this method in place of the ActiveX getremotefile method.

Peter2

  • Swamp Rat
  • Posts: 650
Re: vla-GetRemoteFile versus "secureload"
« Reply #6 on: September 19, 2017, 03:37:37 PM »
Hi Lee

thanks - I use this code already in another tool. My main target of this posting is to find out and to document this (possible) dependency.

Many users have problems with this function - maybe we can find here the reason (or one of some reasons) of this behaviour.
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

cmwade77

  • Swamp Rat
  • Posts: 1443
Re: vla-GetRemoteFile versus "secureload"
« Reply #7 on: October 02, 2017, 07:57:17 PM »
I believe you also have to add the website to your trusted paths or it might not work as well.

Peter2

  • Swamp Rat
  • Posts: 650
Re: vla-GetRemoteFile versus "secureload"
« Reply #8 on: October 03, 2017, 04:05:23 AM »
Current state of the discussion with Autodesk ADN:

a) With "secureload=0" it does the download without problems.
b) With "secureload=1" you have to add the URL to "Trusteddomains" and it should(!) download

But...
there is a problem in current versions, different to older versions: "b)" does not work, and the only solution is "secureload=0". This is logged as Change Request for Autodesk Devs.
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23