Jack Des Bouillons | 1 Apr 01:42 2012

Process HTML Tags Causing Problems

We have a system where emails are sent out embedded with data pulled from
4D...

The system has been in place for a few years, and worked flawlessly until
switching over from 2004 running on a PowerPC to v11.9 running on a MacMini.
In most cases, it still works flawlessly, except for one email in which a
url link is created for the mail recipient to click on.

When the code generates the html, this is an example of the code that is
generated (IP address removed):

http://xxx.xxx.x.x:8181/4DCGI/CGI4D_FileServe&CGI4D_t_actionToTake=CGI4D_R
equest_Confirmation&CGI4D_t_Filename=Confirm.html&CGI4D_t_sessionID=TIDul48X
28601u4a991r

However, after HTML Process Tags, this is what ends up in the email:

HTTP://xxx.xxx.x.x:8181/4DCGI/CGI4D_FileServe&CGI4D_t_actionToTake=CGI4D
_Request_Confirmation&CGI4D_t_Filename=Confirm.html&CGI4D_t_sessionI
D=TIDul48X28601u4a991r

Note that after processing, "and," and been added everywhere after "&",
which means that the link will fail to load the correct web page and data
when the user tried to access it.

I have control over the receiving server, and can strip out the "and,", but
I would like to know why this might be happening in the first place.

Anyone have any thoughts or suggestions?

(Continue reading)

Owen Watson | 1 Apr 06:43 2012
Picon

Re: Send more than 32K in an e-mail body - v11

Sounds like it's 32K *after* encoding.
I use blat with LEP for mailing after various collisions with 4D internet
commands; with the mac you have sendmail, no?

On 30 March 2012 19:05, Roberto Vergani <r.vergani@...> wrote:

>
> In past, for sending html multipart mails with body message largest than
> 32K, I have always used the append to body technique, SMTP_Body with
> deleteOption = 2, and worked fine.
>
> Recently moved from v2003 to v11.9 in unicode mode, as a result many
> problems and after much research, I have find that the SMTP_Body command
> limit in not 32K but lower, about 22K. If I append fragment more than 22K
> the message result corrupt: is lost when sent (*).
>
> None has found the same problem or can suggest an explanation? Thanks.
>
>
> (*) By the way: no one knows a validator for multipart email messages
> similar to the W3C HTML Validator? Not for HTML code but for checking the
> multipart structure of message and find if the message was send corrupt?
> After you add text to the body using SMTP_Body, can see the result only
> from
> the recipient side but if the message is corrupted some server deletes it
> and there is no feedback.
>
>
> Roberto Vergani
>
(Continue reading)

Ronnie Teo | 1 Apr 09:44 2012

4D and HL7

Hi,

I currently have a stored procedure on the server (4Dv11) that's sending out
HL7 messages generated from 4D.  Acknowledgements are also received within
the same process.  

If there is a need to expand the scope to process an order message (ORM) in
4D, can I set up a different stored procedure to listen to these messages on
a different port? Or do I have to modify the stored procedure to parse
between acknowledgement and ORM messages?

I would also like to seek advice on how to read in and process incoming ORU
HL7 messages coming in from a different machine, eg., an echo machine.
I was thinking along the lines of setting up a stored procedure to listen to
incoming ORMs on a different port, parse the message for its parameters,
then store the data in some date for processing a later instance.

Can anyone advise on the above?  Thanks.

Regards,
Ronnie Teo
Tarawerkz

**********************************************************************
4D v13 is available now - with more than 200 new features to make
your applications richer and faster
http://www.4d.com/products/new.html

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
(Continue reading)

Ronnie Teo | 1 Apr 09:49 2012

Re: 4D and HL7

Hi, further to my last mail, I would to ask if there is any component or
pre-processor that I can use in conjunction with 4D to help in parsing the
incoming ORU messages?  If it is something that we would have to code in 4D
itself, I am just afraid that we would miss out coding for any segments
during our processing.

Regards,
Ronnie Teo
Tarawerkz

on 01/04/2012 15:44, Ronnie Teo wrote:

> Hi,
> 
> I currently have a stored procedure on the server (4Dv11) that's sending out
> HL7 messages generated from 4D.  Acknowledgements are also received within the
> same process.  
> 
> If there is a need to expand the scope to process an order message (ORM) in
> 4D, can I set up a different stored procedure to listen to these messages on a
> different port? Or do I have to modify the stored procedure to parse between
> acknowledgement and ORM messages?
> 
> I would also like to seek advice on how to read in and process incoming ORU
> HL7 messages coming in from a different machine, eg., an echo machine.
> I was thinking along the lines of setting up a stored procedure to listen to
> incoming ORMs on a different port, parse the message for its parameters, then
> store the data in some date for processing a later instance.
> 
> Can anyone advise on the above?  Thanks.
(Continue reading)

Koen Van Hooreweghe | 1 Apr 15:17 2012
Picon

Re: Process HTML Tags Causing Problems

HI Jack

I don't know how you get to the url, but maybe it is a confusion  
between 4DVAR (in v12 4DTEXT) and 4DHTMLVAR
Or maybe you can have a look at theis:

