passenger 4.0.40 → 4.0.41

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of passenger might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTM4NTg2NmU5YzUxZWRjNmMxNTY5NjJiZjcyNzYzMzc5YWRlOGQzZA==
4
+ ZGE3MWJhOWJjY2ZmMjk0OWMyMzU4YzIxYTY0YTA1NTJhYzIwMjQ0Mg==
5
5
  data.tar.gz: !binary |-
6
- OGE2ZWNiNzhmZGJkNDIyMWY3OGU1OTcyZWY5ODEyNzgxYjQyNTZiMQ==
6
+ YmI0NjhmZjdjYmIxZGMxODg5Njg2MWI5NWI2ZTkxZGZmOWVjMGVlNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OGVmMTU2ZjAwOTkwOTBkODk2NjU1ZGYxY2EwODZhMGZlNzJiNjk5MmEyYjI2
10
- MTM1Y2ZlZDM2NjQ3ODgxNWUyOGQyNzNkZWZiZjE0ODIwNmVlMTExZWVmNzVh
11
- NmY4NDA2YTQzZDk1ZTE1ZjY5OWNhMmVmOTM1ODhjZTBmN2UwZGU=
9
+ Mjk4Mjg4ZTdmY2ViYjFkNzZiMTVhYWFiNzgyYjc2NTFlY2UyYTUwZjI3ZTQx
10
+ ODg2NDJmMTM0OGMzNTE4NmNmZGNhNTI2MDRhNDgxZjk3NTU5MzU2OTk4NWU4
11
+ ODIwYWFiN2U4MTEwNWE4YTRiMjQ2Yjc0ZDgzN2NhNDM0OTk1Nzk=
12
12
  data.tar.gz: !binary |-
13
- YzM5NWU3MGZkOTdlOTA5ZTU2YmI5NjA1ZWFkNDc5ZmE2NzA3YTUwNTMwMTgz
14
- NDdiZWZkY2JhOTdkMmRkNzU4NTc2ZWNlOThjYzY5ZWE5NjYwNDlhN2M5OTRk
15
- ZjQ2ZjZiODYwOWIxZTExMmEyMGIwYjliOGE5YjA1ZTQyMjQ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EF+5S9qNwNS+tPp3i/KifhyEBd/RsYZWz4=
11
+ =Sw+V
12
12
  -----END PGP SIGNATURE-----
data.tar.gz.asc CHANGED
@@ -2,11 +2,11 @@
2
2
  Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
3
3
  Comment: GPGTools - http://gpgtools.org
4
4
 
5
- iQEcBAABAgAGBQJTKNVRAAoJECrHRaUKISqMmKkH/1pOvpbVQcMdmX1HCM6wAq+C
6
- X8e42KIkhrc3cUfODt5aUEuUHxfRZmcFZW9/c64U76H8SGdC6Wg5cDrxTQmRVnj2
7
- QdujJIgbyW+9MBidrs4klM69c+TDnxWCGY++TjY5BDwDjob/8VVa54tDZ4oGEuMv
8
- Rh0I/UiLS8Hxf201+W1ANnjc5Dem0cKl6zHCUDeF/OzSB8jV7JOx0cTm3wovlwVL
9
- lSfjSeeII18BM30W9om1v3seiKXLi6AvMY83fM9ksVapk2JGoAEQbSJRiJLxX+i1
10
- 7kpDWF9UJbLsty0Rm74qm83rhFrNHm376MWE2kxmb7aOZEauzY5pQy2t+gnyDjI=
11
- =Vfih
5
+ iQEcBAABAgAGBQJTRE10AAoJECrHRaUKISqMPNAIAKlQNxJ08NkoCNRZ75YXKxYn
6
+ Umo97ZF/jg19B+LBjR7QpsrBAzTVewcz7pQPPrh+61tr97hx0KMGQ6LtXhR1Smnc
7
+ 8gOn6cw4sgschV00tVpRoUJNsVtLS0FLXmMilycUQSmrYUYWWNBw/JiH5aCkByGQ
8
+ aTF538bF04R95qaHlGVdSbgNXB/jA8+v73Wdec2221DvXEXRRdttScE5vOImCUCf
9
+ dQ4ibO+zXvPR3xw/Pxm5jyJgy6jOjFYMniIpbdpu8tMBknY10pnXuW/dGXFM59pC
10
+ 4wd9W5Pr2TyHADAZyLeKLbXfl3OlQh+uMS+UiDmWbcePHOK2jQzM7EWK13mCKkk=
11
+ =Gwi5
12
12
  -----END PGP SIGNATURE-----
data/CHANGELOG CHANGED
@@ -1,3 +1,20 @@
1
+ Release 4.0.41
2
+ --------------
3
+
4
+ * Fixed some issues with printing UTF-8 log files on Heroku.
5
+ * Added a new flag `--ignore-app-not-running` to `passenger-config restart-app`.
6
+ When this flag is given, `passenger-config restart-app` will exit successfully
7
+ when the specified application is not running, instead of exiting with
8
+ an error.
9
+ * Our precompiled Passenger Standalone binaries have been upgraded to use
10
+ OpenSSL 1.0.1g, which fixes [the OpenSSL Heartbleed vulnerability](http://heartbleed.com/).
11
+ Users who are using Passenger Standalone with SSL enabled are vulnerable,
12
+ and should upgrade immediately. Users who do not use Passenger Standalone,
13
+ users who use Passenger Standalone without SSL, or users who use Passenger
14
+ Standalone with SSL behind another SSL-enabled reverse proxy, are not
15
+ vulnerable.
16
+
17
+
1
18
  Release 4.0.40
2
19
  --------------
3
20
 
@@ -325,7 +325,6 @@ task 'package:update_homebrew' do
325
325
  abort("Unable to substitute Homebrew formula tarball filename")
326
326
  formula.gsub!(/sha1 .*/, "sha1 '#{sha1}'") ||
327
327
  abort("Unable to substitute Homebrew formula SHA-1")
328
- formula.gsub!(/^ bottle do.*?end\n *\n/m, '')
329
328
  necessary_dirs = ORIG_TARBALL_FILES.call.map{ |filename| filename.split("/").first }.uniq
330
329
  necessary_dirs -= Packaging::HOMEBREW_EXCLUDE
331
330
  necessary_dirs += ["buildout"]
@@ -552,23 +552,23 @@ The email address software-signing@phusion.nl redirects to info@phusion.nl so it
552
552
  The Phusion Software Signing key is also *signed by the Phusion founders*. Their keys are as follows:
553
553
 
554
554
  Hongli Lai (hongli@phusion.nl)
555
- Short key ID: 4B6F4332
556
- Long key ID: 06A131094B6F4332
557
- Fingerprint: 64E8 0420 FC6A 499F 9E1F 81FA 06A1 3109 4B6F 4332
555
+ Short key ID: 8C59158F
556
+ Long key ID: CD70085E8C59158F
557
+ Fingerprint: 218A 7255 83D0 2ECE F3A9 C2A7 CD70 085E 8C59 158F
558
558
 
559
559
  Ninh Bui (ninh@phusion.nl)
560
- Short key ID: 6FAF3782
561
- Long key ID: BA8DA3F46FAF3782
562
- Fingerprint: 353A 398C 49AF 5CD5 74A0 656C BA8D A3F4 6FAF 3782
560
+ Short key ID: 69481265
561
+ Long key ID: AE405F7869481265
562
+ Fingerprint: A77C 9CEF 766D 0E7D A95B 8778 AE40 5F78 6948 1265
563
563
 
564
564
  Both keys are stored at both sks-servers.net and keyserver.ubuntu.com. Import them with:
565
565
 
566
566
  ------------------------------------------
567
- gpg --keyserver pool.sks-servers.net --search-keys 0x06A131094B6F4332
568
- gpg --keyserver pool.sks-servers.net --search-keys 0xBA8DA3F46FAF3782
567
+ gpg --keyserver pool.sks-servers.net --search-keys 0xCD70085E8C59158F
568
+ gpg --keyserver pool.sks-servers.net --search-keys 0xAE405F7869481265
569
569
  # -OR-
570
- gpg --keyserver keyserver.ubuntu.com --search-keys 0x06A131094B6F4332
571
- gpg --keyserver keyserver.ubuntu.com --search-keys 0xBA8DA3F46FAF3782
570
+ gpg --keyserver keyserver.ubuntu.com --search-keys 0xCD70085E8C59158F
571
+ gpg --keyserver keyserver.ubuntu.com --search-keys 0xAE405F7869481265
572
572
  ------------------------------------------
573
573
 
574
574
  ==== Verifying the gem and tarball
@@ -88,7 +88,7 @@
88
88
 
89
89
  #define NGINX_DOC_URL "http://www.modrails.com/documentation/Users%20guide%20Nginx.html"
90
90
 
91
- #define PASSENGER_VERSION "4.0.40"
91
+ #define PASSENGER_VERSION "4.0.41"
92
92
 
93
93
  #define POOL_HELPER_THREAD_STACK_SIZE 262144
94
94
 
@@ -30,7 +30,7 @@ module PhusionPassenger
30
30
 
31
31
  PACKAGE_NAME = 'passenger'
32
32
  # Run 'rake ext/common/Constants.h' after changing this number.
33
- VERSION_STRING = '4.0.40'
33
+ VERSION_STRING = '4.0.41'
34
34
 
35
35
  PREFERRED_NGINX_VERSION = '1.4.7'
36
36
  NGINX_SHA256_CHECKSUM = '23b8ff4a76817090678f91b0efbfcef59a93492f6612dc8370c44c1f1ce1b626'
@@ -1,5 +1,5 @@
1
1
  # Phusion Passenger - https://www.phusionpassenger.com/
2
- # Copyright (c) 2013 Phusion
2
+ # Copyright (c) 2013-2014 Phusion
3
3
  #
4
4
  # "Phusion Passenger" is a trademark of Hongli Lai & Ninh Bui.
5
5
  #
@@ -83,6 +83,11 @@ private
83
83
  abort "--rolling-restart is only available in #{PROGRAM_NAME} Enterprise: #{ENTERPRISE_URL}"
84
84
  end
85
85
  end
86
+ opts.on("--ignore-app-not-running", "Exit successfully if the specified#{nl}" +
87
+ "application is not currently running. The#{nl}" +
88
+ "default is to exit with an error") do
89
+ options[:ignore_app_not_running] = true
90
+ end
86
91
  opts.on("--instance PID", Integer, "The #{PROGRAM_NAME} instance to select") do |value|
87
92
  options[:instance] = value
88
93
  end
@@ -121,13 +126,13 @@ private
121
126
  if app_group_name = @options[:app_group_name]
122
127
  @groups = [groups.find { |g| g.name == app_group_name }]
123
128
  if !@groups[0]
124
- abort "There is no #{PROGRAM_NAME}-served application running with the app group name '#{app_group_name}'."
129
+ abort_app_not_found "There is no #{PROGRAM_NAME}-served application running with the app group name '#{app_group_name}'."
125
130
  end
126
131
  else
127
132
  regex = /^#{Regexp.escape(@argv.first)}/
128
133
  @groups = groups.find_all { |g| g.app_root =~ regex }
129
134
  if @groups.empty?
130
- abort "There are no #{PROGRAM_NAME}-served applications running whose paths begin with '#{@argv.first}'."
135
+ abort_app_not_found "There are no #{PROGRAM_NAME}-served applications running whose paths begin with '#{@argv.first}'."
131
136
  end
132
137
  end
133
138
  end
@@ -140,6 +145,15 @@ private
140
145
  :method => restart_method)
