[Testbot] Plone 4.3 - Python 2.6 - Build # 1848 - Still failing! - 1 failure(s)

jenkins at plone.org jenkins at plone.org
Wed Mar 12 03:20:23 UTC 2014


-------------------------------------------------------------------------------
Plone 4.3 - Python 2.6 - Build # 1848 - Still Failing!
-------------------------------------------------------------------------------

http://jenkins.plone.org/job/plone-4.3-python-2.6/1848/


-------------------------------------------------------------------------------
CHANGES
-------------------------------------------------------------------------------

Repository: plone.namedfile
Branch: refs/heads/master
Date: 2014-03-11T21:32:51-05:00
Author: Nathan Van Gheem (vangheem) <vangheem at gmail.com>
Commit: https://github.com/plone/plone.namedfile/commit/aa57e1ebe42c43a57a7b045bb22855c28fd77b14

disable csrf protection on generating scales

Files changed:
M docs/HISTORY.txt
M plone/namedfile/scaling.py

diff --git a/docs/HISTORY.txt b/docs/HISTORY.txt
index 1138d9a..42c7c30 100644
--- a/docs/HISTORY.txt
+++ b/docs/HISTORY.txt
@@ -4,7 +4,32 @@ Changelog
 2.0.6 (unreleased)
 ------------------
 
-- Nothing changed yet.
+- Disable CSRF protection when creating a scale so we can write to the database
+  [vangheem]
+
+
+2.0.5 (2014-02-19)
+------------------
+
+- Ensure zope.app.file.file module alias is created before its use in
+  file package.
+  [thomasdesvenain]
+
+
+2.0.4 (2014-01-27)
+------------------
+
+- Disable CSRF protection when creating a scale so we can write to the database
+  [vangheem]
+
+- Validate image field : check if content is actually an image using mimetype.
+  [thomasdesvenain]
+
+- Fix: get_contenttype works when empty string is given as contentType.
+
+- Backward compatibility of NamedFile with zope.app.file FileChunk.
+  Avoids NamedFile validation unexpected failures.
+  [thomasdesvenain]
 
 
 2.0.5 (2014-02-19)
diff --git a/plone/namedfile/scaling.py b/plone/namedfile/scaling.py
index e982730..5b8a126 100644
--- a/plone/namedfile/scaling.py
+++ b/plone/namedfile/scaling.py
@@ -14,6 +14,8 @@
 from zope.traversing.interfaces import ITraversable, TraversalError
 from zope.publisher.interfaces import IPublishTraverse, NotFound
 from zope.app.file.file import FileChunk
+from plone.protect.interfaces import IDisableCSRFProtection
+from zope.interface import alsoProvides
 
 _marker = object()
 
@@ -296,8 +298,11 @@ def scale(self,
             if not scale in available:
                 return None
             width, height = available[scale]
-        storage = AnnotationStorage(self.context, self.modified)
 
+        if self.request is not None:
+            alsoProvides(self.request, IDisableCSRFProtection)
+
+        storage = AnnotationStorage(self.context, self.modified)
         info = storage.scale(factory=self.create,
                              fieldname=fieldname,
                              height=height,




-------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CHANGES.log
Type: application/octet-stream
Size: 2331 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-testbot/attachments/20140312/1cab1425/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.log
Type: application/octet-stream
Size: 158488 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-testbot/attachments/20140312/1cab1425/attachment-0003.obj>


More information about the Testbot mailing list