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 specific code. When a URL comes in, if 
it is for a static file, 4D servers it directly. If it is not then the On Web 
Connection method is triggered and my application log runs. From there I can 
ensure that the session is loaded and I process the request and eventually send 
one of the files out of the WEB_Private folder.

It works very nicely and I have my static and dynamic files separated into 
different folders.

Feel free to reach out directly if you want some more information on my 
approach.

Dani Beaubien
Open Road Development

> On Oct 1, 2019, at 10:33 AM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> 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?
> 
> 
> -- 
> Kirk Brooks
> San Francisco, CA
> ===
> 
> What can be said, can be said clearly,
> and what you can’t say, you should shut up about
> 
> *Wittgenstein and the Computer *
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 <4d_tech@lists.4d.com> 
> wrote:
> 
> 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 component, during 
> database startup I get an error not enough memory (obviously stuck in a 
> loop). 
> 
> However, currently the very first line of code in the host ON STARTUP 
> is TRACE.
> The not enough memory error is presented BEFORE the trace is hit.
> 
> The ON STARTUP of the component is empty (no code).
> 
> What code could be running?
> 
> Thanks
> Chip
> ---
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 logo/splash screen opens.

Chip
On Tue, 01 Oct 2019 17:42:20 +0100, Douglas Cryer via 4D_Tech wrote:
> 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 the past I have had 
> issues when switching between compiled and uncompiled components that 
> were solved by clearing the component cache from the server.
> 
> Regards,  Dougie
> 
> 
> telekinetix Limited- J. Douglas Cryer
> Phone : 01234 761759  Mobile : 07973 675 218
> 2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE
> Email : jdcr...@telekinetix.com  Web : http://www.telekinetix.com 
> 
> 
>  
> 
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 the past I have had issues when switching 
between compiled and uncompiled components that were solved by clearing the 
component cache from the server.

Regards,  Dougie


telekinetix Limited- J. Douglas Cryer
Phone : 01234 761759  Mobile : 07973 675 218
2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE
Email : jdcr...@telekinetix.com  Web : http://www.telekinetix.com 


 




**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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, 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
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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?


-- 
Kirk Brooks
San Francisco, CA
===

What can be said, can be said clearly,
and what you can’t say, you should shut up about

*Wittgenstein and the Computer *
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 encountered before the Out of 
stack space issue.
Component compiled (built): the alert is displayed, and the host starts 
normally

Chip

---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 Solenthaler via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> In 4D v17R5 I click onto a cell of the property list and nothing happens. It 
> takes 3 seconds and a „slow double click“ to highlight the cell content.
> 

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 (no code).
As far as I know this method would not run anyway in a component.  I never use 
it so I am not sure.

Regards,  Dougie


telekinetix Limited- J. Douglas Cryer
Phone : 01234 761759  Mobile : 07973 675 218
2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE
Email : jdcr...@telekinetix.com  Web : http://www.telekinetix.com 


 




**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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
Sent: Tuesday, October 1, 2019 8:55 AM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Kirk Brooks 
Subject: Re: Web aficionados - Not allow user to access file directly

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 calls. Your 4D server can be 
locked down to only talk with something coming from a specific IP address (the 
front facing server) on a specific port.

If you can't do that the 4D server will statically serve any pages in the web 
folder with the one you identify as the index page being the default.
If you set the default page to a non-existent page, xxx.html for instance.
In this case

"The On Web Authentication Database Method is automatically called, regardless 
of the mode, when a request or processing requires the execution of a 4D 
method. It is also called when the Web server receives an invalid static URL 
(for example, if the static page requested does not exist)."
https://doc.4d.com/4Dv17R5/4D/17-R5/On-Web-Authentication-Database-Method.300-4127485.en.html


So you can intercept and validate using On web auth. If you do nothing in On 
web auth the request flows to On web connect. I generally deal with the 
requests there.

You can use the scheme of serving web pages stored elsewhere and/or construct 
the response in code. At this point you are really building and API more than a 
web server - which I think is a good thing.

