Project

General

Profile

Feature #1268

condition should be optional in "else" clause in configuration file

Added by jrabbit over 10 years ago. Updated 7 months ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
core
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Missing in 1.5.x:

Description

The conditional configuration construct:


<field> <operator> <value> {
  ...
}
else <field> <operator> <value> {
  ... the "else if" block
}

would be more useful if it allowed a bare "else" with no condition - i.e.


<field> <operator> <value> {
  ...
}
else <field> <operator> <value> {
  ... the "else if" block
}
else {
  ... the "else" block
}

Associated revisions

Revision 79fb7570 (diff)
Added by gstrauss about 1 year ago

[core] optional condition in config "else" clause (fixes #1268)

x-ref:
"condition should be optional in "else" clause in configuration file"
https://redmine.lighttpd.net/issues/1268

Revision ce24523b (diff)
Added by gstrauss about 1 year ago

[core] restrict where config "else" clauses occur (#1268)

(improve validation)

x-ref:
"condition should be optional in "else" clause in configuration file"
https://redmine.lighttpd.net/issues/1268

Revision b6418503 (diff)
Added by gstrauss 7 months ago

[core] optional condition in config "else" clause (fixes #1268)

x-ref:
"condition should be optional in "else" clause in configuration file"
https://redmine.lighttpd.net/issues/1268

History

#1

Updated by moo over 10 years ago

  • Status changed from New to Assigned
#2

Updated by eatnumber1 almost 8 years ago

Any updates on this?

#3

Updated by gstrauss over 1 year ago

  • Description updated (diff)
  • Assignee deleted (moo)
  • Target version deleted (1.5.0)
#4

Updated by mot over 1 year ago

I'd also be interested in seeing this feature be implemented!

#5

Updated by gstrauss about 1 year ago

  • Subject changed from condtion should be optional in "else" clause in configuration file to condition should be optional in "else" clause in configuration file
  • Status changed from Assigned to Patch Pending
  • Target version set to 1.4.42
#6

Updated by gstrauss about 1 year ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100
#7

Updated by gstrauss 7 months ago

  • Status changed from Fixed to Patch Pending
  • Target version changed from 1.4.42 to 1.4.46

This new feature never worked properly due, due to a missing member assignment. It will be fixed in lighttpd 1.4.46.

#8

Updated by gstrauss 7 months ago

  • Status changed from Patch Pending to Fixed

Also available in: Atom