Re: Leaking sensitive info? (Was: Re: Roster emeritus function now with code to review and a local failure)

2020-05-18 Thread Matt Sicker
That's a good question. I know some potentially sensitive data was migrated out of Whimsy into svn, and all of that is ACL-controlled. On Mon, 18 May 2020 at 08:33, Jim Jagielski wrote: > > I am curious... in this discussion, and maybe even in the Whimsy code, both > of which are public, are we

Re: Roster emeritus function now with code to review and a local failure

2020-05-18 Thread Craig Russell
If someone could take a look at the roster-emeritus branch it will help. Thanks, Craig > On May 17, 2020, at 7:41 PM, Craig Russell wrote: > > I removed the svn entries in .whimsy and checked out 609 MB of files that > were already in my local repo. > > So now I'm able to test my changes. Co

Leaking sensitive info? (Was: Re: Roster emeritus function now with code to review and a local failure)

2020-05-18 Thread Jim Jagielski
I am curious... in this discussion, and maybe even in the Whimsy code, both of which are public, are we "leaking" information about how the ASF data is stored, locations, environment, etc in a way that potentially compromises our security? > On May 18, 2020, at 6:54 AM, Sam Ruby wrote: > > On

Re: Roster emeritus function now with code to review and a local failure

2020-05-18 Thread Sam Ruby
On Sun, May 17, 2020 at 11:09 PM Craig Russell wrote: > > I'm used to debugging using e.g. console.log("Here is some data:" + data) > > What is the way to emit some debug messages on the console in the whimsy test > server environments? Some reading materials: https://ruby-doc.org/stdlib-2.4.0/

Re: Roster emeritus function now with code to review and a local failure

2020-05-17 Thread Craig Russell
I'm used to debugging using e.g. console.log("Here is some data:" + data) What is the way to emit some debug messages on the console in the whimsy test server environments? And perhaps there are unit tests for (the components that I've modified) documents.rb and committer.rb? Thanks, Craig P.

Re: Roster emeritus function now with code to review and a local failure

2020-05-17 Thread Craig Russell
I removed the svn entries in .whimsy and checked out 609 MB of files that were already in my local repo. So now I'm able to test my changes. Could someone please take a look? git branch roster-emeritus Thanks, Craig > On May 17, 2020, at 7:50 AM, Craig Russell wrote: > > I have lots of svn

Re: Roster emeritus function now with code to review and a local failure

2020-05-17 Thread Sam Ruby
On Sun, May 17, 2020 at 10:50 AM Craig Russell wrote: > > I have lots of svn entries in .whimsy: > :svn: > - /Users/clr/apache/foundation > - /Users/clr/apache/documents > - /Users/clr/apache/committers > - /Users/clr/apache/infrastructure/apmail/trunk/bin > - /Users/

Re: Roster emeritus function now with code to review and a local failure

2020-05-17 Thread Matt Sicker
I cleared out mine and let whimsy clone everything on its own. Maybe after I understand the config better, I can slowly replace those with my local copies I manually manage. On Sun, May 17, 2020 at 09:50 Craig Russell wrote: > I have lots of svn entries in .whimsy: > :svn: > - /Users/c

Re: Roster emeritus function now with code to review and a local failure

2020-05-17 Thread Craig Russell
I have lots of svn entries in .whimsy: :svn: - /Users/clr/apache/foundation - /Users/clr/apache/documents - /Users/clr/apache/committers - /Users/clr/apache/infrastructure/apmail/trunk/bin - /Users/clr/apache/incubator/public Clearly I set these up when I last was run

Re: Roster emeritus function now with code to review and a local failure

2020-05-16 Thread Sam Ruby
On Sat, May 16, 2020 at 11:44 PM Craig Russell wrote: > > I just tried bundle exec rackup and it seems to be much faster. I don't know what's wrong with your local nginx and/or passenger, but we can avoid it. Should you wish to explore getting passenger to work, some help may be found here: htt

Re: Roster emeritus function now with code to review and a local failure

2020-05-16 Thread Craig Russell
I just tried bundle exec rackup and it seems to be much faster. Clearly it is able to read iclas.txt because I type "c" and it says that 7397 entries match and "cl" says 318 entries match and then "clr" gives only two results. But when I select clr from the list, same error as before. 2020-05-1

Re: Roster emeritus function now with code to review and a local failure

2020-05-16 Thread Sam Ruby
On Sat, May 16, 2020 at 10:36 PM Craig Russell wrote: > > Truly bizarre this is. > > > On May 16, 2020, at 5:03 PM, Sam Ruby wrote: > > > > OK, lets try two things. Working up from my zero dependency Ruby test > > script first, try this Ruby program next: > > > > --- > > require 'sinatra' > > ge

Re: Roster emeritus function now with code to review and a local failure

2020-05-16 Thread Craig Russell
Truly bizarre this is. > On May 16, 2020, at 5:03 PM, Sam Ruby wrote: > > OK, lets try two things. Working up from my zero dependency Ruby test > script first, try this Ruby program next: > > --- > require 'sinatra' > get '/' do > "Hello world! The time is #{Time.now}\n" > end > --- > > Once

Re: Roster emeritus function now with code to review and a local failure

2020-05-16 Thread Sam Ruby
OK, lets try two things. Working up from my zero dependency Ruby test script first, try this Ruby program next: --- require 'sinatra' get '/' do "Hello world! The time is #{Time.now}\n" end --- Once that is running, visit http://localhost:4567/ Next, lets try working down from a full passenge

Re: Roster emeritus function now with code to review and a local failure

2020-05-16 Thread Craig Russell
192.168.0.12:5678 works 192.168.0.12:3000 hangs localhost:3000 hangs localhost:5678 works whimsy.local:3000 hangs whimsy.local:5678 works 0.0.0.0 can't connect 0.0.0.0:3000 hangs 0.0.0.0:5678 works > On May 16, 2020, at 4:48 AM, Sam Ruby wrote: > > On Sat, May 16, 2020 at 12:18 AM Craig Russell

Re: Roster emeritus function now with code to review and a local failure

2020-05-16 Thread Sam Ruby
On Sat, May 16, 2020 at 12:18 AM Craig Russell wrote: > > While the script was running, I could reload the page and the time would > change. Once I killed the script, the browser could not connect to the server > any more. Cool. Now with both the test.rb and rake server running, try various c

Re: Roster emeritus function now with code to review and a local failure

2020-05-15 Thread Craig Russell
While the script was running, I could reload the page and the time would change. Once I killed the script, the browser could not connect to the server any more. > On May 15, 2020, at 9:15 PM, Craig Russell wrote: > > [MacBook-Pro-10:~] clr% vi test.rb > [MacBook-Pro-10:~] clr% ruby test.rb >

Re: Roster emeritus function now with code to review and a local failure

2020-05-15 Thread Craig Russell
[MacBook-Pro-10:~] clr% vi test.rb [MacBook-Pro-10:~] clr% ruby test.rb open http://192.168.0.12:5678/ ^CTraceback (most recent call last): 1: from test.rb:11:in `' test.rb:11:in `accept': Interrupt In the browser that popped up: at url http://192.168.0.12:5678 Hello world! The time is 20

Re: Roster emeritus function now with code to review and a local failure

2020-05-15 Thread Sam Ruby
On Fri, May 15, 2020 at 10:23 PM Craig Russell wrote: > > Sorry, what do I do with the lines between -- > > Is this a shell script? I run csh... It is a Ruby script. Put it in a file, say test.rb. Then run 'ruby test.rb'. > Craig - Sam Ruby > > On May 15, 2020, at 6:38 PM, Sam Ru

Re: Roster emeritus function now with code to review and a local failure

2020-05-15 Thread Craig Russell
Sorry, what do I do with the lines between -- Is this a shell script? I run csh... Craig > On May 15, 2020, at 6:38 PM, Sam Ruby wrote: > > On Fri, May 15, 2020 at 8:10 PM Craig Russell > wrote: >> >> Hi Sam, >> >> That helped. I had not installed cc

Re: Roster emeritus function now with code to review and a local failure

2020-05-15 Thread Sam Ruby
On Fri, May 15, 2020 at 8:10 PM Craig Russell wrote: > > Hi Sam, > > That helped. I had not installed cctools via brew but I made a backup copy of > the/opt/local/bin/ar and ranlib tools so I got farther along with installing > ruby 2.4.1. > > [MacBook-Pro-10:whimsy/www/roster] clr% rbenv global

Re: Roster emeritus function now with code to review and a local failure

2020-05-15 Thread Craig Russell
Hi Sam,That helped. I had not installed cctools via brew but I made a backup copy of the/opt/local/bin/ar and ranlib tools so I got farther along with installing ruby 2.4.1. [MacBook-Pro-10:whimsy/www/roster] clr% rbenv global2.4.1[MacBook-Pro-10:whimsy/www/roster] clr% which ruby/usr/local/opt/rub

Re: Roster emeritus function now with code to review and a local failure

2020-05-15 Thread Sam Ruby
On Fri, May 15, 2020 at 10:38 AM Craig Russell wrote: > Hi Sam, > > Thanks for that. Sadly, > > ar: creating archive libcrypto.a > /opt/local/bin/ranlib: object: libcrypto.a(aes-x86_64.o) malformed object > (unknown load command 1) > ar: internal ranlib command failed > make[1]: *** [libcrypto.a]

Re: Roster emeritus function now with code to review and a local failure

2020-05-15 Thread Craig Russell
Hi Sam, Thanks for that. Sadly, [MacBook-Pro-10:whimsy/www/roster] clr% rbenv install 2.4.1 Downloading openssl-1.1.0j.tar.gz... -> https://dqw8nmjcqpjn7.cloudfront.net/31bec6c203ce1a8e93d5994f4ed304c63ccf07676118b6634edded12ad1b3246 Installing openssl-1.1.0j... BUILD FAILED (OS X 10.14.6 using

Re: Roster emeritus function now with code to review and a local failure

2020-05-15 Thread Sam Ruby
On Fri, May 15, 2020 at 12:00 AM Craig Russell wrote: > So, any ideas to try next? > I tried Ruby 2.7.1, and saw the hang. I tried Ruby 2.4.1, and it started right up: rbenv install 2.4.1 rbenv global 2.4.1 gem install bundler:1.17.2 bundle update export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

Re: Roster emeritus function now with code to review and a local failure

2020-05-14 Thread Craig Russell
So, any ideas to try next? The server starts up, and within 10 seconds emits [ N 2020-05-14 20:49:52.3082 46685/T5 age/Cor/SecurityUpdateChecker.h:519 ]: Security update check: no update found (next check in 24 hours) App 46731 output: /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wun

Re: Roster emeritus function now with code to review and a local failure

2020-05-14 Thread Sam Ruby
On Thu, May 14, 2020 at 8:11 PM Craig Russell wrote: > So is this normal? > > App 34044 output: > /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18: > warning: $SAFE will become a normal global variable in Ruby 3.0 > I'm currently running 2.6.3., so I'm not sure

Re: Roster emeritus function now with code to review and a local failure

2020-05-14 Thread Craig Russell
So is this normal? App 34044 output: /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18: warning: $SAFE will become a normal global variable in Ruby 3.0 > On May 14, 2020, at 4:54 PM, Sam Ruby wrote: > > On Thu, May 14, 2020 at 7:24 PM Craig Russell wrote: >

Re: Roster emeritus function now with code to review and a local failure

2020-05-14 Thread Sam Ruby
On Thu, May 14, 2020 at 7:24 PM Craig Russell wrote: > [MacBook-Pro-10:~] clr% cat /etc/hosts > ## > # Host Database > # > # localhost is used to configure the loopback interface > # when the system is booting. Do not change this entry. > ## > 127.0.0.1 localhost > 255.255.255.255 broadcas

Re: Roster emeritus function now with code to review and a local failure

2020-05-14 Thread Craig Russell
[MacBook-Pro-10:~] clr% cat /etc/hosts ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 whimsy.local # Added by Docker Desktop # To allow

Re: Roster emeritus function now with code to review and a local failure

2020-05-14 Thread Sam Ruby
On Thu, May 14, 2020 at 10:27 AM Craig Russell wrote: > I've updated the local svn repos. The server now starts via rake auth > server but nothing is returned from the browser https://whimsy.local:3000 > whimsy.local > whimsy.local:3000 > When I try http://0.0.0.0:3000/ > Safari can't connect to

Re: Roster emeritus function now with code to review and a local failure

2020-05-14 Thread Craig Russell
I've updated the local svn repos. The server now starts via rake auth server but nothing is returned from the browser https://whimsy.local:3000 whimsy.local whimsy.local:3000 When I try http://0.0.0.0:3000/ Safari can't connect to the server "0.0.0.0" [MacBook-Pro-10:whimsy/www/roster] clr% rake

