This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
46
Web Server - Ask For Help / Re: Form no longer displays after file download
« on: March 13, 2024, 09:25:46 PM »
Indeed, the file field can (should?) be blank. It's designed to accept the file name.
the "Save into Blob Field" setting should be used for blob fields.
Cheers
Bruce
the "Save into Blob Field" setting should be used for blob fields.
Cheers
Bruce
47
Web Server - Ask For Help / Re: File could not be opened. Error: Invalid Filename (45).
« on: March 12, 2024, 06:42:25 PM »
>> The example Logging 81 displays this error
Fine, I'll fix that. But that has nothing to do with Poul's situation.
Poul is Opening a table, that has a Full Pathname variable, and that variable is not set.
Cheers
Bruce
Fine, I'll fix that. But that has nothing to do with Poul's situation.
Poul is Opening a table, that has a Full Pathname variable, and that variable is not set.
Cheers
Bruce
48
Web Server - Ask For Help / Re: Help connecting with rest server locally? Get error -69
« on: March 12, 2024, 06:40:20 PM »
Hi Jorge,
to best test this it might be useful for you to edit your HOSTS file, so that your actual domain points to 127.0.0.1
that way you can test locally still using the actual site address.
Also, it's probably worth you mentioning what version of NetTalk you are using. From your explanation of what you did it sounds like an old one.
>> I generated the crt and key certificates with the latest openssl - (both for localhost and 127.0.0.1).
this is what makes me think you're on old. Typically you can generate certificates just adding one, or both, of these to your domain list.
>> * I tried from the browser, that was one of the latest things that worked, but not anymore.
what does your browser say?
>> * It is not locked by any antivirus or firewall. I made a small Clarion testing program, to send a GET to the server, and when I try locally (for example, to https://localhost:1741 or to https://127.0.0.1:1741) it says the error was -69 which means the SSL remote certificate failed verification.
Of course it will fail. It will fail in your browser too. generating your own certificates locally (for IP addresses, or localhost) means those certificates are not signed by a CA, and so are "untrusted". This will cause most clients to fail. In aNetTalk web client you need to turn off the test for the certificate so it "doesn't check against CARoot.Pem."
<< * The server starts successfully, it says it loaded the certificates, 0 errors.
sure.
>> * The server shows there -was- a connection attempt. But it gives no error, nothing.
sure. The server doesn't care if the client failed to connect.
>> * If i started the server for localhost I tried calling localhost and used localhost named certificates, same for 127.0.0.1 - all matching)
yes but not _trusted_ certificates. (It is not possible to get a trusted certificate for localhost or 127.0.0.1. Which is why setting your local HOSTS file is probably your best bet for this sort of testing.
>> * The problem seems to be in the side of the server... But I'm not sure what else to try.
>> ** Do the openssl certificates are no longer valid for a local test??
They're valid, but they're not trusted. So your browser / client needs to bypass the trustworthy test.
>> ** What I need to test is the server response under certain conditions and performance related LOCALLY, the connection over the web works perfect!!! What am I missing for testing the server locally?
You're missing an understanding of the limitations of self-signed certificates.
>> So later, I tried connecting to the non-secure port. From Postman, succeed! It indeed connected locally.
It succeeded because it's ignoring the trustworthiness of the certificate, because it likely knows you can't trust certs on that address.
Connecting to the insecure port simply returns a redirect (assuming you are on NT10 or later) and it is following that redirect.
>> What else should I change to get the same result as Postman?
net.SSLCertificateOptions.DontVerifyRemoteCertificateWithCARoot = true
Cheers
Bruce
to best test this it might be useful for you to edit your HOSTS file, so that your actual domain points to 127.0.0.1
that way you can test locally still using the actual site address.
Also, it's probably worth you mentioning what version of NetTalk you are using. From your explanation of what you did it sounds like an old one.
>> I generated the crt and key certificates with the latest openssl - (both for localhost and 127.0.0.1).
this is what makes me think you're on old. Typically you can generate certificates just adding one, or both, of these to your domain list.
>> * I tried from the browser, that was one of the latest things that worked, but not anymore.
what does your browser say?
>> * It is not locked by any antivirus or firewall. I made a small Clarion testing program, to send a GET to the server, and when I try locally (for example, to https://localhost:1741 or to https://127.0.0.1:1741) it says the error was -69 which means the SSL remote certificate failed verification.
Of course it will fail. It will fail in your browser too. generating your own certificates locally (for IP addresses, or localhost) means those certificates are not signed by a CA, and so are "untrusted". This will cause most clients to fail. In aNetTalk web client you need to turn off the test for the certificate so it "doesn't check against CARoot.Pem."
<< * The server starts successfully, it says it loaded the certificates, 0 errors.
sure.
>> * The server shows there -was- a connection attempt. But it gives no error, nothing.
sure. The server doesn't care if the client failed to connect.
>> * If i started the server for localhost I tried calling localhost and used localhost named certificates, same for 127.0.0.1 - all matching)
yes but not _trusted_ certificates. (It is not possible to get a trusted certificate for localhost or 127.0.0.1. Which is why setting your local HOSTS file is probably your best bet for this sort of testing.
>> * The problem seems to be in the side of the server... But I'm not sure what else to try.
>> ** Do the openssl certificates are no longer valid for a local test??
They're valid, but they're not trusted. So your browser / client needs to bypass the trustworthy test.
>> ** What I need to test is the server response under certain conditions and performance related LOCALLY, the connection over the web works perfect!!! What am I missing for testing the server locally?
You're missing an understanding of the limitations of self-signed certificates.
>> So later, I tried connecting to the non-secure port. From Postman, succeed! It indeed connected locally.
It succeeded because it's ignoring the trustworthiness of the certificate, because it likely knows you can't trust certs on that address.
Connecting to the insecure port simply returns a redirect (assuming you are on NT10 or later) and it is following that redirect.
>> What else should I change to get the same result as Postman?
net.SSLCertificateOptions.DontVerifyRemoteCertificateWithCARoot = true
Cheers
Bruce
49
Web Server - Ask For Help / Re: expand/contract CSS
« on: March 12, 2024, 06:25:21 PM »
what does your new CSS look like?
50
Web Server - Ask For Help / Re: Multi host certificate
« on: March 08, 2024, 05:08:47 AM »
Probably you have a spelling error somewhere.
Cheers
Bruce
Cheers
Bruce
51
Web Server - Ask For Help / Re: File could not be opened. Error: Invalid Filename (45).
« on: March 07, 2024, 05:22:35 AM »
hard to say without an example.
52
Web Server - Ask For Help / Re: Re: Save form as user selects tabs?
« on: March 05, 2024, 11:02:38 PM »
what css class did you add that into?
53
Web Server - Ask For Help / Re: Save form as user selects tabs?
« on: March 04, 2024, 09:29:37 PM »
perhaps make a small example app with your code, to show where you are calling it from etc.
Also, since you are loading the record, I presume your form is in "Change" mode, not "Insert" mode?
Incidentally I _suspect_ that given the new Partial Save functionality, and given that you can turn on validation at the tab level, this could likely be reduced, and even made to work with Insert's. Make an example and I'll play with it and see.
Cheers
Bruce
Also, since you are loading the record, I presume your form is in "Change" mode, not "Insert" mode?
Incidentally I _suspect_ that given the new Partial Save functionality, and given that you can turn on validation at the tab level, this could likely be reduced, and even made to work with Insert's. Make an example and I'll play with it and see.
Cheers
Bruce
54
Web Server - Ask For Help / Re: Update LineItem option in Accounts example
« on: February 29, 2024, 07:03:39 PM »
thanks, I'll keep you posted.
55
Web Server - Ask For Help / Re: Using group.queue as parameter in af webservice method
« on: February 29, 2024, 06:43:09 PM »
in netweb.tpw; around line 26476, connect out this block;
#For(%tempList)
Add(%TempList)
#EndFor
as in
#! #For(%tempList)
#! Add(%TempList)
#! #EndFor
Cheers
Bruce
#For(%tempList)
Add(%TempList)
#EndFor
as in
#! #For(%tempList)
#! Add(%TempList)
#! #EndFor
Cheers
Bruce
56
Web Server - Ask For Help / Re: Mixing Small screens in Web App
« on: February 28, 2024, 10:18:51 PM »
You don't make 2 procedures Ron.
You make 1 procedure that "responds".
the responsiveness is done with CSS and is mostly automatic (although I haven't tested everything for ages, so there may be rough edges that need tidying up.)
The starting point is just to set a global option;
_Global Web Server Extension_
Web Apps tab
"Turn Off pinch-to-zoom" (set this ON)
Cheers
Bruce
You make 1 procedure that "responds".
the responsiveness is done with CSS and is mostly automatic (although I haven't tested everything for ages, so there may be rough edges that need tidying up.)
The starting point is just to set a global option;
_Global Web Server Extension_
Web Apps tab
"Turn Off pinch-to-zoom" (set this ON)
Cheers
Bruce
57
Web Server - Ask For Help / Re: Update LineItem option in Accounts example
« on: February 28, 2024, 10:15:42 PM »
I see you're just setting a session value.
So your UI for this feature is a "global setting" of some sort (for the user) - not something on the form itself?
So your UI for this feature is a "global setting" of some sort (for the user) - not something on the form itself?
58
Web Server - Ask For Help / Re: Using group.queue as parameter in af webservice method
« on: February 28, 2024, 09:48:40 PM »
looks like a bug in the template - fixing for the next build.
59
Web Server - Ask For Help / Re: Processing incoming mail via Postmark
« on: February 28, 2024, 03:07:11 AM »
AttachmentsQueueType Queue,Type,Name('Attachments')
Name STRING(255),Name('Name')
Content &StringTheory,Name('Content | StringTheory')
ContentType STRING(255),Name('ContentType')
ContentLength Real,Name('ContentLength')
End
You don't need to do anything with the length, the StringTheory object will be NEW'd and poplulated for you.
remember to do a
json.DisposeGroup(whatever) at the end of your cod so all the StringTheory objects get disposed.
Cheers
Bruce
Name STRING(255),Name('Name')
Content &StringTheory,Name('Content | StringTheory')
ContentType STRING(255),Name('ContentType')
ContentLength Real,Name('ContentLength')
End
You don't need to do anything with the length, the StringTheory object will be NEW'd and poplulated for you.
remember to do a
json.DisposeGroup(whatever) at the end of your cod so all the StringTheory objects get disposed.
Cheers
Bruce
60
Web Server - Ask For Help / Re: How to deploy a secure application (settings)? NTWS 12.63
« on: February 26, 2024, 10:11:22 PM »
This document is for NetTalk 14
https://www.capesoft.com/docs/NetTalk14/NetWebRuntimeSettings.htm
Obviously you're using an old NetTalk version, so some of the settings won't be on your version, but the ones you see should be in the doc.
Cheers
Bruce
https://www.capesoft.com/docs/NetTalk14/NetWebRuntimeSettings.htm
Obviously you're using an old NetTalk version, so some of the settings won't be on your version, but the ones you see should be in the doc.
Cheers
Bruce