141
146
  end
142
147
  end
148
+
149
+ def abort_app_not_found(message)
150
+ if @options[:ignore_app_not_running]
151
+ STDERR.puts(message)
152
+ exit
153
+ else
154
+ abort(message)
155
+ end
156
+ end
143
157
  end
144
158
 
145
159
  end # module Config
@@ -56,6 +56,7 @@ class StartCommand < Command
56
56
  @runtime_locator = RuntimeLocator.new(@options[:runtime_dir],
57
57
  @options[:nginx_version])
58
58
  ensure_runtime_installed
59
+ set_stdout_stderr_binmode
59
60
  exit if @options[:runtime_check_only]
60
61
  require_app_finder
61
62
  @app_finder = AppFinder.new(@args, @options)
@@ -492,6 +493,14 @@ private
492
493
  end
493
494
  end
494
495
 
496
+ def set_stdout_stderr_binmode
497
+ # We already set STDOUT and STDERR to binmode in bin/passenger, which
498
+ # fixes https://github.com/phusion/passenger-ruby-heroku-demo/issues/11.
499
+ # However RuntimeInstaller sets them to UTF-8, so here we set them back.
500
+ STDOUT.binmode
501
+ STDERR.binmode
502
+ end
503
+
495
504
  def start_nginx
496
505
  begin
497
506
  @nginx.start
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passenger
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.40
4
+ version: 4.0.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phusion - http://www.phusion.nl/
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-18 00:00:00.000000000 Z
11
+ date: 2014-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
metadata.gz.asc CHANGED
@@ -2,11 +2,11 @@
2
2
  Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
3
3
  Comment: GPGTools - http://gpgtools.org
4
4
 
5
- iQEcBAABAgAGBQJTKNVRAAoJECrHRaUKISqMGwkIAI6pKn85eWCwHKTbo4+LVe8h
6
- sQFxBFe4DBKWYJL7eZdObARj7EL5JkFwg6m0UA1V+u0sOotVw2EhhQIFca9e0/sX
7
- 9BqTS5xk9FCMDZ8Avqia9RcjfpU0QDV/2iTdAu1DbkIe7FD2RqaQ+aqDMbWK0wCn
8
- Q6j4Vrxta/+VutTvCsZU/HTXY1pDjdkhhpzWosZ9Ze5ommV6WJYk/5NUluKgIdwU
9
- ROXLy5p1AFWkO0PkwcQhd1LRyhkGXAYBrzDkJX0I0QENLkaxkjSJrL93KlFwgRxb
10
- v0+upzB97XK1q5hhenwK36/Is/LmkZHVp34xeBK5Z61pWgdICy7n09v2zFHD8S0=
11
- =vV+f
5
+ iQEcBAABAgAGBQJTRE10AAoJECrHRaUKISqMc78H/3zO8kI6oWl0kMwHmVN6WUtd
6
+ Q8qSkAa2beHwrFsTXCQYmnfUa8N5cjNgvCjI2FX5/9vu+s4yuJG5h8lkcpd+97pw
7
+ u3zUdFWsgr5BXD8BX3F7vmkPahXmmhsar4MHCu/1WK5pX2mZbihmXGBVtIkPKmVN
8
+ uGD0AqzSB0H4XAH84aiMqi8gssgKzwTM6jYs4uZ3gNhUSmRLl6sKSh9YHfc4ggLI
9
+ 5CBvZdh29jWSXKzcvPPuLNsMkbsmHvixeK/R3cBBUA3TWHdJqid5bhOCY6rcw9tn
10
+ W2VwBmL7v3q/WEuCJJyQ5D2NAG0F5aT71pSu9Eirr7nXtZ5p/rMsyZT+RTiQquc=
11
+ =JLge
12
12
  -----END PGP SIGNATURE-----