If you look at the documentation of the command XML SET OPTIONS
(http://doc.4d.com/4D-Language-Reference-13/XML/XML-SET-OPTIONS.301-737765.en.html 
),
you'll read the following information : "XML With escaping (default  
value): conversion of 4D strings to XML element values with  
replacement of characters. The Text type data are automatically parsed  
so that forbidden characters (<&>¹) are replaced by XML entities  
(&amp;&lt;&gt; &apos;&quot;)."
So you have to use the command XML SET OPTIONS to change this default  
behaviour.

HTH
Koen

Op 1-apr-12, om 01:42 heeft Jack Des Bouillons het volgende geschreven:

> However, after HTML Process Tags, this is what ends up in the email:
>
> HTTP://xxx.xxx.x.x:8181/4DCGI/ 
> CGI4D_FileServe&amp;CGI4D_t_actionToTake=CGI4D
> _Request_Confirmation 
> &amp;CGI4D_t_Filename=Confirm.html&amp;CGI4D_t_sessionI
> D=TIDul48X28601u4a991r

(Continue reading)

Jack Des Bouillons | 1 Apr 22:10 2012

Re: Process HTML Tags Causing Problems

Thanks...that seems to be the result of running HTML Process Tags...

BUT...

There is no XML involved..at all...

The text is just straight text, with HTML coding.

I seem to be able to solve the problem by running

$HTML_Text_t:=Replace String($HTML_Text_t;"&and;";"&")

Before passing $HTML_Text_t as the body of the email to be sent out using
the SMTP commands.

I still would like to know why this is happening.

Jack des Bouillons

On 4/1/12 6:17 AM, "Koen Van Hooreweghe" <bvbaCompass@...> wrote:

> HI Jack
> 
> I don't know how you get to the url, but maybe it is a confusion
> between 4DVAR (in v12 4DTEXT) and 4DHTMLVAR
> Or maybe you can have a look at theis:
> 
> If you look at the documentation of the command XML SET OPTIONS
> (http://doc.4d.com/4D-Language-Reference-13/XML/XML-SET-OPTIONS.301-737765.en.
> html 
(Continue reading)

Mike Erickson | 1 Apr 22:26 2012

Re: Process HTML Tags Causing Problems

Jack

This is an encoding issue… As I recall, when calling PROCESS HTML TAGS, it also encodes the string (in this
case, it is encoding & to &amp [not &and as you noted in your replace string call).  You might want to look at
the PROCESS HTML TAGS routine to see if has ability to disable encoding.

Regards

Michael S. Erickson
mike-nug@...

On Apr 1, 2012, at 1:10 PM, Jack Des Bouillons wrote:

> Thanks...that seems to be the result of running HTML Process Tags...
> 
> BUT...
> 
> There is no XML involved..at all...
> 
> The text is just straight text, with HTML coding.
> 
> I seem to be able to solve the problem by running
> 
> $HTML_Text_t:=Replace String($HTML_Text_t;"&and;";"&")
> 
> Before passing $HTML_Text_t as the body of the email to be sent out using
> the SMTP commands.
> 
> I still would like to know why this is happening.
> 
(Continue reading)

Keith Goebel | 1 Apr 23:30 2012
Picon

Re: Client Manager process (observation)


> ...
> When the 4D Server relaunched the Client Manager process in the kernel
> consumed almost 100% of the CPU for a few minutes...

David, when I struck this it turned out there was a bug in my Startup method code.
Try running in interpreted mode and Trace startup method code.
HTH, Keith**********************************************************************
4D v13 is available now - with more than 200 new features to make
your applications richer and faster
http://www.4d.com/products/new.html

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

David Dancy | 2 Apr 00:47 2012
Picon

Re: Client Manager process (observation)

Is RDPClip running? It needs to be disabled, I believe.

HTH

David Dancy
Sydney, Australia

On 1 April 2012 02:58, David Ringsmuth <davidinug@...> wrote:

> v2004.8r2, WS2003SE, 4D Server
>
> Yesterday I encountered a problem with a 4D Server Client Manager process.
>
> For reasons I do not know, and the event log does not show, when I was
> connected to the box using RDP, the box and it's backup box both became
> completely unresponsive. The hosting company had to force a computer
> re-boot.
>
> When the 4D Server relaunched the Client Manager process in the kernel
> consumed almost 100% of the CPU for a few minutes. I made the computer
> shut-down and restart again, and the same thing occurred again in the
> Client
> Manager process. But after less than four minutes, the Client Manager
> process resumed normal CPU usage and the usual startup process continued.
>
> The Client-Server preferences are set to automatic client re-connect.
>
> At this moment I'm not very concerned about what happened. I thought it may
> help someone else to see that this situation seemed to correct itself, and
> may have been an attempt to automatic-client-reconnect. If it was an
(Continue reading)

Jack Des Bouillons | 2 Apr 05:13 2012

Re: Process HTML Tags Causing Problems

Yes, that was my mistake in typing...in the code it is &amp...thanks for
catching this...I had to go back and check it out...

Jack

On 4/1/12 1:26 PM, "Mike Erickson" <mike-nug@...> wrote:

> (in this case, it is encoding & to &amp [not &and as you noted in your replace
> string call).

**********************************************************************
4D v13 is available now - with more than 200 new features to make
your applications richer and faster
http://www.4d.com/products/new.html

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


Gmane