Re: Web aficionados - Not allow user to access file directly

2019-10-01 Thread Dani Beaubien via 4D_Tech
Hi Randy, the setup you are looking for is what I have done for all my projects. I have two folders: “WEB_Public” and “WEB_Private”. WEB_Public contains all my static assets like images, javascript, css, etc. There are no 4D tags in any of these files. WEB_Private contains all my application

Re: [repost - desperate]What runs before ON STARTUP?

2019-10-01 Thread Tom Benedict via 4D_Tech
I don’t know whether this has been mentioned yet, but have you run MSC on the component? Also, it’s a long shot, but have you deleted the .4DIndy file? I only mention that because I’ve seen it cause strange behavior. Tom Benedict > On Oct 1, 2019, at 07:16, Chip Scheide via 4D_Tech

Difference between loading a compiled and interpreted component

2019-10-01 Thread Chip Scheide via 4D_Tech
What is executed, or not, when loading a compiled component vs an interpreted component? --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ** 4D Internet Users Group (4D iNUG) Archive:

Re: v15 - what code runs before On Startup?

2019-10-01 Thread Chip Scheide via 4D_Tech
This is stand alone... I cleaned up the 4D folder in application support. I placed a TRACE into a method which is called in every trigger in case a trigger was being called for some reason... no trace occurred still getting stack space error - this occurs almost immediately after the 4D

Re: v15 - what code runs before On Startup?

2019-10-01 Thread Douglas Cryer via 4D_Tech
Chip, Re: Component interpreted: the alert is never encountered before the Out of stack space issue. Component compiled (built): the alert is displayed, and the host starts normally That is strange is it a component Cache issue? Are you running client server or standalone. I know that in

Re: [repost - desperate]What runs before ON STARTUP?

2019-10-01 Thread Chip Scheide via 4D_Tech
there was 1 plugin - I removed it from both the component and the host. I also removed a cache folder from the host plugins folder. Still no joy. I am still getting the out of stack space error, and having to force quit 4D. Chip On Tue, 1 Oct 2019 17:50:03 +0200, Peter Bozek wrote: > On Tue,

Re: Web aficionados - Not allow user to access file directly

2019-10-01 Thread Kirk Brooks via 4D_Tech
Randy, On Tue, Oct 1, 2019 at 9:05 AM Randy Engle via 4D_Tech <4d_tech@lists.4d.com> wrote: > Most of our customers are resistant to proxy servers > They think that we should be handling all of it. > Are these the same guys who do such a great job protecting themselves from ransom ware? --

Re: v15 - what code runs before On Startup?

2019-10-01 Thread Chip Scheide via 4D_Tech
> If you have the database setting on the host as: 'Execute "On Host > Database Event" method of the components' set then any component > might be running something. This was NOT on. I turned it on, and added TRACE and an Alert, in the component. Component interpreted: the alert is never

Re: 4D v17 Property List Issues - is this only me?

2019-10-01 Thread John DeSoi via 4D_Tech
I think the fastest way to a resolution would be to verify you have the same problem in 17R6 beta. If it is fixed, likely nothing will be done about it in R5. If it is not fixed, you can file a bug report directly on the forum. John DeSoi, Ph.D. > On Oct 1, 2019, at 10:44 AM, Daniel

Re: v15 - what code runs before On Startup?

2019-10-01 Thread Douglas Cryer via 4D_Tech
Chip, Do you have anything in the "On Host Database Event" method in the component? If you have the database setting on the host as: 'Execute "On Host Database Event" method of the components' set then any component might be running something. Re: The ON STARTUP of the component is empty

RE: Web aficionados - Not allow user to access file directly

2019-10-01 Thread Randy Engle via 4D_Tech
Hi Kirk, Thanks for the info. Most of our customers are resistant to proxy servers They think that we should be handling all of it. So... I'll need to go to plan "B"  Randy Engle -Original Message- From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Kirk Brooks via 4D_Tech

RE: Web aficionados - Not allow user to access file directly

2019-10-01 Thread Randy Engle via 4D_Tech
Hi Lutz, Thanks for the info! Yes, I've got a copy of "Web Companion" somewhere. Will check it out. Randy Engle -Original Message- From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Epperlein, Lutz (agendo) via 4D_Tech Sent: Tuesday, October 1, 2019 8:49 AM To: 4D iNug

Re: Web aficionados - Not allow user to access file directly

2019-10-01 Thread Kirk Brooks via 4D_Tech
Hey Randy, The optimal way to achieve this is to set up the website with a different web server functioning as the node publicly exposed to the internet. That server deals with all the authentication and heavy protection stuff 4D isn't very good at and communicates with your 4D server via API

Re: Web aficionados - Not allow user to access file directly

2019-10-01 Thread Narinder Chandi via 4D_Tech
It's a shame that 4D's web server does not directly support something similar to Apache's .htaccess file in the web root. Securing direct access to html files/folders would then be trivial. Regards, Narinder Chandi, ToolBox Systems Ltd. I am available for new consulting opportunities…

Re: [repost - desperate]What runs before ON STARTUP?

2019-10-01 Thread Peter Bozek via 4D_Tech
On Tue, Oct 1, 2019 at 5:11 PM Chip Scheide via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > > I am at a loss. > > Any plugins? They are initialised before On startup runs. -- Peter Bozek ** 4D Internet Users Group (4D iNUG)

AW: Web aficionados - Not allow user to access file directly

2019-10-01 Thread Epperlein, Lutz (agendo) via 4D_Tech
Use the so-called "Web decoy" technique. Basically you put your html files in another folder outside your html root. Then redirect all requests using ON WEB CONNECTION. For every http request 4D cannot serve directly, it uses ON WEB CONNECTION. This is more elaborated e.g. here: How to skip

4D v17 Property List Issues - is this only me?

2019-10-01 Thread Daniel Solenthaler via 4D_Tech
Hi everyone, Working in Design mode on a form, I find the following behaviour of 4D v17 a nuisance: In 4D v16 I can click onto a cell of the property list and the cell content is immediately highlighted and modifiable. In 4D v17R5 I click onto a cell of the property list and nothing happens.

Web aficionados - Not allow user to access file directly

2019-10-01 Thread Randy Engle via 4D_Tech
Hi Web Experts, I don't want the web users to access html files directly, without going through ON WEB CONNECTION. e.g. http://myweb/foobar.html If "foobar.html" exists in the web folder, Users can put in this in the address and it will pull up the web page, but will not process the 4D Tags,

Re: [repost - desperate]What runs before ON STARTUP?

2019-10-01 Thread Chip Scheide via 4D_Tech
More info: I created a new empty database, I added the interpreted component The new database opens... Chip On Tue, 1 Oct 2019 11:11:40 -0400, Chip Scheide via 4D_Tech wrote: > Thanks John, > no luck. > > This was disabled, and there was no code in the component. > I enabled, and inserted 2

Re: [repost - desperate]What runs before ON STARTUP?

2019-10-01 Thread Chip Scheide via 4D_Tech
Thanks John, no luck. This was disabled, and there was no code in the component. I enabled, and inserted 2 lines of code in the component in the database method: Trace alert("On Before Host Startup") neither of these executed, and I still get a stack space error... - I have repaired, and

More Errors With RECEIVE BUFFER In v17

2019-10-01 Thread Cannon Smith via 4D_Tech
I’m wondering if anyone else has noticed an uptick in errors when using the RECEIVE BUFFER command to read from a serial port? Our application does a lot of serial port communication. We also log all errors. There has been a _significant_ uptick in errors that occur on the following line of

Re: [repost - desperate]What runs before ON STARTUP?

2019-10-01 Thread John DeSoi via 4D_Tech
On Host Database Event database method? See the Security tab in the database settings to disable it. https://doc.4d.com/4Dv15/4D/15.6/On-Host-Database-Event-database-method.301-3818546.en.html John DeSoi, Ph.D. > On Oct 1, 2019, at 9:16 AM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> >

Re: [repost - desperate]What runs before ON STARTUP?

2019-10-01 Thread Maurice Inzirillo - AJAR via 4D_Tech
Hi Chip, You can try to put in place an ON ERROR CALL and logs the errors on your component. Did you already try this ? HTH Maurice Inzirillo -- AJAR S.A. https://ch-fr.4d.com twitter: ajar_info Tél : +41 (0)323422684 > On 1 Oct 2019, at 16:16, Chip Scheide via 4D_Tech

[repost - desperate]What runs before ON STARTUP?

2019-10-01 Thread Chip Scheide via 4D_Tech
I have a component which I am trying to debug. The host is interpreted, stand alone. When the component is compiled and built the host starts, but of course I can not trace the code in the component - from which I am getting an error message. When I swap in the interpreted version of the