Re: XML or rest services

2017-03-29 Thread Tom DeMeo via 4D_Tech
Chuck,


4D Tags will help you compose, but they won’t help you parse. If you get an 
response from a request, whether XML or JSON, you will start with text. If you 
use XML, see the XML DOM commands. You would use DOM Parse XML source. You can 
then use commands in the XML DOM theme to inspect the results.

If you get JSON, you can parse the text into an object variable and inspect 
that with the Objects(Language) commands


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

Re: v13 - Converting a v12 data file - missing records

2017-03-29 Thread Chip Scheide via 4D_Tech
that is where I am on this, there is only 1 data file to convert...
I have the missing records exported to text, and they import correctly.

I'll run MSC just to be sure, then check whether I have to import...

Thanks
On Wed, 29 Mar 2017 14:27:08 -0700, Kirk Brooks via 4D_Tech wrote:
> 
> If you have multiple datafiles to convert then you'll want to figure it
> out. If you only need to convert the one datafile and you can import the
> missing records I'd focus on verifying it and not worry about why the
> conversion was weird. You only need a valid datafile at the end of the day
> and life is too short.
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: 4D 15.3HF1 OSX 10.12.4 - is 4D v15.4 the best answer.

2017-03-29 Thread Timothy Penner via 4D_Tech
Hi David,

Honestly I focused on the v15.3HF1 vs 15.4 on macOS 10.12.x part of the 
question and completely missed that mention DDOS at all… Sorry.

To be clear though, there is no v15.5 (yet) - there is a v15.4HF2 released a 
few days ago.
The DDOS thread was solved by using v15R5 however this was certainly not (to my 
knowledge) on Sierra.

Strictly speaking about macOS Sierra –
- You should be using either v16.0 or v15.4+ because these are the versions 
that are certified for macOS Sierra.
- V15.3/v15.3HF1 and v15R5 are not certified for macOS Sierra.  Here is the 
v15R5 cert matrix:
ftp://ftp-public.4d.fr/Documents/Products_Documentation/LastVersions/Line_15R5/VIntl/20160830_CertifV15_R5_INTL.pdf

Regarding the DDOS thread –
- I tested v15.4 (with a new db) using LOIC and I did not see an issue.
- Randy tested 15R5 (his db) using LOIC and his crashing went away (while his 
db crashed in v15.4 during the ddos).

My takeway from this is:
Is v15.4 inherently bad at dealing with ddos attacks? No I don’t think so since 
a new db didn’t crash, it seemed to be something specific to the db’s that 
crashed.
Is v15R5 inherently better at dealing with ddos attacks? Yes I think it is 
based on both Randy and Steve reports of their crashing going away with v15R5.
Is v15R5 a good match for macOS Sierra? No absolutely not. Use v16.x if you 
want the features of the v15R release on Sierra.

Kind Regards,

Tim PENNER



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

Re: v13 - Converting a v12 data file - missing records

2017-03-29 Thread Kirk Brooks via 4D_Tech
Chip,
I'm going to guess the issue was with the Parent records. What is it? It
could be a number of things especially if this is a mature project that's
already been through several previous upgrades. My first hunch is that
there's something in the data of a few fields that's causing some esoteric
collision and 4D just says, "forget this" and moves on.

If you have multiple datafiles to convert then you'll want to figure it
out. If you only need to convert the one datafile and you can import the
missing records I'd focus on verifying it and not worry about why the
conversion was weird. You only need a valid datafile at the end of the day
and life is too short.

On Wed, Mar 29, 2017 at 1:37 PM, Chip Scheide via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> So - I m moving a v12 application to v13 (I'm getting closer to current
> version : )  )
>
> I am testing the conversion of the data file.
> There are structural changes between the versions.
>
> I took a copy of the live (v12) data file, and opened it in the new
> structure (v13)
> 4D converted the datafile, then my conversion code ran, and everything
> seemed to be OK.
>
> I am going through the data to see that everything actually moved
> correctly.
> I found a discrepancy, in one table there is about 1% of the records
> which were NOT in the converted data file, along with their child
> records (Requisition and line items for the requisitions).
>
> Exporting these records from the live data and importing into the new
> version appears to work.
>
> So... my question is:
> What is going on??
> Why are the parent and child records missing?
> Ideas?
>
>
-- 
Kirk Brooks
San Francisco, CA
===
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: v13 - Converting a v12 data file - missing records

2017-03-29 Thread Chip Scheide via 4D_Tech
relation is 'direct', manual relation

[requistion] <-- [Req_Items]


MCS - I'll do that before the final conversion

On Wed, 29 Mar 2017 16:40:18 -0400, Charles Miller via 4D_Tech wrote:
> On Wed, Mar 29, 2017 at 4:37 PM, Chip Scheide via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> So... my question is:
>> What is going on??
>> Why are the parent and child records missing?
>> Ideas?
>> 
>> Thanks
>> 
> 
> No idea but - how are they related? Also I might want to run MSC on v12
> before convert on a copy of data file.
> 
> Regards
> 
> Chuck
> 
> 
> -- 
> 
-
>  Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
>  Informed Solutions, Inc.
>  Brookline, MA 02446 USA Registered 4D Developer
>Providers of 4D, Sybase & SQL Sever connectivity
>   http://www.informed-solutions.com
> 
-
> This message and any attached documents contain information which may be
> confidential, subject to privilege or exempt from disclosure under
> applicable law.  These materials are intended only for the use of the
> intended recipient. If you are not the intended recipient of this
> transmission, you are hereby notified that any distribution, disclosure,
> printing, copying, storage, modification or the taking of any action in
> reliance upon this transmission is strictly prohibited.  Delivery of this
> message to any person other than the intended recipient shall not
> compromise or waive such confidentiality, privilege or exemption
> from disclosure as to this communication.
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://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)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: v13 - Converting a v12 data file - missing records

2017-03-29 Thread Charles Miller via 4D_Tech
On Wed, Mar 29, 2017 at 4:37 PM, Chip Scheide via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> So... my question is:
> What is going on??
> Why are the parent and child records missing?
> Ideas?
>
> Thanks
>

No idea but - how are they related? Also I might want to run MSC on v12
before convert on a copy of data file.

Regards

Chuck


-- 
-
 Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
 Informed Solutions, Inc.
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D, Sybase & SQL Sever connectivity
  http://www.informed-solutions.com
-
This message and any attached documents contain information which may be
confidential, subject to privilege or exempt from disclosure under
applicable law.  These materials are intended only for the use of the
intended recipient. If you are not the intended recipient of this
transmission, you are hereby notified that any distribution, disclosure,
printing, copying, storage, modification or the taking of any action in
reliance upon this transmission is strictly prohibited.  Delivery of this
message to any person other than the intended recipient shall not
compromise or waive such confidentiality, privilege or exemption
from disclosure as to this communication.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: 4D 15.3HF1 OSX 10.12.4 - is 4D v15.4 the best answer.

2017-03-29 Thread David Ringsmuth via 4D_Tech
Tim,

Thanks for responding!

We went to v15.3HF1 as a stop gap, because 15.2 was crashing on OSX 10.12.4.

Why did you not recommend 4D v15.5?

In a DOS attack posted here it performed without crashing, whereas 4D v15.4 
crashed.

David Ringsmuth

From: Timothy Penner via 4D_Tech
Sent: Wednesday, March 29, 2017 3:06 PM
To: 4D iNug Technical
Cc: Timothy Penner
Subject: RE: 4D 15.3HF1 OSX 10.12.4 - is 4D v15.4 the best answer.

Even 15.3 hotfix 1 (released 12/22/2016) is not certified for Sierra (it is 
only compatible):
http://download.4d.com/Documents/Products_Documentation/LastVersions/Line_15/VIntl/PDF_Format/4Dv15_3_HotFix1_Certif__INTL.pdf

You should really be using the "certified" release now that it is available.

-Tim



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

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

Re: 4D Write Pro using expressions with XML merge file (or JSON)

2017-03-29 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Bruno,

Because it is easy to use xpath in 4D and easy to generate XML in Oracle this 
is exactly why I think this is a nice solution.

I am glad you think the same:-)

I assume one can also use attributes in xpath in 4D.

Gr,

Piotr

Op 29 mrt. 2017 21:37 schreef Bruno LEGAY :
Hi Piotr,

I have quite a bit of experience in xml as well ;-)

So if I understand well, you want to use an xpath to some xml structure 
containing the data to merge…

Also the xml is data store in Oracle (or generated on the fly by Oracle).

something like :


   
 my value
 the name
   


It is pretty easy to write a 4D function which will return the value for the 
given xpath…
Let me know I can help you on this ;-)

Let say before the merge an instance of the document you parse the xml and keep 
the xml dom ref in a global var.
Your function uses this global var to perform the xpath and return the value.
When you finished the merge of the document, don’t forget to free the dom ref 
(or you will leak memory).

Xpath in 4D is pretty basic. It makes namespace pretty transparent (namespace 
can be a pain in a properly implemented xpath « engine »).
But on the other hand, advanced xpath are not supported.
It does relative or absolute path. You can use index (default is [1])
So  parameters/debtor/nr   <=>   parameters/debtor[1]/nr[1]

In the approach above the structure will depend on your data and you will use 
4D xpath to get the data.

This is a good idea.

You could also do something like this :


   my value
   the name
   ...


In the approach the xml structure is always the same. The key attribute is used 
to get the value.
This is a pretty flexible way to do key-value arrays. It does not have the 
index flexibility that xpath has.


Cordialement,

Bruno LEGAY - A Consulting
Tél. : +33 (0)1 41 74 13 79
http://www.ac-consulting.fr

 Des compétences réunies pour des applications réussies

[cid:84BBEDAE-FDE8-4E61-8DAB-D1B1514121A0@home]
  Merci de penser à l'environnement avant d'imprimer





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

Re: XML or rest services

2017-03-29 Thread Charles Miller via 4D_Tech
On Wed, Mar 29, 2017 at 3:23 PM, Ortwin Zillgen via 4D_Tech <
4d_tech@lists.4d.com> wrote:

>
> 4D tags work just fine for creating XML


I know that what I need to know is how to get data from XML into 4D without
having access to source. I would have thought I could use 4D tags. That is
question I was asking?

Regards

Chuck


-- 
-
 Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
 Informed Solutions, Inc.
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D, Sybase & SQL Sever connectivity
  http://www.informed-solutions.com
-
This message and any attached documents contain information which may be
confidential, subject to privilege or exempt from disclosure under
applicable law.  These materials are intended only for the use of the
intended recipient. If you are not the intended recipient of this
transmission, you are hereby notified that any distribution, disclosure,
printing, copying, storage, modification or the taking of any action in
reliance upon this transmission is strictly prohibited.  Delivery of this
message to any person other than the intended recipient shall not
compromise or waive such confidentiality, privilege or exemption
from disclosure as to this communication.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: How to collapse/expand all panes in Property List (v16)

2017-03-29 Thread Kirk Brooks via 4D_Tech
Keith,
Bear in mind I'm only talking about the Properties List that's available in
development mode. I haven't seen anything on the end-use side involving
this. So it's probably not too big a deal. I think if it were more folks
would have seen it and said something.

On Wed, Mar 29, 2017 at 11:35 AM, Keith Goebel via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> If this disparity between 32 bit 4D and 64 bit 4D exists for other than
> the developer interface stuff, !hat’s quite scary thought!
>
> With testing done in standalone and deployed on server = server could have
> bugs not there in test version.
> That also means 2 complete sets of testing is required - one for
> standalone and one for client/server.
> That’s a *big* extra burden.
> We are still in v15.2 so it doesn’t apply, but what are you v16 users
> doing for testing deployment versions?
>
>
> > On 30/03/2017, at 4:28 am, 4d_tech-requ...@lists.4d.com wrote:
> >
> > rom: Kirk Brooks >
> > Subject: Re: How to collapse/expand all panes in Property List (v16)
> > Date: 29 March 2017 5:59:23 pm NZDT
> > To: 4D iNug Technical <4d_tech@lists.4d.com  >>
> >
> >
> > Hi folks,
> > It looks like this is a legitimate bug and has been logged by 4D.
> >
> > On Sun, Mar 26, 2017 at 6:02 PM, Kirk Brooks  > wrote:
> >
> >> Hi folks,
> >>
> >> In v16 it seems I the ability to collapse all panes in the Property List
> >> (when editing a form) is removed. Since at least v13 you could control
> >> click on a pane arrow to collapse/expand all. Now that doesn't work - at
> >> least on a Mac.
> >>
> >> Is this a bug or a feature?
> >
>
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>



