Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extensions directory required? #3

Closed
jlpoolen opened this issue Nov 13, 2015 · 1 comment
Closed

extensions directory required? #3

jlpoolen opened this issue Nov 13, 2015 · 1 comment
Milestone

Comments

@jlpoolen
Copy link

In a standard install, I access the directory with http://themis/cgi-bin/dudle/index.cgi.

The page errors out; my error log has:

    [Thu Nov 12 21:36:18 2015] [error] [client 192.168.1.2] Premature end of script headers: index.cgi
    [Thu Nov 12 21:37:17 2015] [error] [client 192.168.1.2] /usr/local/src/dudle/dudle.rb:190:in `open': No such file or directory - ./extensions/ (Errno::ENOENT)
    [Thu Nov 12 21:37:17 2015] [error] [client 192.168.1.2] \tfrom /usr/local/src/dudle/dudle.rb:190:in `initialize'
    [Thu Nov 12 21:37:17 2015] [error] [client 192.168.1.2] \tfrom /var/www/localhost/cgi-bin/dudle/index.cgi:27:in `new'
    [Thu Nov 12 21:37:17 2015] [error] [client 192.168.1.2] \tfrom /var/www/localhost/cgi-bin/dudle/index.cgi:27:in `<main>'
    [Thu Nov 12 21:37:17 2015] [error] [client 192.168.1.2] Premature end of script headers: index.cgi

dudle.cgi has around line 190:

    ###################
    # init extenisons #
    ###################
    @extensions = []
    $d = self # FIXME: this is dirty, but extensions need to know table elem 
    Dir.open("#{@basedir}/extensions/").sort.each{|f|
        if File.exists?("#{@basedir}/extensions/#{f}/main.rb")
            @extensions << f 

I was able to overcome this by mkdir extensions within the dudle main directory. Note: I also had to mkdir css to get past another bug, see Issue #2 herein.

There should either be a extenions directory or the test for the directory should not fail if the directory is not present.

@kellerben
Copy link
Owner

This was a problem coming from the transition from bzr (fixed now)

@kellerben kellerben added this to the 2.0 milestone Apr 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants