You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2021/11/29 16:39:15 UTC

[allura] branch master updated (c942f47 -> 4105653)

This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git.


    from c942f47  [#8400] Upgrade Ming 0.11.1 -> 0.11.2, and its deps: pymongo,pytz,six
     new bd144f3  [#8401] removed added test and updated test_project_icon in test_admin
     new 4105653  Include the incoming mail task id in logging

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 Allura/allura/command/smtp_server.py         | 4 ++--
 Allura/allura/controllers/project.py         | 4 ++++
 Allura/allura/tests/functional/test_admin.py | 2 +-
 3 files changed, 7 insertions(+), 3 deletions(-)

[allura] 02/02: Include the incoming mail task id in logging

Posted by br...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 41056532fbdc97edc4b3b5d74e84a619ad2cd776
Author: Dave Brondsema <db...@slashdotmedia.com>
AuthorDate: Mon Nov 29 16:38:41 2021 +0000

    Include the incoming mail task id in logging
---
 Allura/allura/command/smtp_server.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Allura/allura/command/smtp_server.py b/Allura/allura/command/smtp_server.py
index c3d3c1b..6819c96 100644
--- a/Allura/allura/command/smtp_server.py
+++ b/Allura/allura/command/smtp_server.py
@@ -56,9 +56,9 @@ class MailServer(smtpd.SMTPServer):
         try:
             base.log.info('Msg Received from %s for %s', mailfrom, rcpttos)
             base.log.info(' (%d bytes)', len(data))
-            allura.tasks.mail_tasks.route_email.post(
+            task = allura.tasks.mail_tasks.route_email.post(
                 peer=peer, mailfrom=mailfrom, rcpttos=rcpttos,
                 data=h.really_unicode(data))
-            base.log.info('Msg passed along')
+            base.log.info(f'Msg passed along as task {task._id}')
         except Exception:
             base.log.exception('Error handling msg')

[allura] 01/02: [#8401] removed added test and updated test_project_icon in test_admin

Posted by br...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git

commit bd144f3762b028dba3cd2ad2062eb81b44a03e24
Author: Guillermo Cruz <gu...@slashdotmedia.com>
AuthorDate: Fri Nov 19 10:58:41 2021 -0700

    [#8401] removed added test and updated test_project_icon in test_admin
---
 Allura/allura/controllers/project.py         | 4 ++++
 Allura/allura/tests/functional/test_admin.py | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/Allura/allura/controllers/project.py b/Allura/allura/controllers/project.py
index 3e8a4b4..57133ff 100644
--- a/Allura/allura/controllers/project.py
+++ b/Allura/allura/controllers/project.py
@@ -250,6 +250,8 @@ class NeighborhoodController(object):
     @expose()
     def icon(self, w=None, **kw):
         try:
+            if isinstance(w, list):
+               w = w[0]
             icon = c.project.icon_sized(w=int(w or 48))
         except ValueError as e:
             log.info('Invalid project icon size: %s on %s', e, request.url)
@@ -422,6 +424,8 @@ class ProjectController(FeedController):
     @expose()
     def icon(self, w=48, **kw):
         try:
+            if isinstance(w, list):
+               w = w[0]
             icon = c.project.icon_sized(w=int(w))
         except ValueError as e:
             log.info('Invalid project icon size: %s on %s', e, request.url)
diff --git a/Allura/allura/tests/functional/test_admin.py b/Allura/allura/tests/functional/test_admin.py
index 40a6b84..b69409e 100644
--- a/Allura/allura/tests/functional/test_admin.py
+++ b/Allura/allura/tests/functional/test_admin.py
@@ -390,7 +390,7 @@ class TestProjectAdmin(TestController):
         assert image.size == (48, 48)
 
         r = self.app.get('/p/test/icon?foo=bar')
-        r = self.app.get('/p/test/icon?w=96')
+        r = self.app.get('/p/test/icon?w=96&w=100&w=10')
         image = PIL.Image.open(BytesIO(r.body))
         assert image.size == (96, 96)
         r = self.app.get('/p/test/icon?w=12345', status=404)