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 - Bruce

Pages: 1 [2] 3 4 ... 716
16
Web Server - Ask For Help / Re: p_web.CreateMedia and loc:extra don't work
« on: February 16, 2023, 01:00:20 AM »
you'll need to be more specific about what line you're editing in what module ?

17
Web Server - Ask For Help / Re: Telephone field?
« on: February 14, 2023, 11:21:44 PM »
>> Telephone field what is it? or how does it work?

it's an HTML input type. See
https://www.w3schools.com/tags/att_input_type_tel.asp

I see it now take a "pattern" option - which is something you can add, and something I'll play with a bit to see how it functions, with a view to adding it to the templates.

Aside: In my experience telephone patterns are a bad idea - feel free to test yours with my phone number
+27 87 828 0123

I've come across a lot of sites that reject this because they impose local phone number formatting on non-local phone numbers.
you might find this blog post (and related posts) insightful.
https://blog.insycle.com/phone-number-formatting-crm#the-anatomy-of-phone-number-formats

Cheers
Bruce

18
>> I prefer to 'hand code' these sorts of things,

why?

19
In S3reve Document is a Footer procedure.
this contains   
p_web._Sendfile(loc:fileName)

If you want to delete the file after sending it, then by all means add code in here after that call.

As Rene notes, if your filename starts with $$$ then the file is deleted for you by _sendfile.

Cheers
Bruce

20
fixed for 12.55

21
Web Server - Ask For Help / Re: p_web.CreateMedia and loc:extra don't work
« on: February 12, 2023, 11:20:16 PM »
fixed for 12.55

22
Web Server - Ask For Help / Re: Draw (Graph) crashes my web server
« on: February 10, 2023, 05:53:49 AM »
>> But this all seems rather fragile.  It would be nice to have an option to tell Draw where to do its thing and not to encounter some servers where it can't make its temp folder work.

I concur, but for now you'd need to change the code inside draw.clw to do that.

The draw object inside Insight is a pointer, so it's tricky to override a method in a a composited class like this. Do'able, but risky.

For now modifying the code in draw.clw seems like the way to go.

Cheers
Bruce

23
Hi Richard,

#1 - you can test by stopping the process, deleting the certificate, and rebooting the machine.

#2 - yes

Cheers
Bruce

24
Are you compiling in LIB mode or DLL mode?
If LIB mode switch to DLL mode, and let me know what happens...

Cheers
Bruce

25
Web Server - Ask For Help / Re: _utfdecode in NetWeb.CLW
« on: January 18, 2023, 09:03:25 AM »
noted, thanks Bill.

this looks like old code that needs to be updated to use StringTheory anyway, but I'll deal with that separately.

Cheers
Bruce

26
Web Server - Ask For Help / Re: To control FileDownload
« on: January 18, 2023, 09:00:27 AM »
As I recall offhand, Serve document is a NetWebPage.
loc:alert is not a "thing" in that context as I recall.

personally I wouldn't bother to reply to the user, I'd just send back "nothing".

Since presumably the request is illegal anyway.

Cheers
Bruce

27
Web Server - Ask For Help / Re: To control FileDownload
« on: January 17, 2023, 09:59:39 PM »
Yeah, Osa's one is better because it deals directly with the file extension.

Richard, I'm not sure what your one does, because you're using CONTENTS which I don't think does what you think it does.
Plus (I think?) you are searching the whole name for .Doc, not limiting to the extension.

Osa - bear in mind that there are likely to be graphic files on your computer which are not for public consumption. So I think I'd add some sort of folder test in there as well to limit the folders it can serve from.
And also eliminate any file names that contain .\ or ..\ in them.

cheers
Bruce


28
the result of the ajax request must be valid XML.

You can inspect the returning value in your browser console, in the network tab. If there's no option there to validate the xml, then copy the xml to a text file (say a.xml) and open that in the Clarion IDE. There's an XML menu, with a Validate option there (if the opened file has an XML extension.)

the most common issues are ;
a) embedded HTML which is not also XML
b) the ID of the browse is not correct in the incoming XML. This can be because of procedure nesting (and you will likely need to liaise with me at that point.)

Cheers
Bruce

29
fixed in 12.54

30
Web Server - Ask For Help / Re: (Nettalk) Webserver security?
« on: January 10, 2023, 07:58:41 PM »

>> Now network folks want to install a physical firewall (fortigate) and software called MalwareBytes to filter out "bad requests"

Anyone who has watched their (public) web server for more than a few minutes will see that it's constantly being bombarded with requests that are clearly malicious. None of them do anything (because they're targeted at specific vulnerabilities in specific server software) but they happen all the time. If someone wants to filter those out, there's no harm in that.

>> and limit the requests only to certain ip-addresses (which is max. 25 in this case, but some don't have guaranteed fixed addresses).

This is a feature that sounds good on paper, but may end up being useless later on. But there's no real harm in turning it on, and then later deciding to turn it off if necessary.

>> Personally I think they are introducing a lot of costs for the client (fortigate)

That's the client's issue, not yours. The client has contracted with these Network folks, and can either take their advice or ignore it. It's not your money, so you don't need to worry. If the client asks you about it respond honestly. ("The server is secure, but there are no guarantees in life".)

>> and quite a lot of hassle to keep the ip-addresses up to date

presumably the Network folks will maintain this list, and they'll either decide it's too much hassle, or they won't.

>> (I know that I'm the one getting the first support calls when an ip-number has changed and traffic blocks ...)

Sure, and you just politely redirect the call to the network folks. If the client can't connect it's their problem anyway.

In my opinion you should stick to "your lane". The network folks are in charge of the network. Let them do their job. You want them onside. If they want your opinion, or the client wants your opinion, then they will ask you. If they want to know more about the server then there are ways to do that. But fighting network folk just means they aren't inclined to help you, and if something (anything, anywhere) breaks, suddenly it's your job to fix it.

So my advice; don't fight this - just smile.

Cheers
Bruce

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