NetTalk Central

Show Posts

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.


Messages - JohanR

Pages: 1 [2] 3 4 ... 23
16
Hi,

Using the source generated by the example app and my app, something is triggering an extra IF in my app,
This line is not generated in the example

      If (p_web.Site.LoginRequired = false or p_web.GetSessionLoggedIn() = true)

points to this line in the template
      p_web.Trace('zaq==: 1=(%SecwinCtrlsDisplayProcedure)2=(%nLoginRqd)3=(%nLevelRqdUp)4=(%nLevelRqd)5=(%SecwinAccessCtrlsGroupN)6=(%TMPPutEndBecauseIf)')

      #insert(%HandleLoginCodeLevel2,%SecwinCtrlsDisplayProcedure,%nLoginRqd,0,%nLevelRqdUp,%nLevelRqd,%SecwinAccessCtrlsGroupN,'',''),%TMPPutEndBecauseIf

      p_web.Trace('zaq-2')


Below the differences, not sure, but seems that this could be the issue.
Trying to figure out what is causing it or how the security logic is different between the 2 apps

Will post if I find something

thanks for your help so far

Johan



example app
      p_web.Trace('zaq-1')
      p_web.Trace('AA-p_web.Site.LoginRequired:' & p_web.Site.LoginRequired)   
      p_web.Trace('zaq==: 1=(AliasBrowseControl)2=(0)3=()4=()5=()6=(0)')
      p_web.Trace('zaq-2')
            loc:ColumnResizeable = p_web.site.BrowseColumnsResizeable
            packet.append(p_web.CreateBrowseHeader(loc:vordernumber,'1','AliasBrowseControl',p_web.Translate('Name',(Net:HtmlOk*0)+(Net:UnsafeHtmlOk*0)),'Click here to sort by Name',,,p_web.Combine(),1, loc:columns+1 ,,,0,loc:Sorting,'String','nt-left',loc:LayoutMethod,' style=" width:'&clip('auto')&';" title="'&p_web.jsok('Click here to sort by Name')&'" data-colname="'&clip('ALI:Name')&'"',loc:CellStarted,0 + 1, loc:ColumnResizeable))

my app
      p_web.Trace('zaq-1')
      p_web.Trace('AA-p_web.Site.LoginRequired:' & p_web.Site.LoginRequired)   
      p_web.Trace('zaq==: 1=(test_client_list)2=(-1)3=()4=()5=()6=(0)')
      If (p_web.Site.LoginRequired = false or p_web.GetSessionLoggedIn() = true)
      p_web.Trace('zaq-2')
            loc:ColumnResizeable = p_web.site.BrowseColumnsResizeable
            packet.append(p_web.CreateBrowseHeader(loc:vordernumber,'1','test_client_list',p_web.Translate('client nr',(Net:HtmlOk*0)+(Net:UnsafeHtmlOk*0)),'Click here to sort by client nr',,,p_web.Combine(),1, loc:columns+1 ,,,0,loc:Sorting,'String',,loc:LayoutMethod,' title="'&p_web.jsok('Click here to sort by client nr')&'" data-colname="'&clip('cli:client_nr')&'"',loc:CellStarted,0 + 1, loc:ColumnResizeable))


the template code




17
Hi Alberto

Apologies, should have been one of the 1st things I mentioned
Yes, also 14.13

That case will scratch further to try and understand what's going on

regards

Johan

18
Hi Bruce

Was easier to attach a pic showing the settings.
My understanding is that the global can be set to "user must be logged in"

but to make a procedure public I can set those to "User must be logged in - NO"

If the global default on security tab is set to "user must be logged IN" and the local(procedure) setting is NO, then the browse loads, but no data is loaded.

Johan







Johan


19
Hi Bruce,

thanks, just found that if I switch off the global setting for user must be logged in then it generates,
even if local settings are set to not require log in,
still testing and investigating

perhaps there were some changes to this area?

thanks

Johan

20
Hi,

Having an issue with a NTWS browse procedure not generating anything on the page
The log from debugview is attached

My thinking is that something is generating something funky somewhere

Any ideas appreciated of how to track this down?

thanks

Johan


 

21


OOps :)


22
E-Mail - Ask For Help / Re: Gmail send issue after upgrading to Nettalk 14
« on: September 28, 2023, 07:10:30 AM »
Hi,

OK managed to send an email to Postmark using the NT demo.exe after I copied the INI setting file from my dev machine to the server.
As far as my problem sending Postmark mail it seems as if there are some settings I need to fix.

Will try same with gmail now.


Johan

23
Hi,

Thought this might be worth some feedback as it seems to be working quite nicely

Part of my NTWS is serving pure static pages, using the tags as per the manual
<!-- NetWebServer -->
<!-- Net:c:Head -->
<!-- Net:c:BodyEnd -->

On one of the pages I embedded a form, with only a button that call a popup form.
I something to manage and trigger the popup, and that's why I used 2 forms.
One to embed and call the popup form.

See attached pic.
What is quite nice is that the action and display of the popup form cover the static page and the effect is seamless.

Not something special, just a nice simple illustration of a mix of static and dynamic procedures

cheers,
Johan
 












24
E-Mail - Ask For Help / Re: Gmail send issue after upgrading to Nettalk 14
« on: September 28, 2023, 01:38:06 AM »
Hi Bruce

Just worried that my error and the gmail error originally reported could be separate issues

Have checked my settings and they are identical, on dec machine it works, in server it fails
Below my settings, will continue to check for differences in the environment.

My gmail problem did not even reach ErrorTrap, once I solve the PostMark problem will check the gmail issue again.

