← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1766186] Re: IncludeOptional fails when a directory does not exist

 

This bug was fixed in the package apache2 - 2.4.18-2ubuntu3.9

---------------
apache2 (2.4.18-2ubuntu3.9) xenial; urgency=medium

  * debian/patches/includeoptional-ignore-non-existent.patch: silently
    ignore a not existent file path with IncludeOptional .  Closes LP:
    #1766186.

 -- Andreas Hasenack <andreas@xxxxxxxxxxxxx>  Thu, 07 Jun 2018 16:43:03
-0300

** Changed in: apache2 (Ubuntu Xenial)
       Status: Fix Committed => Fix Released

** Changed in: apache2 (Ubuntu Artful)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1766186

Title:
  IncludeOptional fails when a directory does not exist

Status in apache2 package in Ubuntu:
  Fix Released
Status in apache2 source package in Xenial:
  Fix Released
Status in apache2 source package in Artful:
  Fix Released
Status in apache2 source package in Bionic:
  Fix Released

Bug description:
  [Impact]

  An instruction in apache config such as the following will make
  apache2 fail to start if the target path does not exist:

  IncludeOptional /etc/apache2/mellon/sp-location*.conf

  https://paste.ubuntu.com/p/f2Tb9rgrBB/ (full file: /etc/apache2/sites-
  enabled/openstack_https_frontend.conf)

  Apr 23 06:58:31 maas-xenial1 apache2[28269]:  * The apache2 configtest failed.
  Apr 23 06:58:31 maas-xenial1 apache2[28269]: Output of config test was:
  Apr 23 06:58:31 maas-xenial1 apache2[28269]: apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 17 of /etc/apache2/sites-enabled/openstack_https_frontend.conf: Could not o
  Apr 23 06:58:31 maas-xenial1 apache2[28269]: Action 'configtest' failed.
  Apr 23 06:58:31 maas-xenial1 apache2[28269]: The Apache error log may have more information.
  Apr 23 06:58:31 maas-xenial1 systemd[1]: apache2.service: Control process exited, code=exited status=1
  Apr 23 06:58:31 maas-xenial1 systemd[1]: Failed to start LSB: Apache2 web server.

  A fix is available upstream:

  https://bz.apache.org/bugzilla/show_bug.cgi?id=57585
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878920

  https://github.com/apache/httpd/commit/a17ce7dd5e6277867ca48659f70c4bb8a11add56
  #diff-18a4bdb1520687ad43a0b4dd2b51d957R1954

  [Test Case]

   * add IncludeOptional /etc/apache2/mellon/sp-location*.conf to an
  apache config file and try to restart the apache2 service

  [Regression Potential]

   * minimal, the patch eases up requirements without rewriting or removing the existing code;
   * the patch author says that it's been used for ~ 3 years in clearlinux https://bz.apache.org/bugzilla/show_bug.cgi?id=57585#c4
   * applied in debian https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878920#22

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1766186/+subscriptions