downloads instead of processes

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

downloads instead of processes

David Ringsmuth-3
Aparajita,

 

I've found something I don't understand in the logs and the handling of the
document.a4d

 

4D's Web Log shows the document is NOT in Web_Static:

 

#Version: 1.0

#Software: 4D_v13/13.5

#Date: 2014-10-13 14:00:57

#Remark: format CLF

#Fields: BYTES_RECEIVED BYTES_SENT CS-CDNS C-IP CONNECTION_ID CS(COOKIE)
CS(HOST) CS(REFERER) CS(USER-AGENT) CS-SIP CS-URI CS-URI-QUERY CS-URI-STEM
DATE METHOD PATH_ARGS SC-STATUS TIME TIME-TAKEN URL USER

1.2.3.4 - - [13/Oct/2014:19:00:57 --500] "GET /1/document.a4d HTTP/1.1" 200
5625

1.2.3.4 - - [13/Oct/2014:19:00:58 --500] "GET /1/ document.a4d HTTP/1.1" 200
5625

1.2.3.4 - - [13/Oct/2014:19:03:01 --500] "GET /1/ document.a4d HTTP/1.1" 200
5625

 

Active4D show the key IP address is expired but functioning:

 

Oct 13 14:03:53 Active4D: [notice]
*****************************************************************

Oct 13 14:03:53 Active4D: [notice]   Active4D

Oct 13 14:03:53 Active4D: [notice]
*****************************************************************

Oct 13 14:03:53 Active4D: [info] env: log level = info

Oct 13 14:03:53 Active4D: [info] env: ICU data directory:
C:\Application\Plugins\Active4D.bundle\Contents\Resources

Oct 13 14:03:53 Active4D: [info] env: Active4D 6.1r7 [Windows, release,
32-bit]

Oct 13 14:03:54 Active4D: [info] env: 4D v13.5.0r0 [Server, compiled,
Unicode mode, Microsoft Windows 7  1155EEFC (build 7601), 32-bit]

Oct 13 14:03:54 Active4D: [info] env: ICU locale: en_US - English (United
States)

Oct 13 14:03:54 Active4D: [info] env: checked

Oct 13 14:03:54 Active4D: [info] license: searching for key file in
/C/Users/Document.a4d/AppData/Roaming/4D Server/com.aparajita/Active4D

Oct 13 14:03:54 Active4D: [info] license: searching for key file in
/C/ProgramData/4D/Licenses/com.aparajita/Active4D

Oct 13 14:03:54 Active4D: [info] license: found key file:
C:\ProgramData\4D\Licenses\com.aparajita\Active4D\Active4D.1.2.3.4.key

Oct 13 14:03:54 Active4D: [info] license: found deployment license, checking
IP addresses

Oct 13 14:03:54 Active4D: [warn] license: no IP address match, going into
expired mode

Oct 13 14:03:54 Active4D: [info] license: type = expired, timeout:
2014-10-20 14:03:54

Oct 13 14:03:54 Active4D: [info] server: initialized

Oct 13 14:03:54 Active4D: [info] lexer: initialized

Oct 13 14:03:54 Active4D: [info] interpreter: default directory:
C:/Application/

Oct 13 14:03:54 Active4D: [info] interpreter: initialized

Oct 13 14:03:54 Active4D: [info] runtime: initialized

Oct 13 14:03:54 Active4D: [info] web_runtime: initialized

Oct 13 14:03:54 Active4D: [info] housekeeper: initialized

Oct 13 14:03:54 Active4D: [info] plugin: starting up web server

Oct 13 14:03:54 Active4D: [info] config: reading
C:\Application\Active4D\Active4D.ini

Oct 13 14:03:54 Active4D: [warn] config: invalid path: <default>/libs

Oct 13 14:03:54 Active4D: [info] realms: reading
C:\Application\Active4D\Realms.ini

Oct 13 14:03:54 Active4D: [info] virtual hosts: reading
C:\Application\Active4D\VirtualHosts.ini

Oct 13 14:03:54 Active4D: [info] cors: reading
C:\Application\Active4D\Cors.ini

Oct 13 14:03:54 Active4D: [info] extension map: reading
C:\Application\Active4D\ExtensionMap.ini

Oct 13 14:03:54 Active4D: [info] plugin: initializing circuits

Oct 13 14:03:54 Active4D: [info] plugin: scanning for circuits in web root
/C/Application/web/

Oct 13 14:03:54 Active4D: [info] plugin: circuits initialized

Oct 13 14:03:54 Active4D: [info] server: http get body method set to
"A4D_GetHttpBodyCallback"

Oct 13 14:03:54 Active4D: [info] plugin: web server started, 4D host,
listening on 0.0.0.0:80

 

My own logging shows that Active4D is processing the document, but that
processing ends when a call is made to an iframe document:

 

20141013_140057: /1/Document.a4d: ::1.2.3.4

20141013_140057: ...:  2 ::1.2.3.4

20141013_140057: ...: 108 Document.a4d before programs_f.a4d iframe

20141013_140058: /1/Document.a4d: ::1.2.3.4

20141013_140058: ...:  2 ::1.2.3.4

20141013_140058: ...: 108 Document.a4d before programs_f.a4d iframe

20141013_140301: /1/Document.a4d: ::1.2.3.4

20141013_140301: ...:  2 ::1.2.3.4

20141013_140301: ...: 108 Document.a4d before programs_f.a4d iframe

20141013_140428: /1/Document.a4d: ::1.2.3.4

20141013_140428: ...:  2 ::1.2.3.4

20141013_140428: ...: 108 Document.a4d before programs_f.a4d iframe

 

Once the call is made to process "programs_f.a4d" and display it in an
iframe, the parent Document.a4d gets downloaded.

 

So Active4D began processing it, and stopped when loading a script which
contained a reference to a library. This is the document on which Active4D
stops processing, and then downloads the parent document.

 

<% Include("/1/header_f.htm")

CM.Web_Log_A4D(CLN(current line number)+get query params)

Import("Programs_f")

Programs_f.Programs_f ($revclass;$progname;$loc)

`import("a4d.web")

`a4d.web.dump session

Include ("/1/footer_if.htm") %>

 

This same code works fine when I copy the entire application/folder to my
local computer and run it there.

 

Please help!

 

Thanks!

David Ringsmuth

_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: downloads instead of processes

aparajita
Administrator
> 4D's Web Log shows the document is NOT in Web_Static:

Actually it does. From 4D's point of view, "/" is its web root. So "GET /1/document.a4d" is web_static/1/document.a4d.


> 1.2.3.4 - - [13/Oct/2014:19:00:58 --500] "GET /1/ document.a4d HTTP/1.1" 200

Don't know if you noticed the space after "/1/", not sure what this signifies.

Regards,

  Aparajita

_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/