-- 
Kirk Brooks
San Francisco, CA
===
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: XML or rest services

2017-03-29 Thread Ortwin Zillgen via 4D_Tech
> Thanks that's kind of what I thought you would then use 4d tags to get data 
> into table and fields. Is that correct? Sorry for being dense but I do not do 
> any of this type of coding.

4D tags work just fine for creating XML

Grüße/regards
Ortwin Zillgen

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

Re: How to collapse/expand all panes in Property List (v16)

2017-03-29 Thread Keith Goebel via 4D_Tech
If this disparity between 32 bit 4D and 64 bit 4D exists for other than the 
developer interface stuff, !hat’s quite scary thought!

With testing done in standalone and deployed on server = server could have bugs 
not there in test version.
That also means 2 complete sets of testing is required - one for standalone and 
one for client/server.
That’s a *big* extra burden.
We are still in v15.2 so it doesn’t apply, but what are you v16 users doing for 
testing deployment versions?


> On 30/03/2017, at 4:28 am, 4d_tech-requ...@lists.4d.com wrote:
> 
> rom: Kirk Brooks >
> Subject: Re: How to collapse/expand all panes in Property List (v16)
> Date: 29 March 2017 5:59:23 pm NZDT
> To: 4D iNug Technical <4d_tech@lists.4d.com >
> 
> 
> Hi folks,
> It looks like this is a legitimate bug and has been logged by 4D.
> 
> On Sun, Mar 26, 2017 at 6:02 PM, Kirk Brooks  > wrote:
> 
>> Hi folks,
>> 
>> In v16 it seems I the ability to collapse all panes in the Property List
>> (when editing a form) is removed. Since at least v13 you could control
>> click on a pane arrow to collapse/expand all. Now that doesn't work - at
>> least on a Mac.
>> 
>> Is this a bug or a feature?
> 


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

RE: 4D Write Pro using expressions with XML merge file (or JSON)

2017-03-29 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Koen,

The reason I tend to XML is that I am planning to generate the merge data in 
Oracle
Only since Oracle 12c plus there are some JSON functions
So as I see it XML is kind of the standard in Oracle

Have you done something like I am planning to do in 4D Write?
I am hoping for someone having already done this and saving me some pitfalls.

Gr,

Piotr

> -Oorspronkelijk bericht-
> Van: Koen Van Hooreweghe [mailto:bvbacomp...@telenet.be]
> Verzonden: woensdag 29 maart 2017 11:25
> Aan: 4D iNug Technical <4d_tech@lists.4d.com>
> Onderwerp: Re: 4D Write Pro using expressions with XML merge file (or
> JSON)
> 
> Hi Piotr,
> 
> I would advise JSON or rather 4D objects. 4D objects and JSON are not
> exactly the same, but very closely related. JSON is actually a text
> representation of a 4D object. The 4D debugger handles objects nicely too.
> You can store your data into a 4D object and then retrieve the values in your
> 4D Write area using your proposed commands. Unfortunately there is no dot
> notation (yet) available.
> But if your needs are not too complex, you could easily implement a basic
> version yourself.
> 
> HTH
> Koen
> 
> Op 29-mrt.-2017, om 09:02 heeft Piotr Chabot Stadhouders via 4D_Tech
> <4d_tech@lists.4d.com> het volgende geschreven:
> 
> > Has anybody already done "my new way" and have experience with this?
> > Does this make sense or is there a better way to do this?
> > Is JSON for example a better alternative over XML?
> 
> 
> 
> 
> Compass bvba
> Koen Van Hooreweghe
> Kloosterstraat 65
> 9910 Knesselare
> Belgium
> tel +32 495 511.653
> 

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

Re: XML or rest services

2017-03-29 Thread Chuck Miller via 4D_Tech
Thanks that's kind of what I thought you would then use 4d tags to get data 
into table and fields. Is that correct? Sorry for being dense but I do not do 
any of this type of coding. 

Regards
Chuck 

Sent from my iPhone

> On Mar 29, 2017, at 12:39 PM, Bruno LEGAY via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi,
> 
> Since v13, you have a native http client, so it is easy to POST or GET some 
> xml data over HTTP.
> 
> So in essence :
> 
> post :
> 1. create dom
> 2. set values in dom
> 3. export dom to xml blob
> 4. free dom
> 5 HTTP POST xml blob
> 
> get
> 1. HTTP Get into a blob
> 2. Parse blob into a dom
> 3. read data in dom
> 4. free dom
> 
> HTH
> Bruno
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

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

XML or rest services

2017-03-29 Thread Bruno LEGAY via 4D_Tech
Hi,

Since v13, you have a native http client, so it is easy to POST or GET some xml 
data over HTTP.

So in essence :

post :
 1. create dom
 2. set values in dom
 3. export dom to xml blob
 4. free dom
 5 HTTP POST xml blob

get
 1. HTTP Get into a blob
 2. Parse blob into a dom
 3. read data in dom
 4. free dom

HTH
Bruno


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

4D 15.3HF1 OSX 10.12.4 - is 4D v15.4 the best answer.

2017-03-29 Thread David Ringsmuth via 4D_Tech
We’ve had 2 crashes on 4D Server with the HTTP thread.

For us this is a rather higher-volume site.

I’ve seen here 4D v15.4 seems to perform well in this area in particular – it 
survived DOS attack simulation.

We are looking for suggestions and insight.

Are there issues with 4D v15.4 that would caution upgrading to it?

Thanks!

Process:   4D Server [823]
Path:  /Applications/4D v15.3/4D Server.app/Contents/MacOS/4D 
Server
Identifier:com.4D.4DServer
Version:   15.3 build 15.206822 (15.0.3)
Code Type: X86-64 (Native)
Parent Process:??? [1]
Responsible:   4D Server [823]
User ID:   504

Date/Time: 2017-03-29 11:27:42.875 -0400
OS Version:Mac OS X 10.12.4 (16E195)
Report Version:12
Anonymous UUID:88ACC846-88EA-3401-57EF-638EA00A3CAF


Time Awake Since Boot: 10 seconds

System Integrity Protection: enabled

Crashed Thread:55  HTTP connection handler (id = 124123)

Exception Type:EXC_CRASH (SIGABRT)
Exception Codes:   0x, 0x
Exception Note:EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called
*** error for object 0x613e4700: Invalid pointer dequeued from free list

