NetTalk Central

Recent Posts

Pages: 1 ... 7 8 [9] 10
81
Web Server - Ask For Help / Re: Errors after upgrade to NT 14.27
« Last post by Poul Jensen on October 01, 2024, 10:10:53 PM »
Thanks Alberto, that was it.

I thought I had upgraded all Capesoft products, but Stringtheory slipped under the radar :-)
82
Web Server - Ask For Help / Re: Errors after upgrade to NT 14.27
« Last post by Alberto on October 01, 2024, 12:49:08 PM »
Hi, you need to upgrade StringTheory
83
Web Server - Ask For Help / Errors after upgrade to NT 14.27
« Last post by Poul Jensen on October 01, 2024, 11:16:43 AM »
Hi,

I am getting these compile errors:
No matching prototype available - D:\Clarion11\Accessory\libsrc\win\NetMaps.Clw:3605,27
Field not found: FLEXPOLYLINEDECODE - D:\Clarion11\Accessory\libsrc\win\NetMaps.Clw:3605,9

This points to this procedure:
NetMapsHEREPlatform.ParseCalcRouteReplyJSON Procedure(StringTheory pReply)

I do not use any HEREmaps in this app.
Another app give same errors.

What to do?

Cheers
/Poul
84
C10?  Guess you like skinny templates ;)
Are you on NT 14, I hope?

Revised example C10/NT14 attached.

My code in the webhandler (line 14288 in p_web.SendFile procedure) looks for both procedure name and page name as specified on the procedure template.  Forced to lower-case a few lines above.

Code in this example is:

        case loc:filename
            of 'johan' orof 'johanpage'
            orof 'john' orof 'johnpage'
                p_web.trace('case triggered')
                p_web.SendError (404,'The page cannot be found', 'The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.')
                return
        end !case   


Seems to work OK.

Cheers,

Jane

85
Hi Jane

thanks!

Unfortunately I'm still on C10, so could not open the example you so kindly created.
It was an idea I had to consider and pursue, and with your suggestion and example it seems like it's a good plan.

Any chance of posting the code and where to pop it in to the webhandler procedure.


thanks

Johan
86
Web Server - Ask For Help / Re: Settings for making web procedures not visible/accessible
« Last post by Jane on September 30, 2024, 12:12:24 PM »
Quote
Something I have not looked at,
is to add code to serve "page not found" HTML

Fairly easy to do with a few lines of code in the webhandler.
Maybe something like the attached? 

(Bruce page will serve, Johan and John pages will 404.)
87
Hi Ron,

Just to add,

There really are 3 situations,

Login required - Pops the login page
Only serve if true - This procedure or page might be embedded on another procedure/page , so if false, send the blank, however it is a valid procedure, but only if certain conditions are met.
Hide - Send "page not found"

Something I have not looked at,
is to add code to serve "page not found" HTML

regards

Johan

88
Hi Ron

Thanks for info and suggestions,
Deleting them not an option,
as some might be work in progress and will be in next release, or some have been taken out of production, but I still want to keep the code in the app.

Yes, chances are that the names won't be guessed, but they can be, especially if they were in production and now have been taken out.

Currently what I am seeing is a blank browser screen, so it looks like a valid URL but with no data.

Ideally would like to display an error msg , "page not found"
So even if the procedure is there, it's invalid and not available




thanks

Johan







89
Hi Bruce

Have you had a chance to investigate my challenge?

/Niels
90
Johan,
Not sure what you are trying to accomplish.  There is a global setting for user must be logged in as well as at the procedure level. eg You can't have to be logged in in order to Log In. Why don't you delete the procedures that are not used?  I doubt if someone would guess the name of a procedure not being called and be able to call it.  If you don't want to delete procedures and don't want them to be called why don't you give those procedures a Sec Level that WILL NEVER EXIST  - maybe -101? 
Ron
Pages: 1 ... 7 8 [9] 10