From liam.gretton at leicester.ac.uk Sun May 15 11:41:33 2022 From: liam.gretton at leicester.ac.uk (Gretton, Liam) Date: Sun, 15 May 2022 10:41:33 +0000 Subject: [ZendTo] Problem with long names for dropoff sender References: Message-ID: Hi Jules, I've come up against a similar problem in the backend MySQL DB schema that I've encountered before with organisation names (since fixed by you - thanks). Now we're seeing some users with particularly long names, and they're unable to upload to ZendTo as their names exceed the 32 character limit in the dropoff.senderName field, but it's not trapped by the code. The error log reports: Error: Failed to add drop-off hX9Fem7GY2MFgXir. Error was Data too long for column 'senderName' Though I haven't explicitly tried the latest 6.12-1 beta version, the schema appears to be the same for this table at least. In our case the sender's name comes from the cn attribute in our LDAP directory. It would be great if the senderName field's size could be bumped up, or the frontend altered to truncate the input if necessary. Thanks, Liam Liam Gretton Systems Specialist IT Services, University of Leicester, University Road, Leicester, LE1 7RH, UK t: +44 (0)116 252 2254 e: liam.gretton at leicester.ac.uk w: www.le.ac.uk [cid:image001.gif at 01D8684F.B8C5B760] Follow us on Twitter or visit our Facebook page -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 3340 bytes Desc: image001.gif URL: From Jules at Zend.To Thu May 26 16:50:56 2022 From: Jules at Zend.To (Jules Field) Date: Thu, 26 May 2022 16:50:56 +0100 Subject: [ZendTo] ZendTo for Docker References: <3a5653f0-0ca8-44c5-42d5-ed684c9d71db@Zend.To> Message-ID: Hi folks, I have just about finished building a Docker setup for ZendTo. You can get the image at docker.io/julesfm/zendto. However, to build it yourself, download the latest ZendTo beta from https://zend.to/beta The tgz tarball will do fine. In there you'll see a docker-compose.yml file. All the files it refers to are in the docker sub-directory, so take a peek. Read that file and set things like the TZ appropriately, and setup a volume to store your ZendTo dropoffs. I've included SMB and NFS examples to get you going. You can just delete all those settings for the data volume if you're just experimenting, and so use an locally-hosted volume. You will also want to set your own values of all the environment variables in docker/env. Note it supports the ..._FILE environment variables just like the MySQL docker image does, so you don't have to put secrets in there. In that directory do ??? docker compose build zendto ??? docker compose up -d zendto and you should have a working ZendTo server running on localhost:80. To add users etc, use ??? docker compose run zendto adduser 'username' 'email-address' 'real-name' 'organisation' and it will prompt for the password as usual. Run all the other commands in /opt/zendto/bin the same way. If you want any other command, such as a shell, just run commands like ??? docker compose run zendto bash It doesn't *yet* work with an entire cluster/swarm of ZendTo servers, as the cleanup and email-reminder jobs will be done by all nodes in the cluster, so your users will get multiple reminders. But I'm working on that, it'll need a swarm so only 1 container does the cron jobs. Please give it a try and let me know what you think! Cheers, Jules -- Julian Field MEng CEng CITP MBCS MIEEE MACM 'If I be the first of us to die, Let grief not blacken long your sky. Be bold yet modest in your grieving. There is change but not a leaving. For just as death is part of life, The dead live on forever in the living. For all the gathered riches of our journey, The moments shared, the mysteries explored, The steady layer of intimacy stored. The things that made us laugh or weep or sing, The joy of sunlit snow or first unfurling of the spring, The wordless language of look and touch, The knowing, each giving and each taking, These are not flowers that fade, Nor trees that fall and crumble. Nor are they stone, For even stone cannot the wind and rain withstand And mighty mountain peaks in time reduce to sand. What we were, we are. What we had, we have. A conjoined past imperishably present. So when you walk the woods where once we walked together And scan in vain the dappled bank beside you for my shadow, Or pause where we always did upon the hill to gaze across the land, And spotting something, reach by habit for my hand, And finding none, feel sorrow start to steal upon you, Be still. Clear your eyes. Breathe. Listen for my footfall in your heart. I am not gone but merely walk within you.' - Nicholas Evans, an excerpt from The Smoke Jumper www.Zend.To Twitter: @JulesFM -------------- next part -------------- An HTML attachment was scrubbed... URL: