Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit 10f1044

Browse files
authored
Merge pull request #526 from fedora-infra/1.1.2
Bump the release for v1.1.2
2 parents 8afd7ba + bccfcc7 commit 10f1044

File tree

11 files changed

+24
-22
lines changed

11 files changed

+24
-22
lines changed

.travis.yml

-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ matrix:
2828
env: TOXENV=py27
2929
- python: "2.7"
3030
env: TOXENV=m2crypto
31-
- python: "3.4"
32-
env: TOXENV=py34
3331
- python: "3.5"
3432
env: TOXENV=py35
3533
- python: "3.6"

doc/api.rst

-4
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ Message Encoding
5858
:undoc-members:
5959
:show-inheritance:
6060

61-
.. autofunction:: fedmsg.encoding.dumps
62-
63-
.. autofunction:: fedmsg.encoding.pretty_dumps
64-
6561
SQLAlchemy Encoding Utilities
6662
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6763

doc/changelog.rst

+9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
Changelog
33
=========
44

5+
v1.1.2
6+
======
7+
8+
Bug fixes
9+
---------
10+
11+
* Fix a DOS bug when consuming non-dict JSON messages
12+
(`#514 <https://github.com/fedora-infra/fedmsg/pull/514>`_).
13+
514
v1.1.1
615
======
716

doc/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
# The short X.Y version.
6767
version = u'1.1'
6868
# The full version, including alpha/beta/rc tags.
69-
release = u'1.1.1'
69+
release = u'1.1.2'
7070

7171
# The language for content autogenerated by Sphinx. Refer to documentation
7272
# for a list of supported languages.

fedmsg/config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1323,8 +1323,8 @@ def load_config(extra_args=None,
13231323

13241324
if 'topic_prefix_re' not in config and 'topic_prefix' in config:
13251325
# Turn "org.fedoraproject" into "org\.fedoraproject\.[^\W\d_]+"
1326-
config['topic_prefix_re'] = config['topic_prefix'].replace('.', '\.')\
1327-
+ '\.[^\W\d_]+'
1326+
config['topic_prefix_re'] = config['topic_prefix'].replace('.', r'\.')\
1327+
+ r'\.[^\W\d_]+'
13281328

13291329
__cache = config
13301330
return config

fedmsg/core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -475,5 +475,5 @@ def _run_socket(self, sock, name, ep, watched_names=None):
475475
raise ValidationError(msg)
476476

477477
def _close_subs(self, subs):
478-
for subscriber in subs:
479-
subscriber.close()
478+
for subscriber in subs:
479+
subscriber.close()

fedmsg/crypto/x509_ng.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def validate(message, ssldir=None, **config):
172172
try:
173173
ca_certificate, crl = utils.load_certificates(ca_location, crl_location)
174174
_validate_signing_cert(ca_certificate, certificate, crl)
175-
except (IOError, RequestException, X509StoreContextError) as e:
175+
except (IOError, RequestException, X509StoreContextError):
176176
# Maybe the CA/CRL is expired or just rotated, so invalidate the cache and try again
177177
try:
178178
ca_certificate, crl = utils.load_certificates(

fedmsg/meta/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def __init__(self, internationalization_callable, **config):
8989
# hardcode a topic_prefix, then the global one is taken from config.
9090
if not self.topic_prefix_re:
9191
self.topic_prefix_re = config['topic_prefix_re']
92-
self.__prefix__ = re.compile('^%s\.(%s)(\.(.*))?$' % (
92+
self.__prefix__ = re.compile(r'^%s\.(%s)(\.(.*))?$' % (
9393
self.topic_prefix_re, self.__name__.lower()))
9494

9595
if self.conglomerators is None:

fedmsg/tests/test_meta.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def setUp(self):
7979
invalidate_cache=True,
8080
)
8181
self.config['topic_prefix'] = 'org.fedoraproject'
82-
self.config['topic_prefix_re'] = '^org\.fedoraproject\.(dev|stg|prod)'
82+
self.config['topic_prefix_re'] = r'^org\.fedoraproject\.(dev|stg|prod)'
8383

8484
@skip_if_fedmsg_meta_FI_is_present
8585
def test_for_no_plugins(self):
@@ -108,7 +108,7 @@ def setUp(self):
108108
invalidate_cache=True,
109109
)
110110
self.config['topic_prefix'] = 'org.fedoraproject'
111-
self.config['topic_prefix_re'] = '^org\.fedoraproject\.(dev|stg|prod)'
111+
self.config['topic_prefix_re'] = r'^org\.fedoraproject\.(dev|stg|prod)'
112112

113113
class MyGitProcessor(fedmsg.meta.base.BaseProcessor):
114114
__name__ = 'git'
@@ -141,7 +141,7 @@ def test_processor_handle_empty_subtopic(self):
141141
'topic': 'org.fedoraproject.dev.git',
142142
}
143143
result = self.proc.handle_msg(fake_message, **self.config)
144-
assert result is "", "Proc said it couldn't handle the msg."
144+
assert result == "", "Proc said it couldn't handle the msg."
145145

146146

147147
class Base(unittest.TestCase):
@@ -167,7 +167,7 @@ def setUp(self):
167167
invalidate_cache=True,
168168
)
169169
self.config['topic_prefix'] = 'org.fedoraproject'
170-
self.config['topic_prefix_re'] = '^org\.fedoraproject\.(dev|stg|prod)'
170+
self.config['topic_prefix_re'] = r'^org\.fedoraproject\.(dev|stg|prod)'
171171
fedmsg.meta.make_processors(**self.config)
172172

173173
self.maxDiff = None
@@ -402,7 +402,7 @@ def setUp(self):
402402
invalidate_cache=True,
403403
)
404404
self.config['topic_prefix'] = 'org.fedoraproject'
405-
self.config['topic_prefix_re'] = '^org\.fedoraproject\.(dev|stg|prod)'
405+
self.config['topic_prefix_re'] = r'^org\.fedoraproject\.(dev|stg|prod)'
406406
fedmsg.meta.make_processors(**self.config)
407407

408408
# Delete the msg_ids field because it is bulky and I don't want to
@@ -443,7 +443,7 @@ def setUp(self):
443443
invalidate_cache=True,
444444
)
445445
self.config['topic_prefix'] = 'org.fedoraproject'
446-
self.config['topic_prefix_re'] = '^org\.fedoraproject\.(dev|stg|prod)'
446+
self.config['topic_prefix_re'] = r'^org\.fedoraproject\.(dev|stg|prod)'
447447

448448
self.conglomerator = fedmsg.meta.base.BaseConglomerator
449449

setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104

105105
setup(
106106
name='fedmsg',
107-
version='1.1.1',
107+
version='1.1.2',
108108
description="Fedora Messaging Client API",
109109
long_description=long_description,
110110
author='Ralph Bean',
@@ -120,7 +120,6 @@
120120
'Programming Language :: Python :: 2',
121121
'Programming Language :: Python :: 2.7',
122122
'Programming Language :: Python :: 3',
123-
'Programming Language :: Python :: 3.4',
124123
'Programming Language :: Python :: 3.5',
125124
'Programming Language :: Python :: 3.6',
126125
'Topic :: System :: Networking',

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = lint,py27,py34,py35,py36,m2crypto,docs
2+
envlist = lint,py27,py35,py36,m2crypto,docs
33

44
[testenv]
55
passenv = TRAVIS TRAVIS_* FEDMSG_NETWORK

0 commit comments

Comments
 (0)