Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

We are experiencing system trouble -- do not adjust your terminal.


devel / comp.lang.mumps / Noticed a difference, is it between CentOS and Ubuntu or between GT.M and Yottadb?

SubjectAuthor
* Noticed a difference, is it between CentOS and Ubuntu or between GT.Med de moel
`* Re: Noticed a difference, is it between CentOS and Ubuntu or betweened de moel
 `* Re: Noticed a difference, is it between CentOS and Ubuntu or betweenK.S. Bhaskar
  `* Re: Noticed a difference, is it between CentOS and Ubuntu or betweened de moel
   `* Re: Noticed a difference, is it between CentOS and Ubuntu or betweenSam Habiel
    `- Re: Noticed a difference, is it between CentOS and Ubuntu or betweened de moel

1
Noticed a difference, is it between CentOS and Ubuntu or between GT.M and Yottadb?

<c6a9fe9b-c7dc-43c0-bb45-2e497ab83950n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=338&group=comp.lang.mumps#338

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a37:b442:0:b0:69a:fc75:ca52 with SMTP id d63-20020a37b442000000b0069afc75ca52mr10201919qkf.730.1652049787060;
Sun, 08 May 2022 15:43:07 -0700 (PDT)
X-Received: by 2002:ac8:5b86:0:b0:2e2:72c:9e06 with SMTP id
a6-20020ac85b86000000b002e2072c9e06mr12705981qta.113.1652049786921; Sun, 08
May 2022 15:43:06 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Sun, 8 May 2022 15:43:06 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=71.174.62.16; posting-account=j7lJmQoAAADTx0Apfk15DZ7D0qlYy4zv
NNTP-Posting-Host: 71.174.62.16
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c6a9fe9b-c7dc-43c0-bb45-2e497ab83950n@googlegroups.com>
Subject: Noticed a difference, is it between CentOS and Ubuntu or between GT.M
and Yottadb?
From: eddemoel@gmail.com (ed de moel)
Injection-Date: Sun, 08 May 2022 22:43:07 +0000
Content-Type: text/plain; charset="UTF-8"
 by: ed de moel - Sun, 8 May 2022 22:43 UTC

I noticed an interesting difference...

I have two systems up and running.
The old one has CentOS, and is running GT.M V5.4-002B Linux x86_64
The new one has Ubuntu and is running GT.M V6.3-011 Linux x86_64 (YottaDB r1.34)

When I'm processing a multi-part payload from a POST request, on the "old" system, the line-ends come through as $Char(13,10), and on the new system they come through as $Char(13,0).
Does anyone know if that difference is caused by Ubuntu or by YottaDB?
Would this difference also impact image files that might be part of the multi-part POST?

Thanks,
Ed

Re: Noticed a difference, is it between CentOS and Ubuntu or between GT.M and Yottadb?

<71fa6deb-f306-4ba3-ae58-7f57cf5f1dbdn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=339&group=comp.lang.mumps#339

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:ac8:5785:0:b0:2f3:b3fd:9667 with SMTP id v5-20020ac85785000000b002f3b3fd9667mr12711712qta.382.1652051193520;
Sun, 08 May 2022 16:06:33 -0700 (PDT)
X-Received: by 2002:ac8:7f89:0:b0:2f3:b83d:c4e9 with SMTP id
z9-20020ac87f89000000b002f3b83dc4e9mr12981505qtj.673.1652051193390; Sun, 08
May 2022 16:06:33 -0700 (PDT)
Path: i2pn2.org!rocksolid2!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Sun, 8 May 2022 16:06:33 -0700 (PDT)
In-Reply-To: <c6a9fe9b-c7dc-43c0-bb45-2e497ab83950n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=71.174.62.16; posting-account=j7lJmQoAAADTx0Apfk15DZ7D0qlYy4zv
NNTP-Posting-Host: 71.174.62.16
References: <c6a9fe9b-c7dc-43c0-bb45-2e497ab83950n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <71fa6deb-f306-4ba3-ae58-7f57cf5f1dbdn@googlegroups.com>
Subject: Re: Noticed a difference, is it between CentOS and Ubuntu or between
GT.M and Yottadb?
From: eddemoel@gmail.com (ed de moel)
Injection-Date: Sun, 08 May 2022 23:06:33 +0000
Content-Type: text/plain; charset="UTF-8"
 by: ed de moel - Sun, 8 May 2022 23:06 UTC

Oh yes, if it matters:
The version of CentOS is: CentOS release 6.10 (Final)
The version of Ubuntu is: Ubuntu 22.04 LTS

Re: Noticed a difference, is it between CentOS and Ubuntu or between GT.M and Yottadb?

<d921331e-a1db-48fe-b849-160e11673b07n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=340&group=comp.lang.mumps#340

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:ac8:7f43:0:b0:2f3:d55d:7296 with SMTP id g3-20020ac87f43000000b002f3d55d7296mr6741012qtk.635.1652108425473;
Mon, 09 May 2022 08:00:25 -0700 (PDT)
X-Received: by 2002:a05:620a:290d:b0:6a0:54b3:a7e7 with SMTP id
m13-20020a05620a290d00b006a054b3a7e7mr7964368qkp.102.1652108425293; Mon, 09
May 2022 08:00:25 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Mon, 9 May 2022 08:00:25 -0700 (PDT)
In-Reply-To: <71fa6deb-f306-4ba3-ae58-7f57cf5f1dbdn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=71.162.243.192; posting-account=zTPg1AoAAABx_LtAQ3dW6FBnU1dwmSvl
NNTP-Posting-Host: 71.162.243.192
References: <c6a9fe9b-c7dc-43c0-bb45-2e497ab83950n@googlegroups.com> <71fa6deb-f306-4ba3-ae58-7f57cf5f1dbdn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d921331e-a1db-48fe-b849-160e11673b07n@googlegroups.com>
Subject: Re: Noticed a difference, is it between CentOS and Ubuntu or between
GT.M and Yottadb?
From: ksbhaskar@gmail.com (K.S. Bhaskar)
Injection-Date: Mon, 09 May 2022 15:00:25 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: K.S. Bhaskar - Mon, 9 May 2022 15:00 UTC

On Sunday, May 8, 2022 at 7:06:34 PM UTC-4, ed de moel wrote:
> Oh yes, if it matters:
> The version of CentOS is: CentOS release 6.10 (Final)
> The version of Ubuntu is: Ubuntu 22.04 LTS

Ed, is this a SOCKET device? Also, do you have a small example of the M code? There have been changes in both GT.M and YottaDB between those releases to accept CR+LF as line terminators in various contexts, not just LF. However, I am not aware of anything that converts CR+LF into CR+null.

Regards
– Bhaskar

Re: Noticed a difference, is it between CentOS and Ubuntu or between GT.M and Yottadb?

<30895fdd-f0a4-492d-b6bc-099b366c805dn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=341&group=comp.lang.mumps#341

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:ac8:5c4d:0:b0:2e0:71b7:2829 with SMTP id j13-20020ac85c4d000000b002e071b72829mr14828195qtj.323.1652109045997;
Mon, 09 May 2022 08:10:45 -0700 (PDT)
X-Received: by 2002:ad4:5dca:0:b0:45a:c70d:294e with SMTP id
m10-20020ad45dca000000b0045ac70d294emr13850735qvh.16.1652109045852; Mon, 09
May 2022 08:10:45 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Mon, 9 May 2022 08:10:45 -0700 (PDT)
In-Reply-To: <d921331e-a1db-48fe-b849-160e11673b07n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=71.174.62.16; posting-account=j7lJmQoAAADTx0Apfk15DZ7D0qlYy4zv
NNTP-Posting-Host: 71.174.62.16
References: <c6a9fe9b-c7dc-43c0-bb45-2e497ab83950n@googlegroups.com>
<71fa6deb-f306-4ba3-ae58-7f57cf5f1dbdn@googlegroups.com> <d921331e-a1db-48fe-b849-160e11673b07n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <30895fdd-f0a4-492d-b6bc-099b366c805dn@googlegroups.com>
Subject: Re: Noticed a difference, is it between CentOS and Ubuntu or between
GT.M and Yottadb?
From: eddemoel@gmail.com (ed de moel)
Injection-Date: Mon, 09 May 2022 15:10:45 +0000
Content-Type: text/plain; charset="UTF-8"
 by: ed de moel - Mon, 9 May 2022 15:10 UTC

This is a web application, in other words YottaDB is invoked with the socket invoked by a webpage as its standard in/output.
The code just reads standard input with Read *byte as it is parsing the multi-part POST payload.

If you need more detail, please let me know.
Thanks.
Ed

Re: Noticed a difference, is it between CentOS and Ubuntu or between GT.M and Yottadb?

<682b9a9e-42e9-4d53-becc-0362e85b4117n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=342&group=comp.lang.mumps#342

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a37:7ca:0:b0:69f:7733:27b9 with SMTP id 193-20020a3707ca000000b0069f773327b9mr13274483qkh.493.1652126138299;
Mon, 09 May 2022 12:55:38 -0700 (PDT)
X-Received: by 2002:a05:620a:3ca:b0:69e:88ef:5c75 with SMTP id
r10-20020a05620a03ca00b0069e88ef5c75mr13044198qkm.255.1652126138103; Mon, 09
May 2022 12:55:38 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Mon, 9 May 2022 12:55:37 -0700 (PDT)
In-Reply-To: <30895fdd-f0a4-492d-b6bc-099b366c805dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=71.162.243.192; posting-account=1RT8nQoAAAAj9lvLkm8f9L-U6g6gYLit
NNTP-Posting-Host: 71.162.243.192
References: <c6a9fe9b-c7dc-43c0-bb45-2e497ab83950n@googlegroups.com>
<71fa6deb-f306-4ba3-ae58-7f57cf5f1dbdn@googlegroups.com> <d921331e-a1db-48fe-b849-160e11673b07n@googlegroups.com>
<30895fdd-f0a4-492d-b6bc-099b366c805dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <682b9a9e-42e9-4d53-becc-0362e85b4117n@googlegroups.com>
Subject: Re: Noticed a difference, is it between CentOS and Ubuntu or between
GT.M and Yottadb?
From: sam.habiel@gmail.com (Sam Habiel)
Injection-Date: Mon, 09 May 2022 19:55:38 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2488
 by: Sam Habiel - Mon, 9 May 2022 19:55 UTC

On Monday, May 9, 2022 at 11:10:46 AM UTC-4, ed de moel wrote:
> This is a web application, in other words YottaDB is invoked with the socket invoked by a webpage as its standard in/output.
> The code just reads standard input with Read *byte as it is parsing the multi-part POST payload.
>
> If you need more detail, please let me know.
> Thanks.
> Ed
Hey Ed,

It's completely possible that YottaDB/GT.M "fixed" something with delimiters somewhere along the years, but a $C(0) showing up is really strange. Is your client sending the data still the same?

I just noticed that you are reading standard input and output.

For reference, here's what I did in the M-Web-Server to deal with delimiters: https://github.com/shabiel/M-Web-Server/blob/master/src/_webreq.m. I delimit by $C(13,10) while reading the HTTP headers, and then switch to no delimiters while reading the data.

You said that you are using stdin/out. If so, you may find the code that is used here more useful, as it is invoked from xinetd: https://vivian.worldvista.org/dox/Routine_XWBTCPM_source.html

Let us know how you fare.

--Sam

Re: Noticed a difference, is it between CentOS and Ubuntu or between GT.M and Yottadb?

<15d13e31-06a4-4fc9-87e8-d2a7cf9d0182n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=347&group=comp.lang.mumps#347

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a37:68ca:0:b0:6a0:4bd:6098 with SMTP id d193-20020a3768ca000000b006a004bd6098mr19366453qkc.605.1652278405548;
Wed, 11 May 2022 07:13:25 -0700 (PDT)
X-Received: by 2002:a05:622a:1a90:b0:2f3:bb56:5a1d with SMTP id
s16-20020a05622a1a9000b002f3bb565a1dmr24059736qtc.127.1652278405374; Wed, 11
May 2022 07:13:25 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Wed, 11 May 2022 07:13:25 -0700 (PDT)
In-Reply-To: <682b9a9e-42e9-4d53-becc-0362e85b4117n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=71.174.62.16; posting-account=j7lJmQoAAADTx0Apfk15DZ7D0qlYy4zv
NNTP-Posting-Host: 71.174.62.16
References: <c6a9fe9b-c7dc-43c0-bb45-2e497ab83950n@googlegroups.com>
<71fa6deb-f306-4ba3-ae58-7f57cf5f1dbdn@googlegroups.com> <d921331e-a1db-48fe-b849-160e11673b07n@googlegroups.com>
<30895fdd-f0a4-492d-b6bc-099b366c805dn@googlegroups.com> <682b9a9e-42e9-4d53-becc-0362e85b4117n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <15d13e31-06a4-4fc9-87e8-d2a7cf9d0182n@googlegroups.com>
Subject: Re: Noticed a difference, is it between CentOS and Ubuntu or between
GT.M and Yottadb?
From: eddemoel@gmail.com (ed de moel)
Injection-Date: Wed, 11 May 2022 14:13:25 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1471
 by: ed de moel - Wed, 11 May 2022 14:13 UTC

Thanks, Sam. The "nodelimiter" setting did the trick!

Ed

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor