Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Karsten Hoffmann
RE: load Error [ reply ]  
2006-02-08 15:12
Gem installs version 2.1.6 on 2006-02-05.

By: Brian Wisti
RE: load Error [ reply ]  
2006-02-07 20:05
Hey Karseten,

What gem version was this? Man, I must really suck at packaging gems.

By: Karsten Hoffmann
RE: load Error [ reply ]  
2006-02-07 19:57
I have had the same problem with gems. So I deinstalled the gems package, fetched the tarball and set the package manually up.

Now it works fine with CGI scripts.

Karsten

FYI: Windows XP, Ruby 1.8.2, Abyss Web Server, latest version of PageTemplate

By: Noam A.
RE: see if the new release fixes it [ reply ]  
2006-01-04 19:22
thanks, i'll try it out.

By: Brian Wisti
see if the new release fixes it [ reply ]  
2006-01-04 19:18
I just pushed out PageTemplate 2.1.5. Try updating the gem and let me know if you have any luck!

By: Brian Wisti
RE: load Error [ reply ]  
2006-01-04 18:41
I filed this as a new bug (#3183), even though it was exactly the same behavior. I wanted to address any environment where taintedness was an issue. This has been fixed in CVS, and I am working on a new release right now.

By: Brian Wisti
RE: load Error [ reply ]  
2005-12-27 14:59
It sounds like I may have reintroduced <a href="http://rubyforge.org/tracker/index.php?func=detail&aid=1587&group_id=407&atid=1626";>the taint bug</a> with 2.1.3. Shame on me!

I'm supposed to be going to work now, so I can't take a closer look at the moment. Still, I should be able to get something up by later tonight (Pacific Standard Timezone).

By: Noam A.
RE: load Error [ reply ]  
2005-12-27 08:22
I downloaded 2.1.3, and installed through gems. After the install I tried to run setup.rb in the gem directory [to try to solve the problem but that didn't do too much].

I'm running windows XP Pro with the latest Apache, and Ruby 1.8 and I think I have the latest mod_ruby.

Thanks

By: Brian Wisti
RE: load Error [ reply ]  
2005-12-27 06:53
Hmm, this is a taint mode bug, which I thought we fixed. Which version of PageTemplate are you using?

By: Noam A.
load Error [ reply ]  
2005-12-27 06:24
Hi I set up Html Template, and I am getting an error from my server when trying to load a template, here is my apache log:

[Tue Dec 27 01:31:09 2005] [error] mod_ruby: error in ruby
[Tue Dec 27 01:31:09 2005] [error] mod_ruby: c:/ruby/lib/ruby/site_ruby/1.8/PageTemplate/parser.rb:221:in `exists?': Insecure operation - exists? (SecurityError)
[Tue Dec 27 01:31:09 2005] [error] mod_ruby: from c:/ruby/lib/ruby/site_ruby/1.8/PageTemplate/parser.rb:221:in `get_filename'
[Tue Dec 27 01:31:09 2005] [error] mod_ruby: from c:/ruby/lib/ruby/site_ruby/1.8/PageTemplate/parser.rb:219:in `each'
[Tue Dec 27 01:31:09 2005] [error] mod_ruby: from c:/ruby/lib/ruby/site_ruby/1.8/PageTemplate/parser.rb:219:in `get_filename'
[Tue Dec 27 01:31:09 2005] [error] mod_ruby: from c:/ruby/lib/ruby/site_ruby/1.8/PageTemplate/parser.rb:191:in `get'
[Tue Dec 27 01:31:09 2005] [error] mod_ruby: from c:/ruby/lib/ruby/site_ruby/1.8/PageTemplate/parser.rb:481:in `compile'
[Tue Dec 27 01:31:09 2005] [error] mod_ruby: from C:/Program Files/Apache Group/Apache2/htdocs/plus-minus/testRuby.rbx:34
[Tue Dec 27 01:31:09 2005] [error] mod_ruby: from c:/ruby/lib/ruby/site_ruby/1.8/apache/ruby-run.rb:53:in `load'
[Tue Dec 27 01:31:10 2005] [error] mod_ruby: from c:/ruby/lib/ruby/site_ruby/1.8/apache/ruby-run.rb:53:in `handler'

Here is my rbx file:

#!c:\ruby\bin\rubyw.exe
require "cgi"
require "PageTemplate"

cgi = CGI.new
print cgi.header("type"=>"text/plain")

template = PageTemplate.new()

template.load('index.html')

cgi.out { template.output }

It seems to load the page fine from the interperter, but from the script I get an error.