[naviserver-devel] MinGW Compile error

2014-12-15 Thread Maksym Zinchenko
Hello, I'm trying to compile Naviserver 4.99.6 with MinGw/Msys but getting an error while run make command: c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -ltcl86 collect2.exe: error: ld returned 1 exit status make[1]:*** [libnsthread.dll] Error 1 I'm running

[naviserver-devel] Naviserver crashing while loading chilkat library

2019-12-25 Thread Maksym Zinchenko
Hello, merry Christmas. Im trying to load chilkat (https://www.chilkatsoft.com/tcl.asp) extention to my naviserver, from global tcl libraries folder. Basically I have a simple tcl file in tcllib folder (/opt/ns/tcl) which says load /usr/share/tcltk/chilkat/chilkat.so, but its crashing my server at

[naviserver-devel] Naviserver 4.99.19

2020-01-08 Thread Maksym Zinchenko
Hello everyone, I have a question about latest "Naviserver". After updating to 4.99.19, I have 2 process running, one from root and another my "Naviserver" user nsadmin for example: ps -aux | grep nsd root 1441 0.0 0.0 14272 2960 ?Ss 13:48 0:00 /opt/ns/bin/nsd -w -u nsadmi

[naviserver-devel] Naviserver Error: Command called outside of schema context

2020-02-28 Thread Maksym Zinchenko
Hello everybody, im getting this error after updating to tDOM 0.9.2 from http://tdom.org/index.html/info/7ecc6a8e29f80b6d I have latest compiled NaviServer from bitbucket :Command called outside of schema context :while executing :"namespace export" :(in namespace eval "::t

Re: [naviserver-devel] Bug in bitbucket-install.tcl?

2020-03-11 Thread Maksym Zinchenko
I think few weeks ago all repositories have been migrated, because Bitbucket ended support of Mercurial, so there is no tip branch. On Wed, Mar 11, 2020 at 2:59 PM Christopher Chase wrote: > Hi All, > > I've just started experimenting with NaviServer after getting into Tcl. > I've successfully c

[naviserver-devel] Multiple file input

2020-03-11 Thread Maksym Zinchenko
Hello, I have an html5 form with multiple file input. Command ns_getformfile returns only one tmp file, may be changing it to something like that will be better? proc ns_getformfile {name} { set form [ns_getform] if {[ns_set find $form $name.tmpfile] > -1} { return [ns_querygetall $name.tm

Re: [naviserver-devel] Registering/Allowing request method HTTP PUT

2020-05-24 Thread Maksym Zinchenko
:12-] [0m [0;39mNotice: Running TCL script users/edit [0m Check your logs if naviserver reads /tcl/http-handlers-init.tcl. Your path to scripts etc. Its something with your installation Cmpts.: Maksym Zinchenko On Sat, May 23, 2020 at 7:22 PM wrote: > Hi there, > In attempt to regis

Re: [naviserver-devel] Registering/Allowing request method HTTP PUT

2020-05-24 Thread Maksym Zinchenko
[24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: bootstrap > begin encoding utf-8 > [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: Bootstrap: > sourcing > /var/www/iurix/packages/acs-bootstrap-installer/tcl/00-proc-procs.tcl > [24/May/2020:18:30:06][30098.7ef

Re: [naviserver-devel] What to do when [ns_base64encode] doesn't encrypt properly after the 63rd char?

2020-05-24 Thread Maksym Zinchenko
sourcecode/nsd/uuencode.c maybe On Sun, May 24, 2020 at 11:23 PM Iuri de Araujo Sampaio wrote: > Hi there, > > It looks like *[ns_base64encode]* generates a wrong payload when message > size contains more than 63 characters. > > > https://tools.ietf.org/html/rfc4648#section-5 > > An alternative

Re: [naviserver-devel] What to do when [ns_base64encode] doesn't encrypt properly after the 63rd char?

2020-05-24 Thread Maksym Zinchenko
#x27;, 'iat': 1590365650} On Sun, May 24, 2020 at 11:56 PM Maksym Zinchenko wrote: > sourcecode/nsd/uuencode.c maybe > > On Sun, May 24, 2020 at 11:23 PM Iuri de Araujo Sampaio > wrote: > >> Hi there, >> >> It looks like *[ns_base64encode]* generates a wr

Re: [naviserver-devel] What to do when [ns_base64encode] doesn't encrypt properly after the 63rd char?

2020-05-24 Thread Maksym Zinchenko
/base64url_encoding.asp On Mon, May 25, 2020 at 12:08 AM Maksym Zinchenko wrote: > What do you mean its not encoded correctly? > > ns_base64decode > eydpc3MnOiAnMjY5NzM0MTAwMDAxMDInLCAnYXVkJzogJ2l1cml4LmNvbS9SRVNUJywgJ3N1Yic > 6ICc3MDQnLCAnaWF0JzogMTU5MDM2NTY1MH0= > {'iss&#

Re: [naviserver-devel] using rwlocks for nsv variables

2020-06-30 Thread Maksym Zinchenko
Hello,first of all thank you for great work. If I understood correctly on compile time we need to provide a configuration option to compile NaviServer with mutex or rwlocks, so option b sounds good and more than enough. Default is rwlocks. Correct me if I'm wrong. On Tue, Jun 30, 2020 at 7:56 PM

[naviserver-devel] Host based virtual hosts

2020-07-04 Thread Maksym Zinchenko
Hello, I'm trying to set up host based virtual hosts with naviserver but I can't understand it easily or correctly. so what i'm trying to accomplish: I have one big dedicated server, and i'm moving all my VPS's to it. So Ive created the main config file /opt/ns/conf/dz_nsd.tcl, subdirectory/opt/ns/

Re: [naviserver-devel] Host based virtual hosts

2020-07-04 Thread Maksym Zinchenko
### > ns_section "ns/servers" > ns_param xotcl "Old XOTcl Web Site" > > ns_section ns/module/nssock/servers > ns_param xotcl xotcl.org > ns_param xotcl www.xotcl.org > > ns_section ns/server/xotcl > ns_param minthreads 2 &

Re: [naviserver-devel] Host based virtual hosts

2020-07-08 Thread Maksym Zinchenko
OMG, Gustaf you are amazing, I just saw last commit with SNI (Server Name Indication (SNI. Thank you On Sat, Jul 4, 2020 at 7:55 PM Gustaf Neumann wrote: > > On 04.07.20 21:08, Maksym Zinchenko wrote: > > So now im facing this issues: > > 1) Some of the domains are not mine

Re: [naviserver-devel] Host based virtual hosts

2020-07-08 Thread Maksym Zinchenko
Thank you, very much. I'm going to implement it right now. On Wed, Jul 8, 2020 at 2:29 PM Gustaf Neumann wrote: > Dear Maksym, > > > So, for the time being, we have no such support in NaviServer. > > With the commit [1], i've added the first draft for server-side SNI > to NaviServer. It is not

Re: [naviserver-devel] TDBC question

2020-08-15 Thread Maksym Zinchenko
code, may be use dict, for example when you run query get resul as a dict in format "column_name" "value" etc. Im pretty sure it has nothing to do with TDBC or Naviserver. Maksym Zinchenko On Sat, Aug 15, 2020 at 7:54 PM THORPE MAYES via naviserver-devel < naviserver-deve

[naviserver-devel] CMD exec, CMD 1row,CMD select

2020-09-06 Thread Maksym Zinchenko
Hello, I have a lot of lines in my logs like: CMD exec: expire> (none) CMD select: (string) CMD 1row: (none) I've searched my code, but it looks like it's not mine :) Where do I switch off this sql logging? Thanks _

Re: [naviserver-devel] CMD exec, CMD 1row,CMD select

2020-09-06 Thread Maksym Zinchenko
Ok, but now its giving me compilation error in nsd: /usr/bin/ld: libnsd.so: undefined reference to `NsTclCryptoScryptObjCmd' What i'm doing wrong? On Sun, Sep 6, 2020 at 11:26 AM Gustaf Neumann wrote: > On 06.09.20 12:00, Maksym Zinchenko wrote: > > Hello, I have a lot

[naviserver-devel] nsstats.tcl

2020-10-14 Thread Maksym Zinchenko
Hello, I've updated Naviserver from the latest commit in bitbucket and nsstats.tcl stopped authenticating me with plain authentication. I've checked and noticed that "ns_conn authpassword" and "ns_conn *authuser*" return empty values. Is it a bug ? ___ na

[naviserver-devel] ns_conn auth

2020-11-21 Thread Maksym Zinchenko
Hello, hope you are doing well. I have a little question. Maybe a bug, would be so kind to help me out. According to documentation [ns_conn auth] should return all authorization headers as a ns_set. It works fine when using "Basic Authentication scheme", i've seen in the source code it should work

Re: [naviserver-devel] ns_conn auth

2020-11-21 Thread Maksym Zinchenko
quot;Bearer $token" > … > ns_respond -status $status -type "application/json" -headers $headers > -string $response > ad_script_abort > > > That chunk is part of a JWT/login authentication API method. However, > that’s very basic, and probably I haven’t und

Re: [naviserver-devel] ns_conn auth

2020-11-21 Thread Maksym Zinchenko
ypes are enumerated > in the C code. > > I've added a sensible result for the "Bearer" Authorization to bitbucket. > > all the best -g > > > > On 21.11.20 17:59, Maksym Zinchenko wrote: > > Hello, hope you are doing well. > I have a little ques

[naviserver-devel] ns_quotehtml

2021-01-09 Thread Maksym Zinchenko
Hello everyone, may someone confirm that ns_quotehtml works as it should, because on my system its not: Command: ns_quotehtml {} Result: Thank you in advance ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourcef

Re: [naviserver-devel] ns_quotehtml

2021-01-10 Thread Maksym Zinchenko
at, Jan 9, 2021 at 5:44 PM Gustaf Neumann wrote: > > On 09.01.21 19:01, Maksym Zinchenko wrote: > > Hello everyone, may someone confirm that ns_quotehtml works as it should, > because on my system its not: > > Command: ns_quotehtml {} > Result: > > What is

Re: [naviserver-devel] SNI virtual hosting

2021-01-17 Thread Maksym Zinchenko
Hello, all config files are TCL scripts, so I have in my main "conf" folder a folder called "servers". My main nsd configuration file like this: ~~~tcl ... set servers [glob -directory [file join /opt/ns/conf/ servers] *] ... ns_section "ns/module/nsssl" {

Re: [naviserver-devel] ns_quotehtml

2021-01-17 Thread Maksym Zinchenko
interpretations won't > happen anymore. > > all the best -gn > On 10.01.21 11:40, Maksym Zinchenko wrote: > > :) Sorry false alert, my bad. Due to lack of coffee and some good sleep, I > was testing some procs in "nsshell", and of course browser rendering > esc

Re: [naviserver-devel] Recommended approach to building Naviserver on Windows?

2021-03-04 Thread Maksym Zinchenko
Hello. I've managed to compile Naviserver 4.99.20 64bits on Windows 10 with Visual Studio 2019 (Express), used 8.6 Tcl sources and PostgreSQL, had some problems with OpenSSL 1.1.1, but I'm not really good at it. But it's doable. Cheers Maksym On Thu, Mar 4, 2021 at 9:57 AM Brian Fenton wrote: >

Re: [naviserver-devel] Recommended approach to building Naviserver on Windows?

2021-03-04 Thread Maksym Zinchenko
I did something like: Compile Tcl 8.6.11 -- 1. Download sources and extract to D:\NSWIN\SRC\tcl8.6.11 2. Run Visual Studio "x64 Native Tools Command Prompt for VS 2019" as Administrator 3. Change directory to D:\NSWIN\SRC\tcl8.6.11\win 4. nmake -f makefile.vc INSTALLDIR=C:\NS\T

Re: [naviserver-devel] Recommended approach to building Naviserver on Windows?

2021-03-04 Thread Maksym Zinchenko
As I remember naviserver needs zlib also, to support compression. I had some issues with that too, I used https://github.com/kiyolee/zlib-win-build this guy project to make it working. Cheers On Thu, Mar 4, 2021 at 4:05 PM Maksym Zinchenko wrote: > I did something like: > Compile Tcl

[naviserver-devel] Content-Type application/json request

2021-04-30 Thread Maksym Zinchenko
Hello, maybe it's obvious but I'm a little bit stuck in here. When I'm doing POST requests to Naviserver with Content-Type: application/x-www-form-urlencoded, I can use [ns_conn files] [ns_getform] to access data. How do I access Content-Type: application/json requests? For example if I'm sending J

Re: [naviserver-devel] Content-Type application/json request

2021-05-01 Thread Maksym Zinchenko
lain $dict\n > > } else { > ad_return_complaint 1 "unsupported HTTP method: [ns_conn method]" > } > > > Test: > curl --header "Content-Type: application/json" --request POST --data > '{"username":"x

[naviserver-devel] ns_getcontent UTF-8

2021-06-27 Thread Maksym Zinchenko
Hello everyone, I have a strange issue with UTF-8. Im sending AJAX request to Naviserver with defined UTF-8, this is part in my JS script. function send_POST(url, postedData, callbackf) { $.ajaxSetup({ contentType: "application/json; charset=UTF-8" }); I can see in console that value really UTF-8

[naviserver-devel] ns_charsets

2021-07-11 Thread Maksym Zinchenko
Hello,I'm having trouble with encodings, or maybe I don't understand something. My first question is: when I run *"ns_charsets*" command it will not return UTF-8 encoding in the list, why and what does it mean? The Second problem is: I'm trying to *"ns_return"* XML UTF-8 data from my RESTFull API r

Re: [naviserver-devel] ns_charsets

2021-07-12 Thread Maksym Zinchenko
Thank you for clarifications Gustaf, i'll check what's going on with my code. On Sun, Jul 11, 2021 at 5:00 PM Gustaf Neumann wrote: > > On 11.07.21 14:14, Maksym Zinchenko wrote: > > Hello,I'm having trouble with encodings, or maybe I don't understand > someth

[naviserver-devel] ns_cache question

2021-08-22 Thread Maksym Zinchenko
exists, if i run command again it shows 1 again. I dont know whats going on, may be you can advise me. Thank you Maksym Zinchenko ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver

[naviserver-devel] Fatal: received fatal signal 11

2021-09-25 Thread Maksym Zinchenko
Hello everyone, 2 latest commits are not letting me start naviserver. It just crashes without any log with message Fatal: received fatal signal 11. This one works fine: e11e014 Cheers. Maksym Zinchenko ___ naviserver-devel mailing list naviserver-devel

[naviserver-devel] Snit error

2021-10-27 Thread Maksym Zinchenko
rray set Snit_typemethodInfo {info {0 {::snit::RT.typemethod.info %t} {}} create {0 {::..." :invoked from within :"ns_ictl update" :(procedure "ns_cleanup" line 8) :invoked from within :"ns_cleanup" :while executing callba

[naviserver-devel] Buffer overflow detected

2021-11-04 Thread Maksym Zinchenko
Hi every now and then my server crashes with the last message in the log file *** Buffer overflow detected *** I would really appreciate if someone can point me in the right direction of debugging and figure out what's going on. Thank you Maksym Zinc

Re: [naviserver-devel] Buffer overflow detected

2021-11-06 Thread Maksym Zinchenko
https://openacs.org/forums/message-view?message_id=5537675 > [2] https://github.com/gustafn/munin-plugins-ns > [3] > > https://openacs.org/munin/localdomain/localhost.localdomain/naviserver_openacs_lsof.html > > On 04.11.21 21:17, Maksym Zinchenko wrote: > > Hi every now and then

[naviserver-devel] ns_returnfile return original file name

2022-07-15 Thread Maksym Zinchenko
Hello, I have a question about how to return the original file name. For example: ns_register_proc GET /dev/rtrn_file ::dev::rtrn_file proc rtrn_file {args} { set f [file join /tmp test.csv] ns_returnfile 200 [ns_guesstype "$f"] $f } When I do GET request I'm getting "rtrn_file.csv" instead of "

Re: [naviserver-devel] ns_returnfile return original file name

2022-07-19 Thread Maksym Zinchenko
filename=\"${filename}\"" > > for downloading and > > ns_set update [ns_conn outputheaders] Content-Disposition > "filename=\"${filename}\"" > > for viewing files > > > Am 15.07.22 um 16:50 schrieb Maksym Zinchenko: > > Hello, I

[naviserver-devel] nsshell

2023-01-06 Thread Maksym Zinchenko
Hello, I'm having trouble after update naviserver with shell, it shows > > <% # Get hostname without protocol (i.e. "localhost") set host [lindex > [split [ns_conn location] "/"] 2] set wsConfigPath "ns/server/[ns_info > server]/module/websocket/shell" set shConfigPath "ns/server/[ns_info > server

[naviserver-devel] Ns_conn location questions

2023-01-28 Thread Maksym Zinchenko
Hello, I have some questions about ns_conn location. According to manual "The location is determined via the following means: 1. if *ns_locationproc * is configured, its result is returned. 2. if virtual hosting is enabled,

Re: [naviserver-devel] Ns_conn location questions

2023-01-29 Thread Maksym Zinchenko
Thank you, I realised that it comes from my config < docker. Now I pass --hostname=${HOSTNAME} to docker run and set it up in nsd-config.tcl as set server [ns_info hostname] ns_section ns/module/nssock/servers { ns_param default${server} } About the second question, I didn't

Re: [naviserver-devel] Some questions about Docker images for Naviserver

2023-03-31 Thread Maksym Zinchenko
Hello, I'm using Docker Naviserver in production, but it's not a big one. I can recommend it. In my case I'm using only Naviserver, not OpenACS. I have some images on docker hub under siqsuruq/naviserver, it's not official, but they work for me. They are based on a custom ubuntu image I made with T

[naviserver-devel] NX and Naviserver init

2023-09-14 Thread Maksym Zinchenko
Hello, I've been struggling with a problem for a few days now. First I thought it's something with my understanding of NX, but I think its has to do something with Naviserver. I have a global library named "oodz" in my tcl folder, insideI have some subfolders with my NX classes. I have an init.tcl

Re: [naviserver-devel] NX and Naviserver init

2023-09-17 Thread Maksym Zinchenko
Hi Gustaf, thank you for your explanation and link. On Fri, Sep 15, 2023 at 9:19 AM Gustaf Neumann wrote: > Dear Maksym, > On 15.09.23 01:09, Maksym Zinchenko wrote: > > Hello, I've been struggling with a problem for a few days now. First I > thought it's something wi

[naviserver-devel] (no subject)

2024-03-04 Thread Maksym Zinchenko
I have a Naviserver with a couple of virtual web servers listening on a single ip:port. I want to move all those virtual servers to Docker containers gradually. So I'm trying to install Nginx Reverse Proxy on my Docker container and configure it to redirect requests to my host Naviserver. I've cha

Re: [naviserver-devel] (no subject)

2024-03-05 Thread Maksym Zinchenko
:nsssl:0-] [0m > [0;39mNotice: nsssl:0: listening on [172.17.0.1]:8443 [0m > [1;32m[05/Mar/2024:11:26:06][188117.7fdb03fff640][-driver:nsssl:0-] [0m > [0;39mNotice: driver: accepting connections [0m > [1;32m[05/Mar/2024:11:26:06][188117.7fdb12619840][-main:dummy1.daidze.org-] > [0m [0

Re: [naviserver-devel] (no subject)

2024-03-05 Thread Maksym Zinchenko
http requests. > > - check on your own if the results show a different picture > > - check the nginx logs, to see if the requests are really done to > different hosts. If needed add logging to nginx to see the backend used for > the proxy requests > > Regards, > Georg >

Re: [naviserver-devel] (no subject)

2024-03-05 Thread Maksym Zinchenko
r: [ns_conn peeraddr] > |ns_conn peer -source configured: [ns_conn peeraddr -source > configured] > |ns_conn peer -source direct: [ns_conn peeraddr -source direct] > > |ns_conn peer -source forwarded: [ns_conn peeraddr -source forwarded] > > }]] > > > >

Re: [naviserver-devel] (no subject)

2024-03-11 Thread Maksym Zinchenko
s: > nginx: > image: nginx:alpine > ports: > - 1000:80 > volumes: > - /opt/docker/nginx/conf.d:/etc/nginx/conf.d > depends_on: > - nsd > > nsd: > image: gustafn/naviserver:latest-alpine > container_name: nsd > resta

[naviserver-devel] Error on startup

2024-03-18 Thread Maksym Zinchenko
Hello, what can cause this errors, how can I get more information about, debug: Fatal: alloc: invalid block: 0x7fd5285e5670: 0 0 Fatal: received fatal signal 11 Thank you ___ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://l

Re: [naviserver-devel] Error on startup

2024-03-21 Thread Maksym Zinchenko
dules) or inconsistent usage of memory allocator options (e.g. > malloc libraries in use). > > One can obtain details what happened via debugging options during > compilation. > > -gn > > > On 18.03.2024, at 18:39, Maksym Zinchenko wrote: > > > > Hello, wha

Re: [naviserver-devel] ns_set reform

2024-11-22 Thread Maksym Zinchenko
Hello, thank you for hard work. And I think nobody using this commands any more. On Fri, 22 Nov 2024, 09:20 Gustaf Neumann (sslmail), wrote: > Dear all, > > From the previously state goals: > > > 1) all commands tested in the regression test should be documented > > 2) all documented command