If you are going to use 4D code to actually construct html pages I really 
encourage building the html as templates (stored outside the web folder).
Use Process 4D tags to populate them with data you develop in code. I find 
attempting to construct anything more than the most trivial html in 4D code the 
path to long hours and great unhappiness.


On Tue, Oct 1, 2019 at 8:38 AM Randy Engle via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> 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, etc.
> Very, very funky.
>
> So, I'm probably being a dope, but does anyone know what I can do to 
> prevent accessing html files directly?
>
> Gracious thanks
>
> Randy Engle
>
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



--
Kirk Brooks
San Francisco, CA
===

What can be said, can be said clearly,
and what you can’t say, you should shut up about

*Wittgenstein and the Computer *
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 Technical <4d_tech@lists.4d.com>
Cc: Epperlein, Lutz (agendo) 
Subject: AW: Web aficionados - Not allow user to access file directly

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 over HTTP and redirect to HTTPS
https://kb.4d.com/assetid=75313
How to skip over HTTP and redirect to HTTPS: Part 2 (The Web decoy folder)
https://kb.4d.com/assetid=75753

And there was a book "The Web Companion" by David Adams, it's a bit old now, 
but the technique remains the same. If you can get a copy ...

HTH

Regards
Lutz

-Ursprüngliche Nachricht-
Betreff: Web aficionados - Not allow user to access file directly

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, etc.
Very, very funky.

So, I'm probably being a dope, but does anyone know what I can do to prevent 
accessing html files directly?

Gracious thanks

Randy Engle


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 calls. Your
4D server can be locked down to only talk with something coming from a
specific IP address (the front facing server) on a specific port.

If you can't do that the 4D server will statically serve any pages in the
web folder with the one you identify as the index page being the default.
If you set the default page to a non-existent page, xxx.html for instance.
In this case

"The On Web Authentication Database Method is automatically called,
regardless of the mode, when a request or processing requires the execution
of a 4D method. It is also called when the Web server receives an invalid
static URL (for example, if the static page requested does not exist)."
https://doc.4d.com/4Dv17R5/4D/17-R5/On-Web-Authentication-Database-Method.300-4127485.en.html


So you can intercept and validate using On web auth. If you do nothing in
On web auth the request flows to On web connect. I generally deal with the
requests there.

You can use the scheme of serving web pages stored elsewhere and/or
construct the response in code. At this point you are really building and
API more than a web server - which I think is a good thing.

If you are going to use 4D code to actually construct html pages I really
encourage building the html as templates (stored outside the web folder).
Use Process 4D tags to populate them with data you develop in code. I find
attempting to construct anything more than the most trivial html in 4D code
the path to long hours and great unhappiness.


On Tue, Oct 1, 2019 at 8:38 AM Randy Engle via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> 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,
> etc.
> Very, very funky.
>
> So, I'm probably being a dope, but does anyone know what I can do to
> prevent accessing html files directly?
>
> Gracious thanks
>
> Randy Engle
>
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
Kirk Brooks
San Francisco, CA
===

What can be said, can be said clearly,
and what you can’t say, you should shut up about

*Wittgenstein and the Computer *
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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…
http://4d.1045681.n5.nabble.com/ANN-4D-Developer-Available-td5765443.html
-- 

-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> on behalf of 4D Tech Mailing List 
<4d_tech@lists.4d.com>
Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Date: Tuesday, 1 October 2019 at 16:49
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: "Epperlein, Lutz (agendo)" 
Subject: AW: Web aficionados - Not allow user to access file directly

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 over HTTP and redirect to HTTPS
https://kb.4d.com/assetid=75313
How to skip over HTTP and redirect to HTTPS: Part 2 (The Web decoy folder)
https://kb.4d.com/assetid=75753

And there was a book "The Web Companion" by David Adams, it's a bit old 
now, but the technique remains the same. If you can get a copy ...

HTH

Regards
Lutz

-Ursprüngliche Nachricht-
Betreff: Web aficionados - Not allow user to access file directly

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, etc.
Very, very funky.

So, I'm probably being a dope, but does anyone know what I can do to 
prevent accessing html files directly?

Gracious thanks

Randy Engle


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 over HTTP and redirect to HTTPS
https://kb.4d.com/assetid=75313
How to skip over HTTP and redirect to HTTPS: Part 2 (The Web decoy folder)
https://kb.4d.com/assetid=75753

And there was a book "The Web Companion" by David Adams, it's a bit old now, 
but the technique remains the same. If you can get a copy ...

HTH

Regards
Lutz

-Ursprüngliche Nachricht-
Betreff: Web aficionados - Not allow user to access file directly

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, etc.
Very, very funky.

So, I'm probably being a dope, but does anyone know what I can do to prevent 
accessing html files directly?

Gracious thanks

Randy Engle


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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. It 
takes 3 seconds and a „slow double click“ to highlight the cell content.

Is it only me, or does anyone else have this problem? Anything that can be done 
about it?

Using macOS 10.13.6.

Thanks,

Daniel
dan...@solenthaler.com

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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, etc.
Very, very funky.

So, I'm probably being a dope, but does anyone know what I can do to prevent 
accessing html files directly?

Gracious thanks

Randy Engle


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 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 compacted the component, 
> - checked (repeatedly) that there is no self referential calls in the 
> startup routines of neither host nor component.
> - checked (repeatedly) that there is not self referencing 
> link/alias/shortcut, or copy of the component in the component's 
> package -- anywhere.
> - inserted an On Err Call method which writes to a log file, as the 
> (new) first line of the host On Startup -- nothing written
> - commented out all code in On Startup -- no difference
> - repaired the structure of the host
> 
> I rebuilt the component (saving the previous build) and used it to 
> start the host. The host starts, and I get the Alert telling me that 
> the On before Host startup is/has run.
> 
> I am at a loss.
> 
> Chip
> 
> On Tue, 1 Oct 2019 09:33:37 -0500, John DeSoi via 4D_Tech wrote:
>> 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> wrote:
>>> 
>>> What code could be running?
>> 
>> **
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> ---
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 compacted the component, 
- checked (repeatedly) that there is no self referential calls in the 
startup routines of neither host nor component.
- checked (repeatedly) that there is not self referencing 
link/alias/shortcut, or copy of the component in the component's 
package -- anywhere.
- inserted an On Err Call method which writes to a log file, as the 
(new) first line of the host On Startup -- nothing written
- commented out all code in On Startup -- no difference
- repaired the structure of the host

I rebuilt the component (saving the previous build) and used it to 
start the host. The host starts, and I get the Alert telling me that 
the On before Host startup is/has run.

I am at a loss.

Chip

On Tue, 1 Oct 2019 09:33:37 -0500, John DeSoi via 4D_Tech wrote:
> 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> wrote:
>> 
>> What code could be running?
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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 code since 
we moved to v17:

RECEIVE BUFFER($tBuffer)

The error number reported is always -1. But if I look in the extra information 
the error is always one of these:

Error #: 995
Resource: WI32
Message: The I/O operation has been aborted because of either a thread exit or 
an application request.

Error #: 22
Resource: WI32
Message: The device does not recognize the command.

Users simply reconnect to the port and all is fine for awhile

Anyone know what might be going on?

Thanks.

--
Cannon.Smith
Synergy Farm Solutions Inc.
Aetna, AB Canada




**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

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> 
> wrote:
> 
> What code could be running?

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@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 <4d_tech@lists.4d.com> 
> wrote:
> 
> 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 component, during 
> database startup I get an error not enough memory (obviously stuck in a 
> loop). 
> 
> However, currently the very first line of code in the host ON STARTUP 
> is TRACE.
> The not enough memory error is presented BEFORE the trace is hit.
> 
> The ON STARTUP of the component is empty (no code).
> 
> What code could be running?
> 
> Thanks
> Chip
> ---
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

[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 component, during 
database startup I get an error not enough memory (obviously stuck in a 
loop). 

However, currently the very first line of code in the host ON STARTUP 
is TRACE.
The not enough memory error is presented BEFORE the trace is hit.

The ON STARTUP of the component is empty (no code).

What code could be running?

Thanks
Chip
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**