147   11:19:33.120   5248   xtvcweb.exe   [TVCWEB] - Sendmail - tvcmail.debug#########################
148   11:19:33.120   5248   xtvcweb.exe   [TVCWEB] - Sendmail - tvcmail.SSL:1
149   11:19:33.120   5248   xtvcweb.exe   [TVCWEB] - Sendmail - tvcmail.SecureEmailStartTLS:1
150   11:19:33.120   5248   xtvcweb.exe   [TVCWEB] - Sendmail - tvcmail.SSLCertificateOptions.CertificateFile:
151   11:19:33.120   5248   xtvcweb.exe   [TVCWEB] - Sendmail - tvcmail.SSLCertificateOptions.PrivateKeyFile:
152   11:19:33.120   5248   xtvcweb.exe   [TVCWEB] - Sendmail - tvcmail.SSLCertificateOptions.CARootFile:c:\clariondataserver\certs\CA Roots\ca_roots.pem
153   11:19:33.120   5248   xtvcweb.exe   [TVCWEB] - Sendmail - tvcmail.SSLMethod:-1
154   11:19:33.120   5248   xtvcweb.exe   [TVCWEB] - Sendmail - tvcmail.SSLCertificateOptions.DontVerifyRemoteCertificateWithCARoot:0
155   11:19:33.120   5248   xtvcweb.exe   [TVCWEB] - Sendmail - tvcmail.SSLCertificateOptions.DontVerifyRemoteCertificateCommonName:1
156   11:19:33.120   5248   xtvcweb.exe   [TVCWEB] - Sendmail - tvcmail.SecureEmailStartTLS:1
157   11:19:33.120   5248   xtvcweb.exe   [TVCWEB] - Sendmail - tvcmail.AuthUser:90c7d4c2-e811-******************
158   11:19:33.120   5248   xtvcweb.exe   [TVCWEB] - Sendmail - tvcmail.AuthPassword:90c7d4c2-e811-*************************
159   11:19:33.120   5248   xtvcweb.exe   [TVCWEB] - Sendmail - tvcmail.Server:smtp.postmarkapp.com
160   11:19:33.120   5248   xtvcweb.exe   [TVCWEB] - Sendmail - tvcmail.Port:25
161   11:19:33.120   5248   xtvcweb.exe   [TVCWEB] - Sendmail - tvcmail.debug#########################
162   11:19:33.464   5248   xtvcweb.exe   tvceml SMT:Progress : 0 : 1000
163   11:19:33.464   5248   xtvcweb.exe   [NetDLL] [5] RunTimeLoadProcedures_TLS
164   11:19:33.761   5248   xtvcweb.exe   tvceml SMT:Progress : 0 : 1000
165   11:19:34.042   5248   xtvcweb.exe   tvceml SMT:Progress : 0 : 1000
166   11:19:34.261   5248   xtvcweb.exe   tvceml SMT:Progress : 0 : 1000
167   11:19:34.323   5248   xtvcweb.exe   tvceml SMT:Progress : 0 : 1000
168   11:19:34.620   5248   xtvcweb.exe   [st][6] [netTalk][thread=6] NetSimple._CallErrorTrap - Error = -69 = The requested connection to smtp.postmarkapp.com could not be opened. The Open command timed out or failed to connect : The SSL Remote Certificate Failed Verification Function = NetSimple.TakeEvent Server = smtp.postmarkapp.com Port = 25
169   11:19:34.620   5248   xtvcweb.exe   [st][6] [netTalk][thread=6] NetSimple.ErrorTrap -69 The requested connection to smtp.postmarkapp.com could not be opened. The Open command timed out or failed to connect NetSimple.TakeEvent
170   11:19:34.620   5248   xtvcweb.exe   [st][6] [netTalk][thread=6] NetSimple.ErrorTrap - <no display> Error = -69 = The requested connection to smtp.postmarkapp.com could not be opened. The Open command timed out or failed to connect : The SSL Remote Certificate Failed Verification Function = NetSimple.TakeEvent Server = smtp.postmarkapp.com Port = 25
171   11:19:34.620   5248   xtvcweb.exe   [st][6] [netTalk][thread=6] NetEmailSend.ErrorTrap (Email (SMTP)) - This error was so bad we need to delete all records from DataQueue and abort the connection
172   11:19:34.620   5248   xtvcweb.exe   [TVCWEB] - Sendmail - errorStr:The requested connection to smtp.postmarkapp.com could not be opened. The Open command timed out or failed to connect
173   11:19:34.620   5248   xtvcweb.exe   [TVCWEB] - Sendmail - tvcmail.debug ERROR #########################
174   11:19:34.620   5248   xtvcweb.exe   [TVCWEB] - Sendmail - errorStrThe requested connection to smtp.postmarkapp.com could not be opened. The Open command timed out or failed to connect
175   11:19:34.620   5248   xtvcweb.exe   [TVCWEB] - Sendmail - tvcmail.debug#########################
176   11:19:34.839   5248   xtvcweb.exe   tvceml SMT:Progress : 0 : 1000
177   11:19:35.173   5248   xtvcweb.exe   [st][5] [netTalk][thread=5] NetSimple._CallErrorTrap - Error = -69 = The requested connection to smtp.postmarkapp.com could not be opened. The Open command timed out or failed to connect : The SSL Remote Certificate Failed Verification Function = NetSimple.TakeEvent Server = smtp.postmarkapp.com Port = 25
178   11:19:35.173   5248   xtvcweb.exe   [st][5] [netTalk][thread=5] NetSimple.ErrorTrap -69 The requested connection to smtp.postmarkapp.com could not be opened. The Open command timed out or failed to connect NetSimple.TakeEvent
179   11:19:35.173   5248   xtvcweb.exe   [st][5] [netTalk][thread=5] NetSimple.ErrorTrap - <no display> Error = -69 = The requested connection to smtp.postmarkapp.com could not be opened. The Open command timed out or failed to connect : The SSL Remote Certificate Failed Verification Function = NetSimple.TakeEvent Server = smtp.postmarkapp.com Port = 25
180   11:19:35.173   5248   xtvcweb.exe   [st][5] [netTalk][thread=5] NetEmailSend.ErrorTrap (Email (SMTP)) - This error was so bad we need to delete all records from DataQueue and abort the connection
181   11:19:35.173   5248   xtvcweb.exe   [TVCWEB] - Sendmail - errorStr:The requested connection to smtp.postmarkapp.com could not be opened. The Open command timed out or failed to connect
182   11:19:35.173   5248   xtvcweb.exe   [TVCWEB] - Sendmail - tvcmail.debug ERROR #########################
183   11:19:35.173   5248   xtvcweb.exe   [TVCWEB] - Sendmail - errorStrThe requested connection to smtp.postmarkapp.com could not be opened. The Open command timed out or failed to connect
184   11:19:35.173   5248   xtvcweb.exe   [TVCWEB] - Sendmail - tvcmail.debug#########################



25
E-Mail - Ask For Help / Re: Gmail send issue after upgrading to Nettalk 14
« on: September 27, 2023, 11:48:51 PM »
Hi Bruce

Yes, all good on my server. The fetch worked

Would this indicate that correct exe and libs are being used and that it could be a parameter issue?

eg.
                           tvcmail.SecureEmailStartTLS
                           tvcmail.SSLCertificateOptions.CertificateFile
                           tvcmail.SSLCertificateOptions.PrivateKeyFile
                           tvcmail.SSLCertificateOptions.CARootFile
                           tvcmail.SSLMethod
                           tvcmail.SSLCertificateOptions.DontVerifyRemoteCertificateWithCARoot
                           tvcmail.SSLCertificateOptions.DontVerifyRemoteCertificateCommonName
                           tvcmail.SecureEmailStartTLS

thanks

Johan


26
E-Mail - Ask For Help / Re: Gmail send issue after upgrading to Nettalk 14
« on: September 27, 2023, 09:48:04 PM »
Hi Richard

I have the same issue, and switched to Postmark to send, I was using both services anyway.

However, on my dev machine (win10) it works but I have an SSL issue with postmark on my production server (server2012)
So am thinking it could be related to Gmail issue, will try to see if there is a way to check all the SSL file versions that are being used.


Johan


27
Hi,

Method I've implemented,

Embed a procedure on my static pages containing a single button, "Contact Us" 

this button calls a popup window with all relevant fields on it
a) Slider "to make sure human"
b) email address
c) email body
d) Send Button

Not even sure the slider is needed, as the popup window can only be called via the button?

regards

Johan





 

28
Web Server - Ask For Help / How to secure an email form on public website?
« on: September 25, 2023, 01:01:25 AM »
Hi

Looking for any tips/methods to add an NT en email form to a static web page.

Not the capturing and sending of the mail info, but what are good ways to secure this page to prevent spamming or other issues.

One thought I had was to add my own version of captcha
eg.
display random nr and request the user to slide a slider to that nr before displaying the entry fields?

key here is to make it as easy as possible for the user

Any info appreciated

thanks

Johan






29
Hi,

If anyone else is using Google API, this might affect the billing, still investigating this.
I have implemented Google address and been testing it and currently working on refining and see how to improve the user experience.

To find an address it can consist of several calls to Google Autocomplete, this will return a list of possibles.
If the user picks an address then a call is made to Google PlacesDetails which will then return specific info for that address, including the critical required postal code and plus code.

However I found this in the docs this morning and still looking into it.
If I understand it correctly every call will be billed, unless it's wrapped in a sessiontoken ID, which will result in one billing once a call is made to Google PlacesDetials.

As we have been spoilt, a call to stringhteory seems to generate an ID in the correct format.
str.MakeGuid4()

If anyone else has implemented Google search, would appreciate any feedback, I will look into over the weekend and report back as well.


Johan





https://developers.google.com/maps/documentation/places/web-service/autocomplete

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sessiontoken
A random string which identifies an autocomplete session for billing purposes.

The session begins when the user starts typing a query, and concludes when they select a place and a call to Place Details is made. Each session can have multiple queries, followed by one place selection. The API key(s) used for each request within a session must belong to the same Google Cloud Console project. Once a session has concluded, the token is no longer valid; your app must generate a fresh token for each session. If the sessiontoken parameter is omitted, or if you reuse a session token, the session is charged as if no session token was provided (each request is billed separately).

We recommend the following guidelines:

Use session tokens for all autocomplete sessions.
Generate a fresh token for each session. Using a version 4 UUID is recommended.
Ensure that the API key(s) used for all Place Autocomplete and Place Details requests within a session belong to the same Cloud Console project.
Be sure to pass a unique session token for each new session. Using the same token for more than one session will result in each request being billed individually.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


30
Hi,

Received the update folder error,
netweb.js file is version 14.00 in the libsrc folder after installing 14.01,
to temp fix I changed the version nr to 14.01

Assuming it's just a sync problem with the version nrs.
 

Johan

Pages: 1 [2] 3 4 ... 23