Re: Roster emeritus function now with code to review and a local failure

2020-05-14 Thread Sam Ruby
On Thu, May 14, 2020 at 1:14 AM Craig Russell wrote: > So close... Maybe something to install with git infrastructure-puppet??? > It also looks like you don't have a recent checkout of committee-info.txt. In the whimsy directory, run: rake git:pull svn:update - Sam Ruby > [MacBook-Pro-10:

Re: Roster emeritus function now with code to review and a local failure

2020-05-13 Thread Craig Russell
So close... Maybe something to install with git infrastructure-puppet??? [MacBook-Pro-10:whimsy/www/roster] clr% rake server bundle exec passenger start === Phusion Passenger Standalone web server started === PID file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.

Re: Roster emeritus function now with code to review and a local failure

2020-05-13 Thread Sam Ruby
On Wed, May 13, 2020 at 5:58 PM Craig Russell wrote: > I cannot implode rvm. > [MacBook-Pro-10:~/apache/git/whimsy] clr% rvm implode > Required ruby-2.4.1 is not installed. > To install do: 'rvm install "ruby-2.4.1"' > At a minimum, remove rvm from your .bash_profile or equivalent. But I try to

Re: Roster emeritus function now with code to review and a local failure

2020-05-13 Thread Craig Russell
I cannot implode rvm. [MacBook-Pro-10:~/apache/git/whimsy] clr% rvm implode Required ruby-2.4.1 is not installed. To install do: 'rvm install "ruby-2.4.1"' But I try to brew install ruby. It would only get me 2.7.1 but it doesn't work either. I do have docker installed so i can give that a try i

Re: Roster emeritus function now with code to review and a local failure

2020-05-13 Thread Sam Ruby
On Wed, May 13, 2020 at 5:38 PM Craig Russell wrote: > I think I'm in a loop: > [MacBook-Pro-10:~/apache/git/whimsy] clr% ~/.rvm/scripts/rvm install > "ruby-2.4.1" > Required ruby-2.4.1 is not installed. > To install do: 'rvm install "ruby-2.4.1"' > Recommendation: rvm implode brew install ruby

Re: Roster emeritus function now with code to review and a local failure

2020-05-13 Thread Craig Russell
I think I'm in a loop: [MacBook-Pro-10:~/apache/git/whimsy] clr% ~/.rvm/scripts/rvm install "ruby-2.4.1" Required ruby-2.4.1 is not installed. To install do: 'rvm install "ruby-2.4.1"' So I found a description of how to install the latest rvm but it fails too. [MacBook-Pro-10:~/apache/git/whimsy]

Re: Roster emeritus function now with code to review and a local failure

2020-05-13 Thread Sam Ruby
On Wed, May 13, 2020 at 1:03 PM Craig Russell wrote: > > Thanks for the suggestion. I think I did it right. Could you please take a > look? LGTM. > Also, how do I test this on my own machine? I would suggest either: 1) Using https://github.com/apache/whimsy/blob/master/SETUPMYMAC.md, and vi

Re: Roster emeritus function now with code to review and a local failure

2020-05-13 Thread Craig Russell
Thanks for the suggestion. I think I did it right. Could you please take a look? Also, how do I test this on my own machine? [MacBook-Pro-10:~/apache/git/whimsy] clr% cd www/roster/ [MacBook-Pro-10:whimsy/www/roster] clr% rake server bundle update /usr/local/Cellar/ruby/2.3.1/lib/ruby/2.3.0/dige

Re: Roster emeritus function now with code to review

2020-05-12 Thread Sam Ruby
On Tue, May 12, 2020 at 7:36 PM Craig Russell wrote: > > https://github.com/apache/whimsy/pull/93 > > I'm starting this project with a simple(r) task: allowing the roster > committer page to display any files related to the member's emeritus status: > files in documents/emeritus and documents/em

Re: Roster emeritus function now with code to review

2020-05-12 Thread Craig Russell
https://github.com/apache/whimsy/pull/93 I'm starting this project with a simple(r) task: allowing the roster committer page to display any files related to the member's emeritus status: files in documents/emeritus and documents/emeritus-requests-received. I added a find method to the EmeritusR