On Wed, Jan 24, 2018 at 9:09 PM, Craig Russell <[email protected]> wrote: > Hi, > > With the latest push, I've added some error handling to the discuss and vote > forms. You have not been able to see these pages, and until we can get some > sample data together, you still won't. > > There are a few issues still unresolved. > > 1. I cannot add test data to whimsy4 /srv/icla. I don't have permissions. > clr@whimsy-vm4:~$ groups > clr committers member apsite db roller openjpa attic shiro jspwiki juneau > > But /srv/icla needs www-data. Could I get into group www-data and write the > sample files?
Is this just a temporary thing? I'd be inclined to make this directory writable by all until this code is ready to go into production. > 2. I cannot get the redirection to work. If the user enters > whimsy.apache.org/project/icla?token=1 and file /srv/icla/1.json is in phase > discuss, I'd like to "forward" that request to > whimsy.apache.org/project/icla/discuss?token=1 and similarly, if the user > enters whimsy.apache.org/project/icla?token=2 and file /srv/icla/2.json is in > phase discuss, I'd like to "forward" that request to > whimsy.apache.org/project/icla/vote?token=2 I see redirect calls within get '/', but '1.json' above won't match that. You would need to code a get clause that matches that pattern. As for "?token=2" with no path, get '/' does match that, and appears to work: $ curl --head --user rubys https://whimsy.apache.org/project/icla?token=2 Enter host password for user 'rubys': HTTP/1.1 303 See Other Date: Thu, 25 Jan 2018 02:24:35 GMT Server: Apache/2.4.18 (Ubuntu) X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-Powered-By: Phusion Passenger 5.1.12 Location: https://whimsy.apache.org/project/icla/invite Status: 303 See Other Content-Type: text/html;charset=utf-8 What problem are you seeing? > 3. I would like to use the Time class to create date/time values. What do I > need to do (both server and client) to allow me to use e.g. Time.now? On the server, Time.now is available. On the client, you would use the Date class: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date I will caution you that the strings returned by methods such as toString() tend to be browser dependent. A better alternative is toLocaleString(). If you look at board/agenda/views/pages/report.js.rb, you will find: localtime = Date.new(@@item.timestamp).toLocaleString() This is what produces the value you see highlighted in yellow on the following page: https://whimsy.apache.org/board/agenda/2018-02-21/Call-to-order > Any help appreciated. Once issue 1 is resolved you should be able to see test > data in the discuss and vote forms. > > Craig > > Craig L Russell > Secretary, Apache Software Foundation > [email protected] http://db.apache.org/jdo - Sam Ruby