Thread 55 Crashed:: HTTP connection handler (id = 124123)
0   libsystem_kernel.dylib  0x7fffae4b1d42 __pthread_kill + 10
1   libsystem_pthread.dylib 0x7fffae59f5bf pthread_kill + 90
2   libsystem_c.dylib   0x7fffae417420 abort + 129
3   libsystem_malloc.dylib  0x7fffae516d98 nanozone_error + 525
4   libsystem_malloc.dylib  0x7fffae50c588 
_nano_malloc_check_clear + 427
5   libsystem_malloc.dylib  0x7fffae50c3bf nano_malloc + 35
6   libsystem_malloc.dylib  0x7fffae505282 malloc_zone_malloc + 
107
7   libsystem_malloc.dylib  0x7fffae504200 malloc + 24
8   libcrypto.1.0.0.dylib   0x0001050c1d18 CRYPTO_malloc + 104
9   libcrypto.1.0.0.dylib   0x0001050f01f2 bn_expand_internal + 
114
10  libcrypto.1.0.0.dylib   0x0001050f03ef BN_copy + 47
11  libcrypto.1.0.0.dylib   0x0001050f5805 
BN_BLINDING_convert_ex + 133
12  libcrypto.1.0.0.dylib   0x000105113359 
RSA_eay_private_decrypt + 1001
13  libssl.1.0.0.dylib  0x00010505751a 
ssl3_get_client_key_exchange + 666
14  libssl.1.0.0.dylib  0x000105054010 ssl3_accept + 1712
15  libssl.1.0.0.dylib  0x000105064707 ssl3_read_bytes + 375
16  libssl.1.0.0.dylib  0x000105061a4c ssl3_read + 156
17  com.4d.ServerNet0x000104c4e5f5 
xbox::VSslDelegate::Read(void*, unsigned int*) + 89
18  com.4d.ServerNet0x000104c4a627 
xbox::XBsdTCPSocket::DoReadWithTimeout(void*, unsigned int*, int, int*) + 157
19  com.4d.ServerNet0x000104c57e93 
xbox::VTCPEndPoint::DoReadExactly(void*, unsigned int*, int) + 195
20  com.4d.ServerNet0x000104c5a13a 
xbox::VTCPEndPoint::ReadExactly(void*, unsigned int, int) + 996
21  com.4d.component.HTTPServer 0x00010890b89e 0x108903000 + 34974
22  com.4d.component.HTTPServer 0x00010890c0b7 0x108903000 + 37047
23  com.4d.component.HTTPServer 0x000108933469 0x108903000 + 197737
24  com.4d.component.HTTPServer 0x000108944957 0x108903000 + 268631
25  com.4d.component.HTTPServer 0x00010892193b 0x108903000 + 125243
26  com.4d.ServerNet0x000104c484aa 
xbox::VExclusiveWorker::DoRun() + 266
27  com.4d.kernel   0x0001048eefaa xbox::VTask::_Run() 
+ 186
28  com.4d.kernel   0x0001048f37d1 
xbox::XMacTask_preemptive::_ThreadProc(void*) + 145
29  libsystem_pthread.dylib 0x7fffae59c9af _pthread_body + 180
30  libsystem_pthread.dylib 0x7fffae59c8fb _pthread_start + 286
31  libsystem_pthread.dylib 0x7fffae59c101 thread_start + 13

Thread 55 crashed with X86 Thread State (64-bit):
  rax: 0x  rbx: 0x0006  rcx: 0x00016efb3988  
rdx: 0x
  rdi: 0x0001e4db  rsi: 0x0006  rbp: 0x00016efb39b0  
rsp: 0x00016efb3988
   r8: 0x   r9: 0x  r10: 0x0800  
r11: 0x0206
  r12: 0x0001  r13: 0x613e4700  r14: 0x00010a432000  
r15: 0x0001052d
  rip: 0x7fffae4b1d42  rfl: 0x0206  cr2: 0x7fffb72e4128
  
Logical CPU: 0
Error Code:  0x02000148
Trap Number: 133

David Ringsmuth

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: 

Re: y2038 -- is 4D ready?

2017-03-29 Thread Alan Chan via 4D_Tech
I agree. Longint for sequence number would definitely outlast me:-(

Alan Chan

4D iNug Technical <4d_tech@lists.4d.com> writes:
>last I knew (this could easily have changed)
>Sequence number range is +/- MAX LONGINT (so ~2.1 x 10^9)
>
>
>On Wed, 29 Mar 2017 18:38:56 +0800, Alan Chan via 4D_Tech wrote:
>> 4D would support 64bit integer by then. If not, sequence number (or 
>> auto-increment) would be the first one to get in trouble.
>> 
>> Alan Chan
>> 
>> 4D iNug Technical <4d_tech@lists.4d.com> writes:
>>> so code to convert date to epoch time like that one just recently discussed
>>> (Re: [4DTidbits Blog] Epoch & Unix Timestamp Conversion)
>>> could potentially have trouble...
>> 
>> **
>> 4D Internet Users Group (4D iNUG)
>> FAQ:  http://lists.4d.com/faqnug.html
>> Archive:  http://lists.4d.com/archives.html
>> Options: http://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)
>FAQ:  http://lists.4d.com/faqnug.html
>Archive:  http://lists.4d.com/archives.html
>Options: http://lists.4d.com/mailman/options/4d_tech
>Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>**

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

Re: How to digitally sign an XML document

2017-03-29 Thread Bruno LEGAY via 4D_Tech
Hi,

> How to digitally sign an XML document
The signature of xml document is pretty well standardized by the xmldisg which 
is a W3C spec.

We have written a v15 component to sign a soap request with xmldsig. 
To do this I used 4D php fastcgi for openssl commands and xml canonicalization.

The xml is signed with a certificate contained in a pkcs12 password protected 
keystone.

Basically the xml has a designated "signed info" section. This section is 
canonanlized. There is a sha256 digest generated on this canonalized data and 
the digest is then signed with the certificate. The signature is then base64 
encoded and embedded in the xml document signature element.

Contact me privately if you need some help on this.

HTH
Bruno LEGAY



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

Re: y2038 -- is 4D ready?

2017-03-29 Thread Chip Scheide via 4D_Tech
last I knew (this could easily have changed)
Sequence number range is +/- MAX LONGINT (so ~2.1 x 10^9)


On Wed, 29 Mar 2017 18:38:56 +0800, Alan Chan via 4D_Tech wrote:
> 4D would support 64bit integer by then. If not, sequence number (or 
> auto-increment) would be the first one to get in trouble.
> 
> Alan Chan
> 
> 4D iNug Technical <4d_tech@lists.4d.com> writes:
>> so code to convert date to epoch time like that one just recently discussed
>> (Re: [4DTidbits Blog] Epoch & Unix Timestamp Conversion)
>> could potentially have trouble...
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://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)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: y2038 -- is 4D ready?

2017-03-29 Thread Alan Chan via 4D_Tech
4D would support 64bit integer by then. If not, sequence number (or 
auto-increment) would be the first one to get in trouble.

Alan Chan

4D iNug Technical <4d_tech@lists.4d.com> writes:
>so code to convert date to epoch time like that one just recently discussed
>(Re: [4DTidbits Blog] Epoch & Unix Timestamp Conversion)
>could potentially have trouble...

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

Re: 4D Write Pro using expressions with XML merge file (or JSON)

2017-03-29 Thread Koen Van Hooreweghe via 4D_Tech
Hi Piotr,

I would advise JSON or rather 4D objects. 4D objects and JSON are not exactly 
the same, but very closely related. JSON is actually a text representation of a 
4D object. The 4D debugger handles objects nicely too. You can store your data 
into a 4D object and then retrieve the values in your 4D Write area using your 
proposed commands. Unfortunately there is no dot notation (yet) available. 
But if your needs are not too complex, you could easily implement a basic 
version yourself.

HTH
Koen

Op 29-mrt.-2017, om 09:02 heeft Piotr Chabot Stadhouders via 4D_Tech 
<4d_tech@lists.4d.com> het volgende geschreven:

> Has anybody already done "my new way" and have experience with this?
> Does this make sense or is there a better way to do this?
> Is JSON for example a better alternative over XML?




Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Knesselare
Belgium
tel +32 495 511.653

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

4D Write Pro using expressions with XML merge file (or JSON)

2017-03-29 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi All,

We are using 4D Write for about 20 years now.
With 4D v16R2 we think it is time to migrate to 4D Write Pro.
One thing we use a lot is expressions to merge data with document templates.
We don't use 4D records but we use 4D for OCI to connect to an Oracle database.
20 years ago we didn't know of XML (or maybe it even didn't exist) so we did it 
the array way.

The old way (still used) :
In the 4D Write template insert expressions, for example :  
INSERTFIELD("[DEBTOR_NR]") or INSERTFIELD("[DEBTOR_NAME]")
When merging the template with data retrieve data into 2 attribute-value arrays.
INSERTFIELD is executed by 4D, which looks for DEBTOR_NAME in array 1 and 
returns the value in Array 2

The new way (just an idea) :
In the 4D Write template insert expressions, for example : 
INSERTFIELD("debtor/nr") or INSERTFIELD("debtor/name")
When merging the template with data retrieve data into XML file
INSERTFIELD is executed by 4D, which handles the parameter of INSERTFIELD as 
xpath notation and finds the right element / attribute in XML file and returns 
in
An alternative could be using JSON

My question :
Has anybody already done "my new way" and have experience with this?
Does this make sense or is there a better way to do this?
Is JSON for example a better alternative over XML?

Thanks in advance,

Piotr

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