From zope-coders-admin at zope.org Thu Apr 1 10:01:40 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 1 10:01:42 2004 Subject: [ZCM] [ZC] 1281/ 1 Request "Need a way to include non-xml valid structure in ZPT attributes" Message-ID: Issue #1281 Update (Request) "Need a way to include non-xml valid structure in ZPT attributes" Status Pending, Zope/feature medium To followup, visit: http://collector.zope.org/Zope/1281 ============================================================== = Request - Entry #1 by salimfadhley on Apr 1, 2004 10:01 am Background: Sometimes we need to generate non-standard attributes, which while not being valid XML has some practical value when integrating Zope applications with other systems. I am working on an application part-written in Zope that makes content for a mailing system to re-distribute. The mailing system takes HTML documents with some embedded TCL. I would like to be able to generate all of this using Zope and ZPT - the problem is the embedded TCL requires characters that ZPT will not allow in attributes. Rationale: Some other applications *REQUIRE* HTML-like input formats, despite not being valid XML, it would be great if these with the ZPT I know and love. Example - How I am generating tags: click me Example - an attribute I need to create: click me Example - What actually happens: Explaination: ZPT is smart enough to know that an attribute should never contain a " (quote-mark) character, so it has tried to escape it to preserve sanity... however in this case it has done the wrong thing, I actually wanted the EXACT output of the function - no matter how bizzare it looks. Request: Could there be a modifier to tal:attributes, much like 'structure' when applied to tal:replace that prevents ZPT from escaping or otherwise fixing the data being applied to that attribute? ============================================================== From zope-coders-admin at zope.org Thu Apr 1 13:26:21 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 1 13:26:25 2004 Subject: [ZCM] [ZC] 1282/ 1 Request "Windows-specific test failures in CVS" Message-ID: Issue #1282 Update (Request) "Windows-specific test failures in CVS" Status Pending, Zope/test medium To followup, visit: http://zope.org/Collectors/Zope/1282 ============================================================== = Request - Entry #1 by tim_one on Apr 1, 2004 1:26 pm There are currently 7 similar Windows-specific failures in configuration tests. Here's the traceback for one: FAIL: test_fcgi_factory (ZServer.tests.test_config.ZServerConfigurationTestCase) Traceback (most recent call last): File "C:\Code\Zope\lib/python\ZServer\tests\test_config.py", line 148, in test_fcgi_factory self.check_prepare(factory) File "C:\Code\Zope\lib/python\ZServer\tests\test_config.py", line 71, in check_prepare self.assertEqual(factory.host, "127.0.0.1") File "C:\PYTHON23\lib\unittest.py", line 302, in failUnlessEqual raise self.failureException, \ AssertionError: 'localhost' != '127.0.0.1' In addition to that one, these also fail with the same 'localhost' versus '127.0.0.1' symptom: test_ftp_factory test_http_factory test_icp_factory test_webdav_source_factory test_monitor_factory_with_emergency_user test_monitor_factory_without_emergency_user ============================================================== From zope-coders-admin at zope.org Thu Apr 1 13:49:10 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 1 13:49:12 2004 Subject: [ZCM] [ZC] 1283/ 1 Request "DTML Method "standard_error_message" with uppercase html tag" Message-ID: Issue #1283 Update (Request) "DTML Method "standard_error_message" with uppercase html tag" Status Pending, Zope/bug+solution low To followup, visit: http://zope.org/Collectors/Zope/1283 ============================================================== = Request - Entry #1 by ciciliat on Apr 1, 2004 1:49 pm The DTML Method "standard_error_message" located at Zope root has a closing

tag written in uppercase, what raises annoying errors when working with XML and XHTML: Line ... 12

13 Error Type: &dtml-error_type;
14 Error Value: &dtml-error_value;
15

... Solution: Change the tag at line 15 to

. ============================================================== From zope-coders-admin at zope.org Thu Apr 1 14:57:48 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 1 14:57:49 2004 Subject: [ZCM] [ZC] 1283/ 2 Accept "DTML Method "standard_error_message" with uppercase html tag" Message-ID: Issue #1283 Update (Accept) "DTML Method "standard_error_message" with uppercase html tag" Status Accepted, Zope/bug+solution low To followup, visit: http://zope.org/Collectors/Zope/1283 ============================================================== = Accept - Entry #2 by ctheune on Apr 1, 2004 2:57 pm Status: Pending => Accepted Supporters added: ctheune i'll put this in 2.7 maintenance branch and on HEAD ________________________________________ = Request - Entry #1 by ciciliat on Apr 1, 2004 1:49 pm The DTML Method "standard_error_message" located at Zope root has a closing

tag written in uppercase, what raises annoying errors when working with XML and XHTML: Line ... 12

13 Error Type: &dtml-error_type;
14 Error Value: &dtml-error_value;
15

... Solution: Change the tag at line 15 to

. ============================================================== From zope-coders-admin at zope.org Thu Apr 1 15:06:25 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 1 15:06:28 2004 Subject: [ZCM] [ZC] 1283/ 3 Resolve "DTML Method "standard_error_message" with uppercase html tag" Message-ID: Issue #1283 Update (Resolve) "DTML Method "standard_error_message" with uppercase html tag" Status Resolved, Zope/bug+solution low To followup, visit: http://zope.org/Collectors/Zope/1283 ============================================================== = Resolve - Entry #3 by ctheune on Apr 1, 2004 3:06 pm Status: Accepted => Resolved landed on zope 2.7 maintenance and HEAD ________________________________________ = Accept - Entry #2 by ctheune on Apr 1, 2004 2:57 pm Status: Pending => Accepted Supporters added: ctheune i'll put this in 2.7 maintenance branch and on HEAD ________________________________________ = Request - Entry #1 by ciciliat on Apr 1, 2004 1:49 pm The DTML Method "standard_error_message" located at Zope root has a closing

tag written in uppercase, what raises annoying errors when working with XML and XHTML: Line ... 12

13 Error Type: &dtml-error_type;
14 Error Value: &dtml-error_value;
15

... Solution: Change the tag at line 15 to

. ============================================================== From zope-coders-admin at zope.org Thu Apr 1 16:39:37 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 1 16:39:40 2004 Subject: [ZCM] [ZC] 1222/ 5 Edit "Help system : Zope Api doc requires authentication" Message-ID: Issue #1222 Update (Edit) "Help system : Zope Api doc requires authentication" Status Pending, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1222 ============================================================== = Edit - Entry #5 by chrisw on Apr 1, 2004 4:39 pm Changes: submitter email, edited transcript, revised title, new comment Why do people have such trouble with the word authentication? ;-) ________________________________________ = Comment - Entry #4 by jmr on Mar 31, 2004 3:23 pm Also still exists on 2.7.0 on FreeBSD 4.9, python 2.3.2. In addition, this seems to be the same bug as 1205, which was closed. ________________________________________ = Comment - Entry #3 by gillou on Mar 6, 2004 8:13 am Investigating somehow deeper in that bug, the following scenario will help experts of HelpSys to find what's going on... 1/ Add following files ("zztest1.py" and "zztest2") to $SOFTWARE_HOME\Products\OFSP\help : """ zztest1 You can view this doc """ """ zztest2 This will raise an Unauthorized error, apparently raised from the dummy function below:-( """ def dummy(somearg): """"Useless docstring """" 2/ Restart your Zope instance 3/ Browse the Help system to "Zope Help / API Reference / zztest1" --> OK 4/ Browse the Help system to "Zope Help / API Reference / zztest2" --> Unauthorized is raised, event a root Manager authentication fails :-( Note : this has been don on a WinXP box, yet untested under a Unix (like) box. ________________________________________ = Comment - Entry #2 by mjablonski on Feb 12, 2004 2:58 am This problem still exists with the final release of Zope 2.7. ________________________________________ = Request - Entry #1 by gillou on Feb 9, 2004 5:49 am Viewing Zope API docs requires authentication. Scenario : 1/ log in as root manager 2/ click "help" from anywhere (folder for instance) 3/ browse the help tree to "Zope help > API Reference > (any topic)" This raises the authentication box, so nobody can view that help. ============================================================== From zope-coders-admin at zope.org Fri Apr 2 03:32:05 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Fri Apr 2 03:32:09 2004 Subject: [ZCM] [ZC] 1285/ 1 Request "[Weakness] analysis of Zope startup problems" Message-ID: Issue #1285 Update (Request) "[Weakness] analysis of Zope startup problems" Status Pending, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1285 ============================================================== = Request - Entry #1 by d.maurer on Apr 2, 2004 3:32 am Zope 2.7 delays access to log files until Zope is properly set up. This means: log files cannot be used to analyse startup problems. The official advice to analyse startup problems is to start Zope in the foreground and interpret the console log messages. However, this does *NOT* work when Zope is not running in debug mode. "Zope.Startup.ZopeStarter.setupStartupHandler" expressly suppresses messages to "stderr" when Zope is not running in debug mode. Apparently, we do not have an easy way to analyse startup problems for Zope in production mode. In my view, this is really bad. Please provide a way to control how startup messages should be handled. The best place would be a file (at least for all installations that do not start Zope as root and later switch the effective user). I suggest to always use the standard log file unless told otherwise by an explicit configuration option. ============================================================== From zope-coders-admin at zope.org Fri Apr 2 05:08:55 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Fri Apr 2 05:09:07 2004 Subject: [ZCM] [ZC] 1286/ 1 Request "App.Management.Tabs.manage_workspace sucks! :-(" Message-ID: Issue #1286 Update (Request) "App.Management.Tabs.manage_workspace sucks! :-(" Status Pending, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/1286 ============================================================== = Request - Entry #1 by chrisw on Apr 2, 2004 5:08 am 1. manage_workspace is only protected by the Authenticated role, and that is done directly, not even through a permission. 2. self.filtered_manage_roles then limits the options of what can be shown, which might end up being nothing. But, because the method is only protected by 'Authenticated', no chance is given to specify other user credentials (say, from a user folder higher up in the tree) which might be able to see something. 3. There's a bare try/except which masks errors. From what I can see, it should ONLY catch IndexError's. 4. The "raise TypeError" could do with some explanation. 5. The Unauthorized could raise a more helpful message "You are not authorized to view an of this object's management itnerface" ============================================================== From zope-coders-admin at zope.org Sun Apr 4 03:08:34 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Sun Apr 4 03:08:39 2004 Subject: [ZCM] [ZC] 1125/ 2 Comment "Function "manage_ paste" ignores proxy manager role " Message-ID: Issue #1125 Update (Comment) "Function "manage_ paste" ignores proxy manager role " Status Pending, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1125 ============================================================== = Comment - Entry #2 by djay on Apr 4, 2004 3:08 am I've come across this bug and have found references to it going back years. I'm suprised it still exists. Have I missed some reference to a reason why it still exists? I'd have a go at fixing it myself but I'm not 100% confident with the security code ________________________________________ = Request - Entry #1 by Anonymous User on Nov 18, 2003 5:14 am Function "manage_pasteObjects" used in a Python-Script works by being logged in with the "Manager"-Role Otherwise giving a Python-Script the Proxy-Role "Manager" and using "manage_pasteObjects" by this Script causes the following Error: Error Type: Unauthorized Error Value: You are not allowed to access manage_pasteObjects in this context ============================================================== From zope-coders-admin at zope.org Mon Apr 5 21:45:08 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Mon Apr 5 21:45:16 2004 Subject: [ZCM] [ZC] 1287/ 1 Request "ZTUtils.Zope make_hidden_input could preserve ordering" Message-ID: Issue #1287 Update (Request) "ZTUtils.Zope make_hidden_input could preserve ordering" Status Pending, Zope/feature+solution low To followup, visit: http://collector.zope.org/Zope/1287 ============================================================== = Request - Entry #1 by djay on Apr 5, 2004 9:45 pm Sometimes ordering of inputs on forms is important. make_hidden_input method uses a dict which is by default unordered. If a dict like object was passed in that was ordered then make_hidden_input will reorder it which isn't desirable. The following code retains the existing order. Perhaps another way to retain order is to pass in an optional list of keys which specifies the order. def make_hidden_input(*args, **kwargs): '''Redo ZTUtils.Zope.make_hidden_input so it orders things correctly ''' if len(args) > 0: d = args[0].copy() for arg in args[1:]: d.update(arg) else: d = {} d.update(kwargs) hq = cgi.escape qlist = complex_marshal(d.items()) for i in range(len(qlist)): k, m, v = qlist[i] qlist[i] = ('' % (hq(k), m, hq(str(v)))) return '\n'.join(qlist) ============================================================== From zope-coders-admin at zope.org Mon Apr 5 22:03:01 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Mon Apr 5 22:03:05 2004 Subject: [ZCM] [ZC] 1288/ 1 Request "ZTUtils.Zope.complex_mashal doesn't handle :records" Message-ID: Issue #1288 Update (Request) "ZTUtils.Zope.complex_mashal doesn't handle :records" Status Pending, Zope/bug+solution medium To followup, visit: http://collector.zope.org/Zope/1288 ============================================================== = Request - Entry #1 by djay on Apr 5, 2004 10:03 pm This simple patch allows complex_marshal to return appropriate values for the case when a value is a list of dictionaries. Or at least the test in this code is when the first element of the list is a dictionary. Perhaps this could be tightened. def complex_marshal(pairs): '''Add request marshalling information to a list of name-value pairs. Names must be strings. Values may be strings, integers, floats, or DateTimes, and they may also be lists or namespaces containing these types. The list is edited in place so that each (name, value) pair becomes a (name, marshal, value) triple. The middle value is the request marshalling string. Integer, float, and DateTime values will have ":int", ":float", or ":date" as their marshal string. Lists that contain dictionaries will be marshalled using ":records". Other lists will be flattened, and the elements given ":list" in addition to their simple marshal string. Dictionaries will be flattened and marshalled using ":record". ''' i = len(pairs) while i > 0: i = i - 1 k, v = pairs[i] m = '' sublist = None if isinstance(v, StringType): pass elif hasattr(v, 'items'): sublist = [] for sk, sv in v.items(): sm = simple_marshal(sv) sublist.append(('%s.%s' % (k, sk), '%s:record' % sm, sv)) elif isinstance(v, ListType): sublist = [] if len(v) > 0 and hasattr(v[0], 'items'): for rec in v: for sk, sv in rec.items(): sm = simple_marshal(sv) sublist.append(('%s.%s' % (k, sk), '%s:records' % sm, sv)) else: for sv in v: sm = simple_marshal(sv) sublist.append((k, '%s:list' % sm, sv)) else: m = simple_marshal(v) if sublist is None: pairs[i] = (k, m, v) else: pairs[i:i + 1] = sublist return pairs ============================================================== From zope-coders-admin at zope.org Tue Apr 6 10:34:23 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Tue Apr 6 10:34:26 2004 Subject: [ZCM] [ZC] 1289/ 1 Request "Bug preventing ZSQLMethods being editted via WebDAV" Message-ID: Issue #1289 Update (Request) "Bug preventing ZSQLMethods being editted via WebDAV" Status Pending, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/1289 ============================================================== = Request - Entry #1 by chrisw on Apr 6, 2004 10:34 am Here's the patch: --- Da.py.old 2004-04-06 15:29:56.546875000 +0100 +++ DA.py 2004-04-06 15:31:11.781250000 +0100 @@ -266,6 +266,8 @@ self.REQUEST.RESPONSE.setHeader('Content-Type', 'text/plain') return '%s\n%s' % (self.arguments_src, self.src) + def get_size(self): return len(self.document_src()) + def PUT(self, REQUEST, RESPONSE): """Handle put requests""" self.dav__init(REQUEST, RESPONSE) ============================================================== From zope-coders-admin at zope.org Thu Apr 8 04:34:56 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 8 04:35:18 2004 Subject: [ZCM] [ZC] 1290/ 1 Request "setup.py not up to date" Message-ID: Issue #1290 Update (Request) "setup.py not up to date" Status Pending, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1290 ============================================================== = Request - Entry #1 by yuppie on Apr 8, 2004 4:34 am the new 'transaction' package is not installed ============================================================== From zope-coders-admin at zope.org Thu Apr 8 04:36:31 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 8 04:36:37 2004 Subject: [ZCM] [ZC] 1291/ 1 Request "zopectl start broken" Message-ID: Issue #1291 Update (Request) "zopectl start broken" Status Pending, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1291 ============================================================== = Request - Entry #1 by yuppie on Apr 8, 2004 4:36 am $ bin/zopectl start Traceback (most recent call last): File "/usr/local/lib/Zope-2.8/lib/python/Zope/Startup/zopectl.py", line 218, in ? main() File "/usr/local/lib/Zope-2.8/lib/python/Zope/Startup/zopectl.py", line 201, in main c.onecmd(" ".join(options.args)) File "/usr/lib/python2.3/cmd.py", line 210, in onecmd return func(arg) File "/usr/local/lib/Zope-2.8/lib/python/Zope/Startup/zopectl.py", line 134, in do_start ZDCmd.do_start(self, arg) File "/usr/local/lib/Zope-2.8/lib/python/zdaemon/zdctl.py", line 211, in do_start args += self._get_override("-m", "umask") File "/usr/local/lib/Zope-2.8/lib/python/Zope/Startup/zopectl.py", line 116, in _get_override value = getattr(self.options, name) AttributeError: ZopeCtlOptions instance has no attribute 'umask' ============================================================== From zope-coders-admin at zope.org Thu Apr 8 10:24:25 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 8 10:24:30 2004 Subject: [ZCM] [ZC] 1290/ 2 Assign "setup.py not up to date" Message-ID: Issue #1290 Update (Assign) "setup.py not up to date" Status Accepted, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1290 ============================================================== = Assign - Entry #2 by tim_one on Apr 8, 2004 10:24 am Status: Pending => Accepted Supporters added: tim_one Uploaded: "trans.diff" - http://zope.org/Collectors/Zope/1290/trans.diff/view I believe there's a problem, but am not sure how to fix it (I only use "setup.py build_ext -i", and that seems to work fine). Does the attached patch (trans.diff) do the trick for you? If not, have a patch that does? ________________________________________ = Request - Entry #1 by yuppie on Apr 8, 2004 4:34 am the new 'transaction' package is not installed ============================================================== From zope-coders-admin at zope.org Thu Apr 8 10:45:02 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 8 10:45:06 2004 Subject: [ZCM] [ZC] 1098/ 3 Comment "mkzopezeolocal.py - One step create local ZEO dev setup" Message-ID: Issue #1098 Update (Comment) "mkzopezeolocal.py - One step create local ZEO dev setup" Status Pending, Zope/feature medium To followup, visit: http://zope.org/Collectors/Zope/1098 ============================================================== = Comment - Entry #3 by simon on Apr 8, 2004 10:44 am There are some related notes at http://zopewiki.org/ZEO . ________________________________________ = Comment - Entry #2 by mcdonc on Oct 27, 2003 4:43 pm It would probably be easier to create a make target that did this that didn't add any additional scripts. ________________________________________ = Request - Entry #1 by JeffK on Oct 27, 2003 2:35 pm It would be very convenient to have an instance creation script that set up the optimal single-computer zope/zeo development configuration, ready for python debugging and console Zope/ZODB interaction. Something like mkzopelocalzeo.py, which accepts parameters for zope instance home, zeo instance home, zeo port, optional zope user, and whatever other info is needed for the best console zope debugging setup. It should be possible to pass all info as command line parameters. This would be helpful for new users looking for easy access to the console debugger, as well as developers rebuilding frequently from checkouts or beta releases. ============================================================== From zope-coders-admin at zope.org Thu Apr 8 11:07:14 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 8 11:07:17 2004 Subject: [ZCM] [ZC] 1290/ 3 Comment "setup.py not up to date" Message-ID: Issue #1290 Update (Comment) "setup.py not up to date" Status Accepted, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1290 ============================================================== = Comment - Entry #3 by tseaver on Apr 8, 2004 11:07 am Tim wrote: > I believe there's a problem, but am not sure how to fix it (I only use > "setup.py build_ext -i", and that seems to work fine). Does the attached > patch (trans.diff) do the trick for you? If not, have a patch that does? Because 'transaction' is a pure Python package, an "in-place" build doesn't need any help from setup.py. To test the patch, try doing a non-inplace build (e.g., 'setup.py build'), and then run the tests from the 'build' subtree. They will break before applying Tim's patch; by inspection, that patch *should* fix them. Tres. ________________________________________ = Assign - Entry #2 by tim_one on Apr 8, 2004 10:24 am Status: Pending => Accepted Supporters added: tim_one Uploaded: "trans.diff" - http://zope.org/Collectors/Zope/1290/trans.diff/view I believe there's a problem, but am not sure how to fix it (I only use "setup.py build_ext -i", and that seems to work fine). Does the attached patch (trans.diff) do the trick for you? If not, have a patch that does? ________________________________________ = Request - Entry #1 by yuppie on Apr 8, 2004 4:34 am the new 'transaction' package is not installed ============================================================== From zope-coders-admin at zope.org Thu Apr 8 11:24:25 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 8 11:24:28 2004 Subject: [ZCM] [ZC] 1290/ 4 Comment "setup.py not up to date" Message-ID: Issue #1290 Update (Comment) "setup.py not up to date" Status Accepted, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1290 ============================================================== = Comment - Entry #4 by tim_one on Apr 8, 2004 11:24 am Sorry Tres, I've never been able to run the tests after doing "setup.py build" in Zope. I don't know why not -- maybe it's a Windows thing. That's why I asked yuppie whether the patch works for whatever he does. ________________________________________ = Comment - Entry #3 by tseaver on Apr 8, 2004 11:07 am Tim wrote: > I believe there's a problem, but am not sure how to fix it (I only use > "setup.py build_ext -i", and that seems to work fine). Does the attached > patch (trans.diff) do the trick for you? If not, have a patch that does? Because 'transaction' is a pure Python package, an "in-place" build doesn't need any help from setup.py. To test the patch, try doing a non-inplace build (e.g., 'setup.py build'), and then run the tests from the 'build' subtree. They will break before applying Tim's patch; by inspection, that patch *should* fix them. Tres. ________________________________________ = Assign - Entry #2 by tim_one on Apr 8, 2004 10:24 am Status: Pending => Accepted Supporters added: tim_one Uploaded: "trans.diff" - http://zope.org/Collectors/Zope/1290/trans.diff/view I believe there's a problem, but am not sure how to fix it (I only use "setup.py build_ext -i", and that seems to work fine). Does the attached patch (trans.diff) do the trick for you? If not, have a patch that does? ________________________________________ = Request - Entry #1 by yuppie on Apr 8, 2004 4:34 am the new 'transaction' package is not installed ============================================================== From zope-coders-admin at zope.org Thu Apr 8 12:26:07 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 8 12:26:11 2004 Subject: [ZCM] [ZC] 1290/ 5 Comment "setup.py not up to date" Message-ID: Issue #1290 Update (Comment) "setup.py not up to date" Status Accepted, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1290 ============================================================== = Comment - Entry #5 by yuppie on Apr 8, 2004 12:26 pm 1. Your patch works fine to resolve the critical problem: A non-inplace installation starts again. 2. Besides that, I'd like to see tests working after doing "setup.py build". What I need for that is: transaction/tests/ installed ZODB/config.xml installed I can provide a patch or do the necessary checkin myself. Just did not want to touch ZODB setup without asking. Maybe *.txt files should also be installed? ________________________________________ = Comment - Entry #4 by tim_one on Apr 8, 2004 11:24 am Sorry Tres, I've never been able to run the tests after doing "setup.py build" in Zope. I don't know why not -- maybe it's a Windows thing. That's why I asked yuppie whether the patch works for whatever he does. ________________________________________ = Comment - Entry #3 by tseaver on Apr 8, 2004 11:07 am Tim wrote: > I believe there's a problem, but am not sure how to fix it (I only use > "setup.py build_ext -i", and that seems to work fine). Does the attached > patch (trans.diff) do the trick for you? If not, have a patch that does? Because 'transaction' is a pure Python package, an "in-place" build doesn't need any help from setup.py. To test the patch, try doing a non-inplace build (e.g., 'setup.py build'), and then run the tests from the 'build' subtree. They will break before applying Tim's patch; by inspection, that patch *should* fix them. Tres. ________________________________________ = Assign - Entry #2 by tim_one on Apr 8, 2004 10:24 am Status: Pending => Accepted Supporters added: tim_one Uploaded: "trans.diff" - http://zope.org/Collectors/Zope/1290/trans.diff/view I believe there's a problem, but am not sure how to fix it (I only use "setup.py build_ext -i", and that seems to work fine). Does the attached patch (trans.diff) do the trick for you? If not, have a patch that does? ________________________________________ = Request - Entry #1 by yuppie on Apr 8, 2004 4:34 am the new 'transaction' package is not installed ============================================================== From zope-coders-admin at zope.org Thu Apr 8 12:43:19 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 8 12:43:24 2004 Subject: [ZCM] [ZC] 1290/ 6 Comment "setup.py not up to date" Message-ID: Issue #1290 Update (Comment) "setup.py not up to date" Status Accepted, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1290 ============================================================== = Comment - Entry #6 by tim_one on Apr 8, 2004 12:43 pm OK, I checked that in: Zope/setup.py new revision: 1.57 If you need other changes to finish what you're trying to do, please feel encouraged to check them in. ________________________________________ = Comment - Entry #5 by yuppie on Apr 8, 2004 12:26 pm 1. Your patch works fine to resolve the critical problem: A non-inplace installation starts again. 2. Besides that, I'd like to see tests working after doing "setup.py build". What I need for that is: transaction/tests/ installed ZODB/config.xml installed I can provide a patch or do the necessary checkin myself. Just did not want to touch ZODB setup without asking. Maybe *.txt files should also be installed? ________________________________________ = Comment - Entry #4 by tim_one on Apr 8, 2004 11:24 am Sorry Tres, I've never been able to run the tests after doing "setup.py build" in Zope. I don't know why not -- maybe it's a Windows thing. That's why I asked yuppie whether the patch works for whatever he does. ________________________________________ = Comment - Entry #3 by tseaver on Apr 8, 2004 11:07 am Tim wrote: > I believe there's a problem, but am not sure how to fix it (I only use > "setup.py build_ext -i", and that seems to work fine). Does the attached > patch (trans.diff) do the trick for you? If not, have a patch that does? Because 'transaction' is a pure Python package, an "in-place" build doesn't need any help from setup.py. To test the patch, try doing a non-inplace build (e.g., 'setup.py build'), and then run the tests from the 'build' subtree. They will break before applying Tim's patch; by inspection, that patch *should* fix them. Tres. ________________________________________ = Assign - Entry #2 by tim_one on Apr 8, 2004 10:24 am Status: Pending => Accepted Supporters added: tim_one Uploaded: "trans.diff" - http://zope.org/Collectors/Zope/1290/trans.diff/view I believe there's a problem, but am not sure how to fix it (I only use "setup.py build_ext -i", and that seems to work fine). Does the attached patch (trans.diff) do the trick for you? If not, have a patch that does? ________________________________________ = Request - Entry #1 by yuppie on Apr 8, 2004 4:34 am the new 'transaction' package is not installed ============================================================== From zope-coders-admin at zope.org Fri Apr 9 06:37:13 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Fri Apr 9 06:37:17 2004 Subject: [ZCM] [ZC] 1290/ 7 Comment "setup.py not up to date" Message-ID: Issue #1290 Update (Comment) "setup.py not up to date" Status Accepted, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1290 ============================================================== = Comment - Entry #7 by yuppie on Apr 9, 2004 6:37 am Thanks! Could someone please close this issue? ________________________________________ = Comment - Entry #6 by tim_one on Apr 8, 2004 12:43 pm OK, I checked that in: Zope/setup.py new revision: 1.57 If you need other changes to finish what you're trying to do, please feel encouraged to check them in. ________________________________________ = Comment - Entry #5 by yuppie on Apr 8, 2004 12:26 pm 1. Your patch works fine to resolve the critical problem: A non-inplace installation starts again. 2. Besides that, I'd like to see tests working after doing "setup.py build". What I need for that is: transaction/tests/ installed ZODB/config.xml installed I can provide a patch or do the necessary checkin myself. Just did not want to touch ZODB setup without asking. Maybe *.txt files should also be installed? ________________________________________ = Comment - Entry #4 by tim_one on Apr 8, 2004 11:24 am Sorry Tres, I've never been able to run the tests after doing "setup.py build" in Zope. I don't know why not -- maybe it's a Windows thing. That's why I asked yuppie whether the patch works for whatever he does. ________________________________________ = Comment - Entry #3 by tseaver on Apr 8, 2004 11:07 am Tim wrote: > I believe there's a problem, but am not sure how to fix it (I only use > "setup.py build_ext -i", and that seems to work fine). Does the attached > patch (trans.diff) do the trick for you? If not, have a patch that does? Because 'transaction' is a pure Python package, an "in-place" build doesn't need any help from setup.py. To test the patch, try doing a non-inplace build (e.g., 'setup.py build'), and then run the tests from the 'build' subtree. They will break before applying Tim's patch; by inspection, that patch *should* fix them. Tres. ________________________________________ = Assign - Entry #2 by tim_one on Apr 8, 2004 10:24 am Status: Pending => Accepted Supporters added: tim_one Uploaded: "trans.diff" - http://zope.org/Collectors/Zope/1290/trans.diff/view I believe there's a problem, but am not sure how to fix it (I only use "setup.py build_ext -i", and that seems to work fine). Does the attached patch (trans.diff) do the trick for you? If not, have a patch that does? ________________________________________ = Request - Entry #1 by yuppie on Apr 8, 2004 4:34 am the new 'transaction' package is not installed ============================================================== From zope-coders-admin at zope.org Fri Apr 9 13:57:28 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Fri Apr 9 13:57:43 2004 Subject: [ZCM] [ZC] 1290/ 8 Resolve "setup.py not up to date" Message-ID: Issue #1290 Update (Resolve) "setup.py not up to date" Status Resolved, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1290 ============================================================== = Resolve - Entry #8 by tseaver on Apr 9, 2004 1:57 pm Status: Accepted => Resolved Per request. ________________________________________ = Comment - Entry #7 by yuppie on Apr 9, 2004 6:37 am Thanks! Could someone please close this issue? ________________________________________ = Comment - Entry #6 by tim_one on Apr 8, 2004 12:43 pm OK, I checked that in: Zope/setup.py new revision: 1.57 If you need other changes to finish what you're trying to do, please feel encouraged to check them in. ________________________________________ = Comment - Entry #5 by yuppie on Apr 8, 2004 12:26 pm 1. Your patch works fine to resolve the critical problem: A non-inplace installation starts again. 2. Besides that, I'd like to see tests working after doing "setup.py build". What I need for that is: transaction/tests/ installed ZODB/config.xml installed I can provide a patch or do the necessary checkin myself. Just did not want to touch ZODB setup without asking. Maybe *.txt files should also be installed? ________________________________________ = Comment - Entry #4 by tim_one on Apr 8, 2004 11:24 am Sorry Tres, I've never been able to run the tests after doing "setup.py build" in Zope. I don't know why not -- maybe it's a Windows thing. That's why I asked yuppie whether the patch works for whatever he does. ________________________________________ = Comment - Entry #3 by tseaver on Apr 8, 2004 11:07 am Tim wrote: > I believe there's a problem, but am not sure how to fix it (I only use > "setup.py build_ext -i", and that seems to work fine). Does the attached > patch (trans.diff) do the trick for you? If not, have a patch that does? Because 'transaction' is a pure Python package, an "in-place" build doesn't need any help from setup.py. To test the patch, try doing a non-inplace build (e.g., 'setup.py build'), and then run the tests from the 'build' subtree. They will break before applying Tim's patch; by inspection, that patch *should* fix them. Tres. ________________________________________ = Assign - Entry #2 by tim_one on Apr 8, 2004 10:24 am Status: Pending => Accepted Supporters added: tim_one Uploaded: "trans.diff" - http://zope.org/Collectors/Zope/1290/trans.diff/view I believe there's a problem, but am not sure how to fix it (I only use "setup.py build_ext -i", and that seems to work fine). Does the attached patch (trans.diff) do the trick for you? If not, have a patch that does? ________________________________________ = Request - Entry #1 by yuppie on Apr 8, 2004 4:34 am the new 'transaction' package is not installed ============================================================== From zope-coders-admin at zope.org Sat Apr 10 06:02:38 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Sat Apr 10 06:02:41 2004 Subject: [ZCM] [ZC] 1292/ 1 Request "make uninstall is highly dangerous" Message-ID: Issue #1292 Update (Request) "make uninstall is highly dangerous" Status Pending, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1292 ============================================================== = Request - Entry #1 by simon on Apr 10, 2004 6:02 am > ./configure --prefix=/usr/local ... > make ... > sudo make install ... > sudo make uninstall rm -rf "/usr/local" > And I lost /usr/local. That's bad. ============================================================== From zope-coders-admin at zope.org Sat Apr 10 17:24:32 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Sat Apr 10 17:24:38 2004 Subject: [ZCM] [ZC] 1293/ 1 Request "User error in Zope.conf can lead to bind failure" Message-ID: Issue #1293 Update (Request) "User error in Zope.conf can lead to bind failure" Status Pending, Zope/bug low To followup, visit: http://zope.org/Collectors/Zope/1293 ============================================================== = Request - Entry #1 by Anonymous User on Apr 10, 2004 5:24 pm If user fails to enter valid address Zope fails to detect the error and eventually terminates in bind call - (Due to invalid port number) # address 80 ============================================================== From zope-coders-admin at zope.org Sun Apr 11 07:08:42 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Sun Apr 11 07:08:46 2004 Subject: [ZCM] [ZC] 1292/ 2 Reject "make uninstall is highly dangerous" Message-ID: Issue #1292 Update (Reject) "make uninstall is highly dangerous" Status Rejected, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1292 ============================================================== = Reject - Entry #2 by ajung on Apr 11, 2004 7:08 am Status: Pending => Rejected Duplicate of #1259 ________________________________________ = Request - Entry #1 by simon on Apr 10, 2004 6:02 am > ./configure --prefix=/usr/local ... > make ... > sudo make install ... > sudo make uninstall rm -rf "/usr/local" > And I lost /usr/local. That's bad. ============================================================== From zope-coders-admin at zope.org Sun Apr 11 12:46:07 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Sun Apr 11 12:46:10 2004 Subject: [ZCM] [ZC] 1294/ 1 Request "VirtualHostMonster: Can't edit mappings" Message-ID: Issue #1294 Update (Request) "VirtualHostMonster: Can't edit mappings" Status Pending, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1294 ============================================================== = Request - Entry #1 by Anonymous User on Apr 11, 2004 12:46 pm visiting the "Mappings" tag of a newly added Virtual Host Monster gives error message: unexpected end tag, for tag , on line 43 of manage_edit I tried to find this DTML-document "manage_edit" but didn't succeed... ============================================================== From zope-coders-admin at zope.org Sun Apr 11 13:09:23 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Sun Apr 11 13:09:26 2004 Subject: [ZCM] [ZC] 1294/ 2 Comment "VirtualHostMonster: Can't edit mappings" Message-ID: Issue #1294 Update (Comment) "VirtualHostMonster: Can't edit mappings" Status Pending, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1294 ============================================================== = Comment - Entry #2 by ajung on Apr 11, 2004 1:09 pm works for me btw. Python 2.2.3 *is not* a supported Python version for running Zope 2.7 ________________________________________ = Request - Entry #1 by Anonymous User on Apr 11, 2004 12:46 pm visiting the "Mappings" tag of a newly added Virtual Host Monster gives error message: unexpected end tag, for tag , on line 43 of manage_edit I tried to find this DTML-document "manage_edit" but didn't succeed... ============================================================== From zope-coders-admin at zope.org Sun Apr 11 13:10:56 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Sun Apr 11 13:10:59 2004 Subject: [ZCM] [ZC] 1289/ 2 Comment "Bug preventing ZSQLMethods being editted via WebDAV" Message-ID: Issue #1289 Update (Comment) "Bug preventing ZSQLMethods being editted via WebDAV" Status Pending, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1289 ============================================================== = Comment - Entry #2 by ajung on Apr 11, 2004 1:10 pm Since you have CVS access I recommend to apply the patch on your own. ________________________________________ = Request - Entry #1 by chrisw on Apr 6, 2004 10:34 am Here's the patch: --- Da.py.old 2004-04-06 15:29:56.546875000 +0100 +++ DA.py 2004-04-06 15:31:11.781250000 +0100 @@ -266,6 +266,8 @@ self.REQUEST.RESPONSE.setHeader('Content-Type', 'text/plain') return '%s\n%s' % (self.arguments_src, self.src) + def get_size(self): return len(self.document_src()) + def PUT(self, REQUEST, RESPONSE): """Handle put requests""" self.dav__init(REQUEST, RESPONSE) ============================================================== From zope-coders-admin at zope.org Sun Apr 11 13:13:37 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Sun Apr 11 13:13:40 2004 Subject: [ZCM] [ZC] 1286/ 2 Comment "App.Management.Tabs.manage_workspace sucks! :-(" Message-ID: Issue #1286 Update (Comment) "App.Management.Tabs.manage_workspace sucks! :-(" Status Pending, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1286 ============================================================== = Comment - Entry #2 by ajung on Apr 11, 2004 1:13 pm Can you fix this? ________________________________________ = Request - Entry #1 by chrisw on Apr 2, 2004 5:08 am 1. manage_workspace is only protected by the Authenticated role, and that is done directly, not even through a permission. 2. self.filtered_manage_roles then limits the options of what can be shown, which might end up being nothing. But, because the method is only protected by 'Authenticated', no chance is given to specify other user credentials (say, from a user folder higher up in the tree) which might be able to see something. 3. There's a bare try/except which masks errors. From what I can see, it should ONLY catch IndexError's. 4. The "raise TypeError" could do with some explanation. 5. The Unauthorized could raise a more helpful message "You are not authorized to view an of this object's management itnerface" ============================================================== From zope-coders-admin at zope.org Sun Apr 11 13:19:02 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Sun Apr 11 13:19:06 2004 Subject: [ZCM] [ZC] 1237/ 2 Reject "zope.conf: confusing pre-filled values for "address" directive for "http-server" and "ftp-server"" Message-ID: Issue #1237 Update (Reject) "zope.conf: confusing pre-filled values for "address" directive for "http-server" and "ftp-server"" Status Rejected, Zope/feature+solution low To followup, visit: http://zope.org/Collectors/Zope/1237 ============================================================== = Reject - Entry #2 by ajung on Apr 11, 2004 1:19 pm Status: Pending => Rejected The default ports 8080 and 8021 are perfectly fine if you don't use the port-base option. Using 80/21 + port-base is more confusing for newbies. And using 80/21 as defaults is really not what one wants. ________________________________________ = Request - Entry #1 by Anonymous User on Feb 19, 2004 4:34 pm The pre-filled adress values should rather be "80", and "21", respectively. The naive user will use the pre-filled values as below, and will end up with a Zope which listens on 8080+8080 = port 16160. ---------------------------------------------------------- # valid keys are "address" and "force-connection-close" address 8080 # force-connection-close on # valid key is "address" address 8021 ----------------------------------------------------------- ============================================================== From zope-coders-admin at zope.org Wed Apr 14 01:37:43 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Wed Apr 14 01:37:46 2004 Subject: [ZCM] [ZC] 1295/ 1 Request "2.7.0 tutorial Lesson 6" Message-ID: Issue #1295 Update (Request) "2.7.0 tutorial Lesson 6" Status Pending, Zope/doc request low To followup, visit: http://zope.org/Collectors/Zope/1295 ============================================================== = Request - Entry #1 by Anonymous User on Apr 14, 2004 1:37 am Per "Lesson 6. Recent Elvis Sightings, cont.", I have edited sightings.html:

title

Sighting goes here
When I click "Save Changes" and "Test", I see a single box around all three sightings. The tutorial states: "Notice how each sighting now has a box drawn around it." ============================================================== From zope-coders-admin at zope.org Wed Apr 14 02:09:42 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Wed Apr 14 02:09:45 2004 Subject: [ZCM] [ZC] 1296/ 1 Request "2.7.0 tutorial Lesson 10" Message-ID: Issue #1296 Update (Request) "2.7.0 tutorial Lesson 10" Status Pending, Zope/doc request medium To followup, visit: http://zope.org/Collectors/Zope/1296 ============================================================== = Request - Entry #1 by Anonymous User on Apr 14, 2004 2:09 am Lesson 10 appears to be corrupt/ missing files. Please see below. David Lesson 10. So You've Seen Elvis Zope cannot find the tutorial examples. You should install the tutorial examples before continuing. Choose "Zope Tutorial" from the product add list in the Zope management screen to install the examples. If you have already installed the tutorial, you can either follow along manually, or reinstall the tutorial examples. Note: make sure that you have cookies turned on in your browser. What's the first thing you do when you spot Elvis? Report it at the "Elvis Lives" web site! Let's enhance our site to allow visitors to report their Elvis sightings. 1. Click the mailhost Mail Host object to edit it. 2. Type the name of your mail server in the SMTP Host field. Your mail server is typically named mail or smtp. For example, mail.elvislives.com. If you don't know the name of your mail server, ask your system administrator, or check the configuration of your mail client. 1. Click the Save Changes button. Now Zope can send mail. Next let's edit the mail sending script. 1. Click the action.py script to edit it. This script is called when a site visitor fills out an Elvis sighting form. It sends you mail telling you about the sighting. Mail is sent by calling the simple_send method of the Mail Host object. To get this script to work you need to change the recipient and sender variables. 1. Change the recipient and sender variables to your email address in place of user@host. 2. Click the Save Changes button. 3. Now go to the form.html page in the lesson10 folder. 4. Click the Test tab to view it. 5. Fill out the Elvis sighting form and submit it. You should soon receive a piece of email describing the Elvis sighting. Congratulations, you've built a mail form. If you receive a Zope error, there is a good chance that you haven't set the SMTP Host setting on your mail host object correctly. Summary After you create a mail host, you can send mail from any script by calling its simple_send method. * Mail Hosts allow you to send email. * The scripts format email messages and pass them to the Mail Host. In the next lesson you'll learn how to use Zope to put a database on the web. ============================================================== From zope-coders-admin at zope.org Wed Apr 14 13:34:20 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Wed Apr 14 13:34:22 2004 Subject: [ZCM] [ZC] 1297/ 1 Request "zopectl: errors in interactive mode" Message-ID: Issue #1297 Update (Request) "zopectl: errors in interactive mode" Status Pending, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1297 ============================================================== = Request - Entry #1 by ajung on Apr 14, 2004 1:34 pm ajung@localhost:~/sandboxes/plone2.0/instance: bin/zopectl -i program: /home/ajung/sandboxes/plone2.0/instance/bin/runzope daemon manager not running zopectl> adduser aj aj Traceback (most recent call last): File "", line 1, in ? File "/develop/sandboxes/plone2.0/Zope/lib/python/Zope/Startup/run.py", line 27, in configure opts = _setconfig(configfile) File "/develop/sandboxes/plone2.0/Zope/lib/python/Zope/Startup/run.py", line 41, in _setconfig opts.realize(doc="Sorry, no option docs yet.", raise_getopt_errs=0) File "/develop/sandboxes/plone2.0/Zope/lib/python/zdaemon/zdoptions.py", line 264, in realize self.load_configfile() File "/develop/sandboxes/plone2.0/Zope/lib/python/zdaemon/zdoptions.py", line 308, in load_configfile self.zconfig_options) File "/develop/sandboxes/plone2.0/Zope/lib/python/ZConfig/loader.py", line 43, in loadConfig return _get_config_loader(schema, overrides).loadURL(url) File "/develop/sandboxes/plone2.0/Zope/lib/python/ZConfig/loader.py", line 71, in loadURL return self.loadResource(r) File "/develop/sandboxes/plone2.0/Zope/lib/python/ZConfig/loader.py", line 183, in loadResource self._parse_resource(sm, resource) File "/develop/sandboxes/plone2.0/Zope/lib/python/ZConfig/loader.py", line 234, in _parse_resource parser.parse(matcher) File "/develop/sandboxes/plone2.0/Zope/lib/python/ZConfig/cfgparser.py", line 63, in parse section = self.end_section(section, line[2:-1]) File "/develop/sandboxes/plone2.0/Zope/lib/python/ZConfig/cfgparser.py", line 116, in end_section self.context.endSection( File "/develop/sandboxes/plone2.0/Zope/lib/python/ZConfig/loader.py", line 201, in endSection sectvalue = matcher.finish() File "/develop/sandboxes/plone2.0/Zope/lib/python/ZConfig/matcher.py", line 170, in finish return self.constuct() File "/develop/sandboxes/plone2.0/Zope/lib/python/ZConfig/matcher.py", line 212, in constuct v = v.convert(ci.datatype) File "/develop/sandboxes/plone2.0/Zope/lib/python/ZConfig/info.py", line 65, in convert return datatype(self.value) File "/develop/sandboxes/plone2.0/Zope/lib/python/Zope/Startup/datatypes.py", line 106, in importable_name package = __import__(n, g, g, component) File "/develop/sandboxes/plone2.0/Zope/lib/python/DBTab/ClassFactories.py", line 18, in ? import OFS.Uninstalled File "/develop/sandboxes/plone2.0/Zope/lib/python/OFS/Uninstalled.py", line 16, in ? import SimpleItem, Globals, Acquisition File "/develop/sandboxes/plone2.0/Zope/lib/python/OFS/SimpleItem.py", line 23, in ? import re, sys, Globals, App.Management, Acquisition, App.Undo File "/develop/sandboxes/plone2.0/Zope/lib/python/App/Management.py", line 219, in ? Globals.default__class_init__(Navigation) File "/develop/sandboxes/plone2.0/Zope/lib/python/App/class_init.py", line 66, in default__class_init__ AccessControl.Permission.registerPermissions(self.__ac_permissions__) File "/develop/sandboxes/plone2.0/Zope/lib/python/AccessControl/Permission.py", line 133, in registerPermissions Products.__ac_permissions__=( AttributeError: 'module' object has no attribute '__ac_permissions__' ============================================================== From zope-coders-admin at zope.org Thu Apr 15 00:23:26 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 15 00:23:29 2004 Subject: [ZCM] [ZC] 1296/ 2 Comment "2.7.0 tutorial Lesson 10" Message-ID: Issue #1296 Update (Comment) "2.7.0 tutorial Lesson 10" Status Pending, Zope/doc request medium To followup, visit: http://zope.org/Collectors/Zope/1296 ============================================================== = Comment - Entry #2 by dpchrist_holgerdanske_com on Apr 15, 2004 12:23 am When I got the error message yesterday, I filed the bug report and shutdown for the night. Tonight, I checked the bug report to see if there was resolution. There was not. So, I fired up Zope and tried again. Guess what -- this time it worked (see below). I'm somewhat curious as to what the explanation is. But as I don't know Python or Zope, I might not understand the answer anyway. At least my immediate problem (can't do lesson 10) appears to solved. David Lesson 10. So You've Seen Elvis Show lesson examples in another window. What's the first thing you do when you spot Elvis? Report it at the "Elvis Lives" web site! Let's enhance our site to allow visitors to report their Elvis sightings. 1. Click the mailhost Mail Host object to edit it. 2. Type the name of your mail server in the SMTP Host field. Your mail server is typically named mail or smtp. For example, mail.elvislives.com. If you don't know the name of your mail server, ask your system administrator, or check the configuration of your mail client. 1. Click the Save Changes button. Now Zope can send mail. Next let's edit the mail sending script. 1. Click the action.py script to edit it. This script is called when a site visitor fills out an Elvis sighting form. It sends you mail telling you about the sighting. Mail is sent by calling the simple_send method of the Mail Host object. To get this script to work you need to change the recipient and sender variables. 1. Change the recipient and sender variables to your email address in place of user@host. 2. Click the Save Changes button. 3. Now go to the form.html page in the lesson10 folder. 4. Click the Test tab to view it. 5. Fill out the Elvis sighting form and submit it. You should soon receive a piece of email describing the Elvis sighting. Congratulations, you've built a mail form. If you receive a Zope error, there is a good chance that you haven't set the SMTP Host setting on your mail host object correctly. Summary After you create a mail host, you can send mail from any script by calling its simple_send method. * Mail Hosts allow you to send email. * The scripts format email messages and pass them to the Mail Host. In the next lesson you'll learn how to use Zope to put a database on the web. ________________________________________ = Request - Entry #1 by Anonymous User on Apr 14, 2004 2:09 am Lesson 10 appears to be corrupt/ missing files. Please see below. David Lesson 10. So You've Seen Elvis Zope cannot find the tutorial examples. You should install the tutorial examples before continuing. Choose "Zope Tutorial" from the product add list in the Zope management screen to install the examples. If you have already installed the tutorial, you can either follow along manually, or reinstall the tutorial examples. Note: make sure that you have cookies turned on in your browser. What's the first thing you do when you spot Elvis? Report it at the "Elvis Lives" web site! Let's enhance our site to allow visitors to report their Elvis sightings. 1. Click the mailhost Mail Host object to edit it. 2. Type the name of your mail server in the SMTP Host field. Your mail server is typically named mail or smtp. For example, mail.elvislives.com. If you don't know the name of your mail server, ask your system administrator, or check the configuration of your mail client. 1. Click the Save Changes button. Now Zope can send mail. Next let's edit the mail sending script. 1. Click the action.py script to edit it. This script is called when a site visitor fills out an Elvis sighting form. It sends you mail telling you about the sighting. Mail is sent by calling the simple_send method of the Mail Host object. To get this script to work you need to change the recipient and sender variables. 1. Change the recipient and sender variables to your email address in place of user@host. 2. Click the Save Changes button. 3. Now go to the form.html page in the lesson10 folder. 4. Click the Test tab to view it. 5. Fill out the Elvis sighting form and submit it. You should soon receive a piece of email describing the Elvis sighting. Congratulations, you've built a mail form. If you receive a Zope error, there is a good chance that you haven't set the SMTP Host setting on your mail host object correctly. Summary After you create a mail host, you can send mail from any script by calling its simple_send method. * Mail Hosts allow you to send email. * The scripts format email messages and pass them to the Mail Host. In the next lesson you'll learn how to use Zope to put a database on the web. ============================================================== From zope-coders-admin at zope.org Thu Apr 15 01:20:10 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 15 01:20:13 2004 Subject: [ZCM] [ZC] 1296/ 3 Comment "2.7.0 tutorial Lesson 10" Message-ID: Issue #1296 Update (Comment) "2.7.0 tutorial Lesson 10" Status Pending, Zope/doc request medium To followup, visit: http://zope.org/Collectors/Zope/1296 ============================================================== = Comment - Entry #3 by ajung on Apr 15, 2004 1:20 am Forget about the old tutorial. It's old and no longer maintainted. The recommended way to learn Zope is to walk through the Zope Book. Especially learn about ZPT and not DTML. -aj ________________________________________ = Comment - Entry #2 by dpchrist_holgerdanske_com on Apr 15, 2004 12:23 am When I got the error message yesterday, I filed the bug report and shutdown for the night. Tonight, I checked the bug report to see if there was resolution. There was not. So, I fired up Zope and tried again. Guess what -- this time it worked (see below). I'm somewhat curious as to what the explanation is. But as I don't know Python or Zope, I might not understand the answer anyway. At least my immediate problem (can't do lesson 10) appears to solved. David Lesson 10. So You've Seen Elvis Show lesson examples in another window. What's the first thing you do when you spot Elvis? Report it at the "Elvis Lives" web site! Let's enhance our site to allow visitors to report their Elvis sightings. 1. Click the mailhost Mail Host object to edit it. 2. Type the name of your mail server in the SMTP Host field. Your mail server is typically named mail or smtp. For example, mail.elvislives.com. If you don't know the name of your mail server, ask your system administrator, or check the configuration of your mail client. 1. Click the Save Changes button. Now Zope can send mail. Next let's edit the mail sending script. 1. Click the action.py script to edit it. This script is called when a site visitor fills out an Elvis sighting form. It sends you mail telling you about the sighting. Mail is sent by calling the simple_send method of the Mail Host object. To get this script to work you need to change the recipient and sender variables. 1. Change the recipient and sender variables to your email address in place of user@host. 2. Click the Save Changes button. 3. Now go to the form.html page in the lesson10 folder. 4. Click the Test tab to view it. 5. Fill out the Elvis sighting form and submit it. You should soon receive a piece of email describing the Elvis sighting. Congratulations, you've built a mail form. If you receive a Zope error, there is a good chance that you haven't set the SMTP Host setting on your mail host object correctly. Summary After you create a mail host, you can send mail from any script by calling its simple_send method. * Mail Hosts allow you to send email. * The scripts format email messages and pass them to the Mail Host. In the next lesson you'll learn how to use Zope to put a database on the web. ________________________________________ = Request - Entry #1 by Anonymous User on Apr 14, 2004 2:09 am Lesson 10 appears to be corrupt/ missing files. Please see below. David Lesson 10. So You've Seen Elvis Zope cannot find the tutorial examples. You should install the tutorial examples before continuing. Choose "Zope Tutorial" from the product add list in the Zope management screen to install the examples. If you have already installed the tutorial, you can either follow along manually, or reinstall the tutorial examples. Note: make sure that you have cookies turned on in your browser. What's the first thing you do when you spot Elvis? Report it at the "Elvis Lives" web site! Let's enhance our site to allow visitors to report their Elvis sightings. 1. Click the mailhost Mail Host object to edit it. 2. Type the name of your mail server in the SMTP Host field. Your mail server is typically named mail or smtp. For example, mail.elvislives.com. If you don't know the name of your mail server, ask your system administrator, or check the configuration of your mail client. 1. Click the Save Changes button. Now Zope can send mail. Next let's edit the mail sending script. 1. Click the action.py script to edit it. This script is called when a site visitor fills out an Elvis sighting form. It sends you mail telling you about the sighting. Mail is sent by calling the simple_send method of the Mail Host object. To get this script to work you need to change the recipient and sender variables. 1. Change the recipient and sender variables to your email address in place of user@host. 2. Click the Save Changes button. 3. Now go to the form.html page in the lesson10 folder. 4. Click the Test tab to view it. 5. Fill out the Elvis sighting form and submit it. You should soon receive a piece of email describing the Elvis sighting. Congratulations, you've built a mail form. If you receive a Zope error, there is a good chance that you haven't set the SMTP Host setting on your mail host object correctly. Summary After you create a mail host, you can send mail from any script by calling its simple_send method. * Mail Hosts allow you to send email. * The scripts format email messages and pass them to the Mail Host. In the next lesson you'll learn how to use Zope to put a database on the web. ============================================================== From zope-coders-admin at zope.org Fri Apr 16 02:35:17 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Fri Apr 16 02:35:29 2004 Subject: [ZCM] [ZC] 1298/ 1 Request "Make ZSQLMethods useful in SiteErrorLog" Message-ID: Issue #1298 Update (Request) "Make ZSQLMethods useful in SiteErrorLog" Status Pending, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1298 ============================================================== = Request - Entry #1 by anthony on Apr 16, 2004 2:35 am Uploaded: "zsql.patch" - http://zope.org/Collectors/Zope/1298/zsql.patch/view Right now, ZSQLMethods are uselessly rendered in the SiteErrorLog. The following patch fixes this. ============================================================== From zope-coders-admin at zope.org Sat Apr 17 11:36:01 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Sat Apr 17 11:36:10 2004 Subject: [ZCM] [ZC] 1298/ 2 Comment "Make ZSQLMethods useful in SiteErrorLog" Message-ID: Issue #1298 Update (Comment) "Make ZSQLMethods useful in SiteErrorLog" Status Pending, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1298 ============================================================== = Comment - Entry #2 by ajung on Apr 17, 2004 11:35 am Nice patch but it can not be applied to the 2.7 branch/HEAD (2nd hunk fails). Could you please correct the patch? -aj ________________________________________ = Request - Entry #1 by anthony on Apr 16, 2004 2:35 am Uploaded: "zsql.patch" - http://zope.org/Collectors/Zope/1298/zsql.patch/view Right now, ZSQLMethods are uselessly rendered in the SiteErrorLog. The following patch fixes this. ============================================================== From zope-coders-admin at zope.org Sat Apr 17 11:39:12 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Sat Apr 17 11:39:14 2004 Subject: [ZCM] [ZC] 1281/ 2 Comment "Need a way to include non-xml valid structure in ZPT attributes" Message-ID: Issue #1281 Update (Comment) "Need a way to include non-xml valid structure in ZPT attributes" Status Pending, Zope/feature medium To followup, visit: http://zope.org/Collectors/Zope/1281 ============================================================== = Comment - Entry #2 by ajung on Apr 17, 2004 11:38 am """ Request: Could there be a modifier to tal:attributes, much like 'structure' when applied to tal:replace that prevents ZPT from escaping or otherwise fixing the data being applied to that attribute? """ This has been discussed in the past and there was no common agreement to add something like that. -aj ________________________________________ = Request - Entry #1 by salimfadhley on Apr 1, 2004 10:01 am Background: Sometimes we need to generate non-standard attributes, which while not being valid XML has some practical value when integrating Zope applications with other systems. I am working on an application part-written in Zope that makes content for a mailing system to re-distribute. The mailing system takes HTML documents with some embedded TCL. I would like to be able to generate all of this using Zope and ZPT - the problem is the embedded TCL requires characters that ZPT will not allow in attributes. Rationale: Some other applications *REQUIRE* HTML-like input formats, despite not being valid XML, it would be great if these with the ZPT I know and love. Example - How I am generating
tags: click me Example - an attribute I need to create: click me Example - What actually happens: Explaination: ZPT is smart enough to know that an attribute should never contain a " (quote-mark) character, so it has tried to escape it to preserve sanity... however in this case it has done the wrong thing, I actually wanted the EXACT output of the function - no matter how bizzare it looks. Request: Could there be a modifier to tal:attributes, much like 'structure' when applied to tal:replace that prevents ZPT from escaping or otherwise fixing the data being applied to that attribute? ============================================================== From zope-coders-admin at zope.org Mon Apr 19 05:17:01 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Mon Apr 19 05:17:13 2004 Subject: [ZCM] [ZC] 1289/ 3 Resolve "Bug preventing ZSQLMethods being editted via WebDAV" Message-ID: Issue #1289 Update (Resolve) "Bug preventing ZSQLMethods being editted via WebDAV" Status Resolved, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1289 ============================================================== = Resolve - Entry #3 by chrisw on Apr 19, 2004 5:17 am Status: Pending => Resolved Fixed on 2.6, 2.7 and HEAD branches. ________________________________________ = Comment - Entry #2 by ajung on Apr 11, 2004 1:10 pm Since you have CVS access I recommend to apply the patch on your own. ________________________________________ = Request - Entry #1 by chrisw on Apr 6, 2004 10:34 am Here's the patch: --- Da.py.old 2004-04-06 15:29:56.546875000 +0100 +++ DA.py 2004-04-06 15:31:11.781250000 +0100 @@ -266,6 +266,8 @@ self.REQUEST.RESPONSE.setHeader('Content-Type', 'text/plain') return '%s\n%s' % (self.arguments_src, self.src) + def get_size(self): return len(self.document_src()) + def PUT(self, REQUEST, RESPONSE): """Handle put requests""" self.dav__init(REQUEST, RESPONSE) ============================================================== From zope-coders-admin at zope.org Thu Apr 22 04:37:25 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 22 04:37:36 2004 Subject: [ZCM] [ZC] 1004/ 2 Accept "text and tokens property types not available." Message-ID: Issue #1004 Update (Accept) "text and tokens property types not available." Status Accepted, Zope/bug+solution critical To followup, visit: http://zope.org/Collectors/Zope/1004 ============================================================== = Accept - Entry #2 by mjablonski on Apr 22, 2004 4:37 am Status: Pending => Accepted Supporters added: mjablonski This problem still exists in 2.6 & 2.7 and should be fixed. I don't think that there's a good reason not to show text/tokens if management_page_charset is set to ISO-XYZ or something like that. ________________________________________ = Request - Entry #1 by zybi on Aug 1, 2003 11:44 am Uploaded: "properties.dtml.patch" - http://zope.org/Collectors/Zope/1004/properties.dtml.patch/view In the Properties form text and tokens property types are only available when management_page_charset is set to UTF-8. Below is an excerpt from lib/python/OFS/dtml/properties.dtml wchich shows source of the problem: Attached patch also corrects alphabetical ordering of the options. ============================================================== From zope-coders-admin at zope.org Thu Apr 22 04:39:08 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 22 04:39:14 2004 Subject: [ZCM] [ZC] 1096/ 3 Resolve "Icon for ReStructuredText document" Message-ID: Issue #1096 Update (Resolve) "Icon for ReStructuredText document" Status Resolved, Zope/feature low To followup, visit: http://zope.org/Collectors/Zope/1096 ============================================================== = Resolve - Entry #3 by mjablonski on Apr 22, 2004 4:39 am Status: Pending => Resolved Fixed in 2.7.0 ________________________________________ = Comment - Entry #2 by ajung on Nov 4, 2003 11:01 am Can you provide one? :-) ________________________________________ = Request - Entry #1 by JeffK on Oct 27, 2003 12:06 pm Zope CVS HEAD integrates ReStructuredText document product. This product does not have a content icon yet. ============================================================== From zope-coders-admin at zope.org Thu Apr 22 04:40:22 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 22 04:40:28 2004 Subject: [ZCM] [ZC] 1008/ 4 Resolve "Broken products section on dev.zope.org" Message-ID: Issue #1008 Update (Resolve) "Broken products section on dev.zope.org" Status Resolved, Zope.org Site/bug medium To followup, visit: http://zope.org/Collectors/Zope/1008 ============================================================== = Resolve - Entry #4 by mjablonski on Apr 22, 2004 4:40 am Status: Accepted => Resolved Fixed by Brian, not a core-bug at all. ________________________________________ = Assign - Entry #3 by Brian on Aug 7, 2003 10:06 am Status: Rejected => Accepted Supporters added: Brian Fixed - thanks for the report. -Brian ________________________________________ = Reject - Entry #2 by ajung on Aug 5, 2003 12:47 am Status: Pending => Rejected Not a Zope core issue. -aj ________________________________________ = Request - Entry #1 by Anonymous User on Aug 4, 2003 5:18 pm The products section on dev.zope.org/Products is broken - any attempt to view a category results in the following Site Error: >Error details: >Error Type >NameError >Error Value: >name 'SiteIndex' is not defined ============================================================== From zope-coders-admin at zope.org Thu Apr 22 04:41:47 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 22 04:41:53 2004 Subject: [ZCM] [ZC] 1024/ 2 Reject "zope.org CSS broken for Mozilla" Message-ID: Issue #1024 Update (Reject) "zope.org CSS broken for Mozilla" Status Rejected, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1024 ============================================================== = Reject - Entry #2 by mjablonski on Apr 22, 2004 4:41 am Status: Pending => Rejected Not a Zope-Core bug, please use http://zope.org/Collectors/ZopeOrg if the problem still exists. ________________________________________ = Request - Entry #1 by Anonymous User on Aug 19, 2003 4:06 pm When browsing zope.org with Mozilla, page headlines are partially clipped as they are moved offpage. This happens at least with the latest Mozilla, 1.4. Since I can't create a collector account and am not allowed to attach a screenshot as anonymous, the screenshot is available here for an unspecified time: http://www.refactor.fi/tmp/zope.org.png - it is from the page http://www.zope.org/Documentation/ but the problem occures everywhere, for example http://www.zope.org/Resources/ZSP/ ============================================================== From zope-coders-admin at zope.org Thu Apr 22 04:43:39 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 22 04:43:44 2004 Subject: [ZCM] [ZC] 1040/ 2 Reject "update to zope install guide" Message-ID: Issue #1040 Update (Reject) "update to zope install guide" Status Rejected, Zope.org Site/bug+solution low To followup, visit: http://zope.org/Collectors/Zope/1040 ============================================================== = Reject - Entry #2 by mjablonski on Apr 22, 2004 4:43 am Status: Pending => Rejected Seems to be a problem of the Debian-Installer. No Zope-Core bug. ________________________________________ = Request - Entry #1 by Anonymous User on Sep 6, 2003 5:40 am The zope docs make reference to openprojects.net frequently during the install project. This should be freenode.net. s/openprojects/freenode/ ============================================================== From zope-coders-admin at zope.org Thu Apr 22 04:46:57 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 22 04:47:04 2004 Subject: [ZCM] [ZC] 1115/ 2 Reject "Zope.org register function mysterious failure" Message-ID: Issue #1115 Update (Reject) "Zope.org register function mysterious failure" Status Rejected, Zope.org Site/bug medium To followup, visit: http://zope.org/Collectors/Zope/1115 ============================================================== = Reject - Entry #2 by mjablonski on Apr 22, 2004 4:46 am Status: Pending => Rejected No Zope-Core bug, please report at http://zope.org/Collectors/ZopeOrg if the problem still exists. ________________________________________ = Request - Entry #1 by GregLindahl on Nov 7, 2003 11:42 pm I entered a bug at zope.org and then it insisted I log in, who knows if the bug was lost. Anyway, I went to "join", and if I used a username that had a space in it, clicking on the "register" button did nothing. When I deleted the space it let me register. No error message, no guidance, no nothing. ============================================================== From zope-coders-admin at zope.org Thu Apr 22 04:47:55 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 22 04:48:01 2004 Subject: [ZCM] [ZC] 1116/ 2 Reject "font size breaks zope.org front page" Message-ID: Issue #1116 Update (Reject) "font size breaks zope.org front page" Status Rejected, Zope.org Site/bug medium To followup, visit: http://zope.org/Collectors/Zope/1116 ============================================================== = Reject - Entry #2 by mjablonski on Apr 22, 2004 4:47 am Status: Pending => Rejected Please report at http://zope.org/Collectors/ZopeOrg no Zope-Core-bug at all. ________________________________________ = Request - Entry #1 by GregLindahl on Nov 7, 2003 11:46 pm Uploaded: "Screenshot.png" - http://zope.org/Collectors/Zope/1116/Screenshot.png/view I am using Mozilla 1.5. If I set up the minimum font size to 20, it breaks the zope.org front page. Edit -> Preferences -> Appearance -> Fonts. In the screen shot, note that "About Zope" on the left is obscured, and "Zope Bugs, Features" etc is cut in half. ============================================================== From zope-coders-admin at zope.org Thu Apr 22 04:52:30 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 22 04:52:49 2004 Subject: [ZCM] [ZC] 1155/ 2 Resolve "Zope Book 2.6, loc. of user folders" Message-ID: Issue #1155 Update (Resolve) "Zope Book 2.6, loc. of user folders" Status Resolved, Zope/doc request low To followup, visit: http://zope.org/Collectors/Zope/1155 ============================================================== = Resolve - Entry #2 by mjablonski on Apr 22, 2004 4:52 am Status: Pending => Resolved Added this suggestion to the Backtalk of the current Zope-Book. ________________________________________ = Request - Entry #1 by Anonymous User on Dec 16, 2003 4:56 pm Folks, the Zope Book states under 'Defining a User's Location': "Zope can contain multiple user folders at different locations in the object database hierarchy. A Zope user cannot access protected resources above the user folder in which their account is defined." This would mean, users generally can only access the content of the user folder itself - i.e. the users. It should read: "... A Zope user cannot access protected resources above the folder in which the user folder was created that is holding the user's account definition." Still learning - the zope book is well done! Regards, Klaus. ============================================================== From zope-coders-admin at zope.org Thu Apr 22 04:56:56 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 22 04:57:02 2004 Subject: [ZCM] [ZC] 1228/ 2 Resolve "zope book describes GPL inaccurately" Message-ID: Issue #1228 Update (Resolve) "zope book describes GPL inaccurately" Status Resolved, Zope/bug low To followup, visit: http://zope.org/Collectors/Zope/1228 ============================================================== = Resolve - Entry #2 by mjablonski on Apr 22, 2004 4:56 am Status: Pending => Resolved Added suggestions to Backtalk of Zope-Book 2.6. ________________________________________ = Request - Entry #1 by Anonymous User on Feb 13, 2004 1:54 am On p. 40, the book says "if you intend to redistribute a GPL-licensed application, and you modify or extend the application in a meaningful way, that you contribute your modifications back to the licensor." This would better be phrased "when you redistribute a GPL-licensed application, you must distribute it under the terms of the GPL, including licensing any modifications or extensions you make under the GPL. You must also provide the full source code, including source for your modifications." Also on p. 40, it says, "the ZPL ... is listed as GPL compliant...." This would be better phrased "the ZPL ... is listed as GPL compatible...." ============================================================== From zope-coders-admin at zope.org Thu Apr 22 04:58:06 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 22 04:58:28 2004 Subject: [ZCM] [ZC] 1033/ 2 Resolve "Virtual Host Monster mappings" Message-ID: Issue #1033 Update (Resolve) "Virtual Host Monster mappings" Status Resolved, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1033 ============================================================== = Resolve - Entry #2 by mjablonski on Apr 22, 2004 4:58 am Status: Pending => Resolved Not reproducable in 2.7.0, seems to be fixed. ________________________________________ = Request - Entry #1 by Anonymous User on Sep 2, 2003 4:46 am In the fresh install of 2.7.0b2 one can't edit virtual host mappings - there is no appropriate tab on admin screen at all. 2.7.0b1 has another bug to prevent editing, but this version goes further... ============================================================== From zope-coders-admin at zope.org Thu Apr 22 05:00:29 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 22 05:00:35 2004 Subject: [ZCM] [ZC] 895/ 2 Reject "dtml-sendmail" Message-ID: Issue #895 Update (Reject) "dtml-sendmail" Status Rejected, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/895 ============================================================== = Reject - Entry #2 by mjablonski on Apr 22, 2004 5:00 am Status: Pending => Rejected Please add a comment to Zope-Book 2.6 if this is not mentioned. Fixing this will make parsing email-headers / body in much more complicated so I reject this. ________________________________________ = Request - Entry #1 by ejost on Apr 30, 2003 8:44 am To use the sendmail-tag in a dtml-document the 'FROM', 'TO' and 'SUBJECT' each has to be placed in the very beginning of a line. If you don't do this, because you want to have a nice readable source, the sendmail-tag will not work. This should be fixed or documented. ============================================================== From zope-coders-admin at zope.org Thu Apr 22 05:43:24 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 22 05:43:34 2004 Subject: [ZCM] [ZC] 1299/ 1 Request "sequence.sort bug sorting sequence containing Missing.Value" Message-ID: Issue #1299 Update (Request) "sequence.sort bug sorting sequence containing Missing.Value" Status Pending, Zope/bug+solution medium To followup, visit: http://collector.zope.org/Zope/1299 ============================================================== = Request - Entry #1 by kedder on Apr 22, 2004 5:43 am When sorting sequence with multiple sort columns using sequence.sort function and when sequence contains Missing.Value objects, returned from catalog query, sort fails with error: Error Type: TypeError Error Value: unhashable type Module DocumentTemplate.sequence.SortEx, line 103, in sort The problem i believe is in this line (in DocumentTemplate/sequence/SortEx.py, line 103): if not basic_type(akey): that should be: if not basic_type(type(akey)): like in case with single sort key below in that file. ============================================================== From zope-coders-admin at zope.org Thu Apr 22 18:00:59 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 22 18:01:05 2004 Subject: [ZCM] [ZC] 599/ 4 Reject "inst/compilezpy.py supresses error messages written to sys.stdout " Message-ID: Issue #599 Update (Reject) "inst/compilezpy.py supresses error messages written to sys.stdout " Status Rejected, Zope/bug+solution low To followup, visit: http://zope.org/Collectors/Zope/599 ============================================================== = Reject - Entry #4 by mjablonski on Apr 22, 2004 6:00 pm Status: Pending => Rejected Outdated for 2.7, only "minor bugfix policy" for 2.6, so I reject this. ________________________________________ = Comment - Entry #3 by camil7 on Nov 19, 2003 1:07 pm With the new build process of 2.7 this issue is outdated. Please close/resolve/reject this one. ________________________________________ = Comment - Entry #2 by camil7 on Oct 1, 2002 3:24 pm Uploaded: "compilezpy.patch" - http://zope.org/Collectors/Zope/599/compilezpy.patch/view ________________________________________ = Request - Entry #1 by camil7 on Oct 1, 2002 3:22 pm when compiling zope from source via the "./wo_pcgi.py" script, the called "inst/compilezpy.py" first redirects sys.stdout to nowhere before recursively calls "compileall.py" for all relevant subdirectories. Unfortunately "compileall.py" creates the error message like: print 'Sorry:', exc_type_name + ':', print sys.exc_value success = 0 i.e. it writes them to sys.stdout. If a problem occures while compiling the python sources, one only gets the error message "There were errors during Python module compilation.", but no clue where the problem is. Ok, this _should_ not happen. However for obscure reasons one of my files was considered to contain binary (result of NFS confusion) after a CVS update, thus it happened to me. Thus I ask, if one could at least print something to sys.stderr, if the compilation within a directory failes, thus one can rerun the compileall manually to check for the error message. Not a big issue, but I do not see that the few additional statements hurt something. I try to upload a patch that could be used for that purpose. ============================================================== From zope-coders-admin at zope.org Thu Apr 22 18:03:17 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 22 18:03:20 2004 Subject: [ZCM] [ZC] 943/ 2 Comment "xmlrpclib doesn't pick up sgmlop" Message-ID: Issue #943 Update (Comment) "xmlrpclib doesn't pick up sgmlop" Status Pending, Zope/bug+solution medium To followup, visit: http://zope.org/Collectors/Zope/943 ============================================================== = Comment - Entry #2 by mjablonski on Apr 22, 2004 6:03 pm Zope 2.7 uses the xmlrpc.py from python 2.3.3 directly. Does this issue still exist for you? If not, I'm going to reject this due to "minor bug fix policy" for 2.6. ________________________________________ = Request - Entry #1 by Anonymous User on Jun 15, 2003 12:34 pm The xmlrpclib.py in Zope-2.6.1-src does not pick up sgmlop as installed by PyXML-0.8.2. The following patch fixes it: --- xmlrpclib.py.org Mon Jun 16 00:14:14 2003 +++ xmlrpclib.py Sun Jun 15 23:53:37 2003 @@ -322,7 +322,7 @@ # try: - import sgmlop + from xml.parsers import sgmlop if not hasattr(sgmlop, "XMLParser"): raise ImportError except ImportError: Without SgmlopParser, xmlrpclib will use ExpatParser, which causes ZSyncer to barf with an ExpatError on my FreeBSD 4.8 boxen. (I think this is a general XML-RPC breakage, because my M2Crypto XMLRPC-over-SSL demo also breaks with the same error message.) ============================================================== From zope-coders-admin at zope.org Thu Apr 22 18:04:59 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 22 18:05:04 2004 Subject: [ZCM] [ZC] 591/ 2 Reject "pcgi is not precompiled in Zope-2.6.0b1-linux2-x86.tgz" Message-ID: Issue #591 Update (Reject) "pcgi is not precompiled in Zope-2.6.0b1-linux2-x86.tgz" Status Rejected, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/591 ============================================================== = Reject - Entry #2 by mjablonski on Apr 22, 2004 6:04 pm Status: Pending => Rejected There are no more binary-builds for linux anymore, so I reject this issue. ________________________________________ = Request - Entry #1 by Anonymous User on Sep 26, 2002 4:55 am ============================================================== From zope-coders-admin at zope.org Sun Apr 25 09:02:39 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Sun Apr 25 09:02:42 2004 Subject: [ZCM] [ZC] 1300/ 1 Request "TreeTag no longer preserves state" Message-ID: Issue #1300 Update (Request) "TreeTag no longer preserves state" Status Pending, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1300 ============================================================== = Request - Entry #1 by shh on Apr 25, 2004 9:02 am The TreeTag does not properly encode/decode the tree state in recent versions of Zope. Since the introduction of the MiniUnpickler class (as part of the security audit, iirc) the tree state does not persist anymore. The error is conveniently masked by an 'except IndexError:' around line 180 of TreeDisplay/TreeTag.py. Adding some logging at this point shows that NO tree-s cookie decodes without error. To reproduce: in the ZMI in the left frame open a folder. Then open a second folder on the same level as the first. You will find the first folder is no longer expanded because the tree state could not be read from the cookie. Known to work in Zope 2.6.2 ============================================================== From zope-coders-admin at zope.org Sun Apr 25 17:01:23 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Sun Apr 25 17:01:27 2004 Subject: [ZCM] [ZC] 413/ 5 Comment "Zope hangs while updating multiple ParsedXML objects" Message-ID: Issue #413 Update (Comment) "Zope hangs while updating multiple ParsedXML objects" Status Pending, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/413 ============================================================== = Comment - Entry #5 by mjablonski on Apr 25, 2004 5:01 pm Seems to be a swap-problem on your box. Please comment, if the problem still exist with current Zope. Otherwise this issue is a little bit outdated and should be closed. ________________________________________ = Comment - Entry #4 by allison on Jun 5, 2002 4:22 pm Still missing the cause, but the workaround I found might help. Adding another 256MB of memory to the 64MB used previously caused the problem to go away. That suggests that the bug is somewhere in the inteface between Zope and the Linux virtual memory system. It's unclear whether ParsedXML has anything to do with the problem at all although its insertion/deletion pattterns are different than most others (or so I suspect). ________________________________________ = Comment - Entry #3 by allison on Jun 3, 2002 7:04 pm Another round, this time without the option of doing a global delete and build. The update goes smoothly for a bit, then slows to a crawl (or slower) with lots of disk traffic. After a long time (hours) the update for the fist data set completed. The second data set did not finish as my patience ran out after 6 hours.... (Builds with the same code take minutes.) Poking around, it appears that the python image has grown to 100MB or so even though there is nothing anywhere near that size around. This particular machine has limited memory (64MB). The problem seems to arise when swapping is required anbd the overheads of threashing dominate useful throughput. Looks like the ParsedXML + Python somehow is leaking memory. ________________________________________ = Comment - Entry #2 by allison on Jun 1, 2002 3:01 pm I removed the need to delete by doing a single global delete of the folder tree so everything became a build. With that strategy, I was able to compete an upload/update. The external method doing the load completed (logged to the Zope terminal) a full minute to a minute and a half before the "thank-you-very-much" response page was handed back. As the delete/insert strategy would have created a queue twice as long, the problem may lie with queue management and/or patience of the operator, or something related to the performance issues seen and cited in issue #83. ________________________________________ = Request - Entry #1 by allison on Jun 1, 2002 2:15 pm This one is hard to localize, but it is easy enough to trigger. I have a set of nested folders with ParsedXML objects in the leaves (and in some of the interior folders as well). These are loaded (initially) from an external file system using an external procedure. Update involves walking the folder structure and deleting the old ParsedXML object and adding a new one. There are order hundreds of such objects, but each is fairly small (1K-15K or so). The observed behavior is that the updating moves forward for a while, then stops and does something for a long long time. Sometimes it returns after minutes, but then gets back into the same state. When this happens, Zope is pretty much unavailable to any user and locked down. If the processing is upload mostly with only a few (if any) deletions, the processing goes happily to completion and does not tickle this problem. Given this behavior, I suspect some sort of locking problem where a lock is not being cleared. There is an open problem related to ParsedXML (issue #83) which crashes Zope which may (or may not) be related. ============================================================== From zope-coders-admin at zope.org Sun Apr 25 17:30:40 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Sun Apr 25 17:30:42 2004 Subject: [ZCM] [ZC] 413/ 6 Reject "Zope hangs while updating multiple ParsedXML objects" Message-ID: Issue #413 Update (Reject) "Zope hangs while updating multiple ParsedXML objects" Status Rejected, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/413 ============================================================== = Reject - Entry #6 by mjablonski on Apr 25, 2004 5:30 pm Status: Pending => Rejected Personal mail from allison says: "After much effort using ParsedXML we have abandoned it in favor of a simpler approach which parses the XML on demand. I am reasonably sure it was not a swap problem on the box (we saw the same problmes when memory went to 2GB) but something else. I agree that it should be closed." So I close/reject this one... ________________________________________ = Comment - Entry #5 by mjablonski on Apr 25, 2004 5:01 pm Seems to be a swap-problem on your box. Please comment, if the problem still exist with current Zope. Otherwise this issue is a little bit outdated and should be closed. ________________________________________ = Comment - Entry #4 by allison on Jun 5, 2002 4:22 pm Still missing the cause, but the workaround I found might help. Adding another 256MB of memory to the 64MB used previously caused the problem to go away. That suggests that the bug is somewhere in the inteface between Zope and the Linux virtual memory system. It's unclear whether ParsedXML has anything to do with the problem at all although its insertion/deletion pattterns are different than most others (or so I suspect). ________________________________________ = Comment - Entry #3 by allison on Jun 3, 2002 7:04 pm Another round, this time without the option of doing a global delete and build. The update goes smoothly for a bit, then slows to a crawl (or slower) with lots of disk traffic. After a long time (hours) the update for the fist data set completed. The second data set did not finish as my patience ran out after 6 hours.... (Builds with the same code take minutes.) Poking around, it appears that the python image has grown to 100MB or so even though there is nothing anywhere near that size around. This particular machine has limited memory (64MB). The problem seems to arise when swapping is required anbd the overheads of threashing dominate useful throughput. Looks like the ParsedXML + Python somehow is leaking memory. ________________________________________ = Comment - Entry #2 by allison on Jun 1, 2002 3:01 pm I removed the need to delete by doing a single global delete of the folder tree so everything became a build. With that strategy, I was able to compete an upload/update. The external method doing the load completed (logged to the Zope terminal) a full minute to a minute and a half before the "thank-you-very-much" response page was handed back. As the delete/insert strategy would have created a queue twice as long, the problem may lie with queue management and/or patience of the operator, or something related to the performance issues seen and cited in issue #83. ________________________________________ = Request - Entry #1 by allison on Jun 1, 2002 2:15 pm This one is hard to localize, but it is easy enough to trigger. I have a set of nested folders with ParsedXML objects in the leaves (and in some of the interior folders as well). These are loaded (initially) from an external file system using an external procedure. Update involves walking the folder structure and deleting the old ParsedXML object and adding a new one. There are order hundreds of such objects, but each is fairly small (1K-15K or so). The observed behavior is that the updating moves forward for a while, then stops and does something for a long long time. Sometimes it returns after minutes, but then gets back into the same state. When this happens, Zope is pretty much unavailable to any user and locked down. If the processing is upload mostly with only a few (if any) deletions, the processing goes happily to completion and does not tickle this problem. Given this behavior, I suspect some sort of locking problem where a lock is not being cleared. There is an open problem related to ParsedXML (issue #83) which crashes Zope which may (or may not) be related. ============================================================== From allison at shasta.stanford.edu Sun Apr 25 17:12:47 2004 From: allison at shasta.stanford.edu (Dennis Allison) Date: Sun Apr 25 18:17:36 2004 Subject: [ZCM] Re: [ZC] 413/ 5 Comment "Zope hangs while updating multiple ParsedXML objects" In-Reply-To: Message-ID: After much effort using ParsedXML we have abandoned it in favor of a simpler approach which parses the XML on demand. I am reasonably sure it was not a swap problem on the box (we saw the same problmes when memory went to 2GB) but something else. I agree that it should be closed. On Sun, 25 Apr 2004, Collector: Zope Bugs, Features, and Patches ... wrote: > Issue #413 Update (Comment) "Zope hangs while updating multiple ParsedXML objects" > Status Pending, Zope/bug medium > To followup, visit: > http://zope.org/Collectors/Zope/413 > > ============================================================== > = Comment - Entry #5 by mjablonski on Apr 25, 2004 5:01 pm > > Seems to be a swap-problem on your box. Please comment, if the problem still exist with current Zope. Otherwise this issue is a little bit outdated and should be closed. > ________________________________________ > = Comment - Entry #4 by allison on Jun 5, 2002 4:22 pm > > Still missing the cause, but the workaround I found might help. Adding another 256MB of memory to the 64MB used previously caused the problem to go away. That suggests that the bug is somewhere in the inteface between Zope and the Linux virtual memory system. It's unclear whether ParsedXML has anything to do with the problem at all although its insertion/deletion pattterns are different than most others (or so I suspect). > ________________________________________ > = Comment - Entry #3 by allison on Jun 3, 2002 7:04 pm > > Another round, this time without the option of doing a global delete and build. The update goes smoothly for a bit, then slows to a crawl (or slower) with lots of disk traffic. After a long time (hours) the update for the fist data set completed. The second data set did not finish as my patience ran out after 6 hours.... (Builds with the same code take minutes.) Poking around, it appears that the python image has grown to 100MB or so even though there is nothing anywhere near that size around. > This particular machine has limited memory (64MB). The problem seems to arise when swapping is required anbd the overheads of threashing dominate useful throughput. Looks like the ParsedXML + Python somehow is leaking memory. > ________________________________________ > = Comment - Entry #2 by allison on Jun 1, 2002 3:01 pm > > I removed the need to delete by doing a single global delete > of the folder tree so everything became a build. With that > strategy, I was able to compete an upload/update. The external method doing the load completed (logged to the Zope terminal) > a full minute to a minute and a half before the "thank-you-very-much" response page was handed back. As the > delete/insert strategy would have created a queue twice as long, the problem may lie with queue management and/or patience of the operator, or something related to the performance issues > seen and cited in issue #83. > ________________________________________ > = Request - Entry #1 by allison on Jun 1, 2002 2:15 pm > > This one is hard to localize, but it is easy enough to trigger. I have a set of nested folders with ParsedXML objects in the leaves (and in some of the interior folders as well). These are loaded (initially) from an external file system using an external procedure. Update involves walking the folder structure and deleting the old ParsedXML object and adding a new one. There are order hundreds of such objects, but each is fairly small (1K-15K or so). The observed behavior is that the updating moves forward for a while, then stops and does something for a long long time. Sometimes it returns after minutes, but then gets back into the same state. > > When this happens, Zope is pretty much unavailable to any user and locked down. > > If the processing is upload mostly with only a few (if any) deletions, the processing goes happily to completion and does not tickle this problem. > > Given this behavior, I suspect some sort of locking problem where a lock is not being cleared. > > There is an open problem related to ParsedXML (issue #83) which crashes Zope which may (or may not) be related. > > > ============================================================== > -- Dennis Allison * Computer Systems Laboratory * Gates 227 * Stanford University * Stanford CA 94305 * (650) 723-9213 * (650) 723-0033 fax * allison@shasta.stanford.edu * allison@sumeru.stanford.edu From zope-coders-admin at zope.org Mon Apr 26 03:36:07 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Mon Apr 26 03:36:09 2004 Subject: [ZCM] [ZC] 545/ 2 Accept "Object id 'content_type' crashes folder view" Message-ID: Issue #545 Update (Accept) "Object id 'content_type' crashes folder view" Status Accepted, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/545 ============================================================== = Accept - Entry #2 by mjablonski on Apr 26, 2004 3:36 am Status: Pending => Accepted Supporters added: mjablonski Jamie Heilman wrote on zope-dev: "Accept, they are completely fixable.  I've probably already fixed those bugs in my fork, I'll hunt around and see if I can find the relevant files and post followups to the bugs." Please note: This one is related to http://zope.org/Collectors/Zope/1217 ________________________________________ = Request - Entry #1 by peterb on Aug 28, 2002 9:28 am Create folder A, in A create an object with id 'content_type' and then try to list all items in A's parent. What you get is: Error Type: AttributeError Error Value: startswith File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 114, in publish File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: Peter) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 98, in publish File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: manage_contents) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: manage_contents) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 252, in __call__ (Object: manage_contents) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in _bindAndExec (Object: manage_contents) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/App/special_dtml.py, line 172, in _exec (Object: manage_contents) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_In.py, line 695, in renderwob (Object: objectItems) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_Let.py, line 76, in render (Object: explicit="_.getitem('sequence-item').aq_explicit") File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval (Object: _.hasattr(explicit, 'manage_FTPget') or _.hasattr(explicit, 'read') or _.getattr(explicit, 'content_type', '').startswith('text/')) (Info: explicit) File , line 0, in ? Probably because get_attr returns the 'content_type' object and not the content type attribute ============================================================== From zope-coders-admin at zope.org Mon Apr 26 03:37:21 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Mon Apr 26 03:37:24 2004 Subject: [ZCM] [ZC] 1217/ 2 Accept "Error in zmi when an object is named 'URL' or 'URL1'" Message-ID: Issue #1217 Update (Accept) "Error in zmi when an object is named 'URL' or 'URL1'" Status Accepted, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1217 ============================================================== = Accept - Entry #2 by mjablonski on Apr 26, 2004 3:37 am Status: Pending => Accepted Supporters added: mjablonski Jamie Heilman wrote on zope-dev: "Accept, they are completely fixable.  I've probably already fixed those bugs in my fork, I'll hunt around and see if I can find the relevant files and post followups to the bugs." Please note: This one is related to http://zope.org/Collectors/Zope/545 ________________________________________ = Request - Entry #1 by ebrun on Feb 4, 2004 9:22 am When I create a object (like Folder or DTMLMethod or ...) with name 'URL' or 'URL1' .... , I can't access to the content of my parent folder which contain this new folder : Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: __getslice__ I think its a conflic namespace between REQUEST object and Folder Object in the manage_main methed (OFS/dtml/main.dtml). Note I try it on Zope.org : no problem to create but then I can't copy/paste anything in my folder : the same error happened. In the copy / paste the problem is the same because when REQUEST is not None in manage_copyObjects and manage_cutObjects the returned method is self.manage_main(self, REQUEST). ============================================================== From zope-coders-admin at zope.org Mon Apr 26 05:09:05 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Mon Apr 26 05:09:16 2004 Subject: [ZCM] [ZC] 1037/ 6 Comment "Zope unicode patch" Message-ID: Issue #1037 Update (Comment) "Zope unicode patch" Status Accepted, Zope/bug+solution medium To followup, visit: http://zope.org/Collectors/Zope/1037 ============================================================== = Comment - Entry #6 by bjorn on Apr 26, 2004 5:08 am I think this patch has some good fixes that should be accepted, even if the whole patch isn't accepted. htrd wrote: > Zope mostly works fine for: > * all text in unicode (this is preferred) > * all text pre-encoded in one encoding (this is supported with > "management_page_charset") Right, but Unicode doesn't actually work (see below). > It doesnt work well for: > * mixing unicode with pre-encoded text (which is likely to get more > common, which is why "management_page_charset" is likely to be less > useful long term) Mixing pre-encoded text is too difficult. It's easier to convert all data to Unicode, in many cases. [...] > > > 2. "manage_properties" work only in utf-8 charset > > The browser sees an html page using utf-8, but the zope server will > correctly trancode properties from their original encoding > ("management_page_charset") into utf-8. > > This is necessary so that things do not break when you add a unicode > property type to your object. The form needs to support the Legacy > pre-encoded string and the unicode string. Currently the ZMI doesn't add :ENCODING to the field names, so the ZPublisher doesn't know how to decode incoming form data (e.g., PropertyManager), resulting in Unicode errors. > > By default it will be as active locale (-L key). > > This approach is not acceptable, because it makes the behaviour of Zope > components dependant on global state. This is a great complication for > anyone developing or supporting zope *components*. This is fine. The current management_page_charset property does a fine job. No need to look in the locale. You could just ignore this part of his patch. > > If you dont consider it > > hen the work with Zope for russian Zope-developers/users will be quite > > >complicated. > > The current behaviour is by design, not by accident. If you *really* cant > use unicode, using pre-encoded strings rather than unicode is a little > more complicated. but not prohibitive. Pre-encoded strings results in a mess of encode/decode statements scattered throughout the code, increasing the complexity (and the # of bugs) and decreasing the performance. Archetypes suffers from similar problems. > Last time someone supplied a huge patch similar to yours, they were > finally satisfied by a one-line bug fix to properties.dtml. Please report > the steps necessary to reproduce your problem and we may be able to > resolve it the same way, without having to change the zope unicode > architecture. How about ignore the locale part of the patch? I still think the management_page_charset_tag thingie is needed. If possible, it'd be great if it was easy for non-ZMI (Plone etc) to call this tag. All forms should use it. ________________________________________ = Assign - Entry #5 by htrd on Oct 13, 2003 3:44 am Status: Pending => Accepted Supporters added: htrd > Zope from 2.6 release try to support unicode, but it make big > problem to developers who cann't use unicode (there is many reasons). Zope mostly works fine for: * all text in unicode (this is preferred) * all text pre-encoded in one encoding (this is supported with "management_page_charset") It doesnt work well for: * mixing unicode with pre-encoded text (which is likely to get more common, which is why "management_page_charset" is likely to be less useful long term) Why cant you use unicode? Surely it is simply the right data *type* for the internal representation? (fwiw, I personally see this approach as similar to using plain strings to store a decimal representation of integer properties, and then complaining that addition doest work. Just use the right type! thats what types are for! Legacy code excepted of course) > 2. "manage_properties" work only in utf-8 charset The browser sees an html page using utf-8, but the zope server will correctly trancode properties from their original encoding ("management_page_charset") into utf-8. This is necessary so that things do not break when you add a unicode property type to your object. The form needs to support the Legacy pre-encoded string and the unicode string. > By default it will be as active locale (-L key). This approach is not acceptable, because it makes the behaviour of Zope components dependant on global state. This is a great complication for anyone developing or supporting zope *components*. > If you dont consider it > then the work with Zope for russian Zope-developers/users will be quite >complicated. The current behaviour is by design, not by accident. If you *really* cant use unicode, using pre-encoded strings rather than unicode is a little more complicated. but not prohibitive. Last time someone supplied a huge patch similar to yours, they were finally satisfied by a one-line bug fix to properties.dtml. Please report the steps necessary to reproduce your problem and we may be able to resolve it the same way, without having to change the zope unicode architecture. ________________________________________ = Comment - Entry #4 by xenru on Oct 10, 2003 11:32 am Uploaded: "patch-description.txt" - http://zope.org/Collectors/Zope/1037/patch-description.txt/view reupload patch description (Russian) ________________________________________ = Comment - Entry #3 by xenru on Sep 12, 2003 2:03 pm Uploaded: "Zope-270b2-unicode.patch" - http://zope.org/Collectors/Zope/1037/Zope-270b2-unicode.patch/view This is updated patch for Zope 2.7.0b2 ________________________________________ = Comment - Entry #2 by xenru on Sep 3, 2003 3:18 pm Uploaded: "patch_description.txt" - http://zope.org/Collectors/Zope/1037/patch_description.txt/view full patch description on russian (we can translate uppon request to mailbox-at-xen.ru) ________________________________________ = Request - Entry #1 by xenru on Sep 3, 2003 3:15 pm Uploaded: "Zope-270b1-unicode.patch" - http://zope.org/Collectors/Zope/1037/Zope-270b1-unicode.patch/view Zope from 2.6 release try to support unicode, but it make big problem to developers who cann't use unicode (there is many reasons). We make patch to Zope 2.7.b1, but it also work with 2.7.b2. What this patch do. 1. Now Zope think that all non-unicode types (string, text, etc) use only latin-1 charset. It raise error when server encode sended data on Properties (manage_properties) page (I haven't now traceback, but will send uppon request). 2. "manage_properties" work only in utf-8 charset that make big problems to set (and read) values in national encodings. "management_page_charset" not resolve this problem it haven't effect on "manage_properties". Patch set proper charset. By default it will be as active locale (-L key). 3. Many other bugfixes (all in description on russian). I'm sorry for my poor english, I would like to pay your attantion to this patch. If you dont consider it then the work with Zope for russian Zope-developers/users will be quite complicated. ============================================================== From zope-coders-admin at zope.org Mon Apr 26 06:32:23 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Mon Apr 26 06:32:28 2004 Subject: [ZCM] [ZC] 1160/ 2 Comment "HTTPResponse.expireCookie doesn't if 'expires' kw arg is present" Message-ID: Issue #1160 Update (Comment) "HTTPResponse.expireCookie doesn't if 'expires' kw arg is present" Status Pending, Zope/bug+solution medium To followup, visit: http://zope.org/Collectors/Zope/1160 ============================================================== = Comment - Entry #2 by shh on Apr 26, 2004 6:32 am Fixed on HEAD and maintenance branches. Please resolve. ________________________________________ = Request - Entry #1 by shh on Dec 20, 2003 2:35 pm HTTPResponse.expireCookie is supposed to "Cause an HTTP cookie to be removed from the browser" (docstring). To do this, it calls HTTPResponse.setCookie with the 'expires' cookie parameter set to a date in the past, and the 'max_age' cookie parameter set to '0'. However, it is possible to override the 'expires' and 'max_age' cookie parameters by passing them in as keyword arguments. Thus, expireCookie is not guaranteed to actually expire a cookie. The fix, should one be desired, requires a slight rearrangement of code lines in HTTPResponse.expireCookie. In particular, expireCookie should put its hardcoded 'expires' and 'max_age' values into the dict not before, but *after* the keyword arguments have been copied. A cookie would then be expired even if an 'expires' keyword argument was specified (by accident or with malice) in a call to HTTPResponse.expireCookie. I am submitting this issue to solicit comments before applying the fix. ============================================================== From zope-coders-admin at zope.org Mon Apr 26 07:46:04 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Mon Apr 26 07:46:06 2004 Subject: [ZCM] [ZC] 1160/ 3 Resolve "HTTPResponse.expireCookie doesn't if 'expires' kw arg is present" Message-ID: Issue #1160 Update (Resolve) "HTTPResponse.expireCookie doesn't if 'expires' kw arg is present" Status Resolved, Zope/bug+solution medium To followup, visit: http://zope.org/Collectors/Zope/1160 ============================================================== = Resolve - Entry #3 by mjablonski on Apr 26, 2004 7:46 am Status: Pending => Resolved Fix is checked in by ssh. Issue resolved. ________________________________________ = Comment - Entry #2 by shh on Apr 26, 2004 6:32 am Fixed on HEAD and maintenance branches. Please resolve. ________________________________________ = Request - Entry #1 by shh on Dec 20, 2003 2:35 pm HTTPResponse.expireCookie is supposed to "Cause an HTTP cookie to be removed from the browser" (docstring). To do this, it calls HTTPResponse.setCookie with the 'expires' cookie parameter set to a date in the past, and the 'max_age' cookie parameter set to '0'. However, it is possible to override the 'expires' and 'max_age' cookie parameters by passing them in as keyword arguments. Thus, expireCookie is not guaranteed to actually expire a cookie. The fix, should one be desired, requires a slight rearrangement of code lines in HTTPResponse.expireCookie. In particular, expireCookie should put its hardcoded 'expires' and 'max_age' values into the dict not before, but *after* the keyword arguments have been copied. A cookie would then be expired even if an 'expires' keyword argument was specified (by accident or with malice) in a call to HTTPResponse.expireCookie. I am submitting this issue to solicit comments before applying the fix. ============================================================== From zope-coders-admin at zope.org Mon Apr 26 14:41:58 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Mon Apr 26 14:42:01 2004 Subject: [ZCM] [ZC] 1282/ 2 Comment "Windows-specific test failures in CVS" Message-ID: Issue #1282 Update (Comment) "Windows-specific test failures in CVS" Status Pending, Zope/test medium To followup, visit: http://zope.org/Collectors/Zope/1282 ============================================================== = Comment - Entry #2 by tim_one on Apr 26, 2004 2:41 pm Pretty snaky. These stem from that the default host on Windows is 'localhost', but is an empty string everywhere else. I wormed around that in BaseTest.check_prepare(), and these specific failures went away then. Unfortunately, it also exposed 2 new Windows failures, in: test_http_factory test_webdav_source_factory ________________________________________ = Request - Entry #1 by tim_one on Apr 1, 2004 1:26 pm There are currently 7 similar Windows-specific failures in configuration tests. Here's the traceback for one: FAIL: test_fcgi_factory (ZServer.tests.test_config.ZServerConfigurationTestCase) Traceback (most recent call last): File "C:\Code\Zope\lib/python\ZServer\tests\test_config.py", line 148, in test_fcgi_factory self.check_prepare(factory) File "C:\Code\Zope\lib/python\ZServer\tests\test_config.py", line 71, in check_prepare self.assertEqual(factory.host, "127.0.0.1") File "C:\PYTHON23\lib\unittest.py", line 302, in failUnlessEqual raise self.failureException, \ AssertionError: 'localhost' != '127.0.0.1' In addition to that one, these also fail with the same 'localhost' versus '127.0.0.1' symptom: test_ftp_factory test_http_factory test_icp_factory test_webdav_source_factory test_monitor_factory_with_emergency_user test_monitor_factory_without_emergency_user ============================================================== From zope-coders-admin at zope.org Mon Apr 26 15:35:13 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Mon Apr 26 15:35:18 2004 Subject: [ZCM] [ZC] 1282/ 3 Assign "Windows-specific test failures in CVS" Message-ID: Issue #1282 Update (Assign) "Windows-specific test failures in CVS" Status Accepted, Zope/test medium To followup, visit: http://zope.org/Collectors/Zope/1282 ============================================================== = Assign - Entry #3 by tim_one on Apr 26, 2004 3:35 pm Status: Pending => Accepted Supporters added: fdrake, tim_one Assigned to Fred, because he has pending changes that may fix the rest of this. ________________________________________ = Comment - Entry #2 by tim_one on Apr 26, 2004 2:41 pm Pretty snaky. These stem from that the default host on Windows is 'localhost', but is an empty string everywhere else. I wormed around that in BaseTest.check_prepare(), and these specific failures went away then. Unfortunately, it also exposed 2 new Windows failures, in: test_http_factory test_webdav_source_factory ________________________________________ = Request - Entry #1 by tim_one on Apr 1, 2004 1:26 pm There are currently 7 similar Windows-specific failures in configuration tests. Here's the traceback for one: FAIL: test_fcgi_factory (ZServer.tests.test_config.ZServerConfigurationTestCase) Traceback (most recent call last): File "C:\Code\Zope\lib/python\ZServer\tests\test_config.py", line 148, in test_fcgi_factory self.check_prepare(factory) File "C:\Code\Zope\lib/python\ZServer\tests\test_config.py", line 71, in check_prepare self.assertEqual(factory.host, "127.0.0.1") File "C:\PYTHON23\lib\unittest.py", line 302, in failUnlessEqual raise self.failureException, \ AssertionError: 'localhost' != '127.0.0.1' In addition to that one, these also fail with the same 'localhost' versus '127.0.0.1' symptom: test_ftp_factory test_http_factory test_icp_factory test_webdav_source_factory test_monitor_factory_with_emergency_user test_monitor_factory_without_emergency_user ============================================================== From zope-coders-admin at zope.org Mon Apr 26 15:36:49 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Mon Apr 26 15:36:51 2004 Subject: [ZCM] [ZC] 1282/ 4 Edit "Windows-specific test failures in CVS" Message-ID: Issue #1282 Update (Edit) "Windows-specific test failures in CVS" Status Accepted, Zope/test medium To followup, visit: http://zope.org/Collectors/Zope/1282 ============================================================== = Edit - Entry #4 by tim_one on Apr 26, 2004 3:36 pm Changes: submitter email, edited transcript, revised version_info, new comment Updated version info, to cover more flavors of Windows. ________________________________________ = Assign - Entry #3 by tim_one on Apr 26, 2004 3:35 pm Status: Pending => Accepted Supporters added: fdrake, tim_one Assigned to Fred, because he has pending changes that may fix the rest of this. ________________________________________ = Comment - Entry #2 by tim_one on Apr 26, 2004 2:41 pm Pretty snaky. These stem from that the default host on Windows is 'localhost', but is an empty string everywhere else. I wormed around that in BaseTest.check_prepare(), and these specific failures went away then. Unfortunately, it also exposed 2 new Windows failures, in: test_http_factory test_webdav_source_factory ________________________________________ = Request - Entry #1 by tim_one on Apr 1, 2004 1:26 pm There are currently 7 similar Windows-specific failures in configuration tests. Here's the traceback for one: FAIL: test_fcgi_factory (ZServer.tests.test_config.ZServerConfigurationTestCase) Traceback (most recent call last): File "C:\Code\Zope\lib/python\ZServer\tests\test_config.py", line 148, in test_fcgi_factory self.check_prepare(factory) File "C:\Code\Zope\lib/python\ZServer\tests\test_config.py", line 71, in check_prepare self.assertEqual(factory.host, "127.0.0.1") File "C:\PYTHON23\lib\unittest.py", line 302, in failUnlessEqual raise self.failureException, \ AssertionError: 'localhost' != '127.0.0.1' In addition to that one, these also fail with the same 'localhost' versus '127.0.0.1' symptom: test_ftp_factory test_http_factory test_icp_factory test_webdav_source_factory test_monitor_factory_with_emergency_user test_monitor_factory_without_emergency_user ============================================================== From zope-coders-admin at zope.org Mon Apr 26 15:47:13 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Mon Apr 26 15:47:16 2004 Subject: [ZCM] [ZC] 1282/ 5 Comment "Windows-specific test failures in CVS" Message-ID: Issue #1282 Update (Comment) "Windows-specific test failures in CVS" Status Accepted, Zope/test medium To followup, visit: http://zope.org/Collectors/Zope/1282 ============================================================== = Comment - Entry #5 by fdrake on Apr 26, 2004 3:47 pm Committed lib/python/ZServer/datatypes.py 1.4. This fulfills Medusa's expectation that it will get an IP number instead of a host name, and helps some tests pass on Windows. Tim is still running tests on Windows; will leave for him to close. ________________________________________ = Edit - Entry #4 by tim_one on Apr 26, 2004 3:36 pm Changes: submitter email, edited transcript, revised version_info, new comment Updated version info, to cover more flavors of Windows. ________________________________________ = Assign - Entry #3 by tim_one on Apr 26, 2004 3:35 pm Status: Pending => Accepted Supporters added: fdrake, tim_one Assigned to Fred, because he has pending changes that may fix the rest of this. ________________________________________ = Comment - Entry #2 by tim_one on Apr 26, 2004 2:41 pm Pretty snaky. These stem from that the default host on Windows is 'localhost', but is an empty string everywhere else. I wormed around that in BaseTest.check_prepare(), and these specific failures went away then. Unfortunately, it also exposed 2 new Windows failures, in: test_http_factory test_webdav_source_factory ________________________________________ = Request - Entry #1 by tim_one on Apr 1, 2004 1:26 pm There are currently 7 similar Windows-specific failures in configuration tests. Here's the traceback for one: FAIL: test_fcgi_factory (ZServer.tests.test_config.ZServerConfigurationTestCase) Traceback (most recent call last): File "C:\Code\Zope\lib/python\ZServer\tests\test_config.py", line 148, in test_fcgi_factory self.check_prepare(factory) File "C:\Code\Zope\lib/python\ZServer\tests\test_config.py", line 71, in check_prepare self.assertEqual(factory.host, "127.0.0.1") File "C:\PYTHON23\lib\unittest.py", line 302, in failUnlessEqual raise self.failureException, \ AssertionError: 'localhost' != '127.0.0.1' In addition to that one, these also fail with the same 'localhost' versus '127.0.0.1' symptom: test_ftp_factory test_http_factory test_icp_factory test_webdav_source_factory test_monitor_factory_with_emergency_user test_monitor_factory_without_emergency_user ============================================================== From zope-coders-admin at zope.org Mon Apr 26 16:03:00 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Mon Apr 26 16:03:02 2004 Subject: [ZCM] [ZC] 1282/ 6 Resolve "Windows-specific test failures in CVS" Message-ID: Issue #1282 Update (Resolve) "Windows-specific test failures in CVS" Status Resolved, Zope/test medium To followup, visit: http://zope.org/Collectors/Zope/1282 ============================================================== = Resolve - Entry #6 by tim_one on Apr 26, 2004 4:03 pm Status: Accepted => Resolved The Zope HEAD tests all pass on Windows now, for the first time in a long time. Thanks, Fred! Closing this. ________________________________________ = Comment - Entry #5 by fdrake on Apr 26, 2004 3:47 pm Committed lib/python/ZServer/datatypes.py 1.4. This fulfills Medusa's expectation that it will get an IP number instead of a host name, and helps some tests pass on Windows. Tim is still running tests on Windows; will leave for him to close. ________________________________________ = Edit - Entry #4 by tim_one on Apr 26, 2004 3:36 pm Changes: submitter email, edited transcript, revised version_info, new comment Updated version info, to cover more flavors of Windows. ________________________________________ = Assign - Entry #3 by tim_one on Apr 26, 2004 3:35 pm Status: Pending => Accepted Supporters added: fdrake, tim_one Assigned to Fred, because he has pending changes that may fix the rest of this. ________________________________________ = Comment - Entry #2 by tim_one on Apr 26, 2004 2:41 pm Pretty snaky. These stem from that the default host on Windows is 'localhost', but is an empty string everywhere else. I wormed around that in BaseTest.check_prepare(), and these specific failures went away then. Unfortunately, it also exposed 2 new Windows failures, in: test_http_factory test_webdav_source_factory ________________________________________ = Request - Entry #1 by tim_one on Apr 1, 2004 1:26 pm There are currently 7 similar Windows-specific failures in configuration tests. Here's the traceback for one: FAIL: test_fcgi_factory (ZServer.tests.test_config.ZServerConfigurationTestCase) Traceback (most recent call last): File "C:\Code\Zope\lib/python\ZServer\tests\test_config.py", line 148, in test_fcgi_factory self.check_prepare(factory) File "C:\Code\Zope\lib/python\ZServer\tests\test_config.py", line 71, in check_prepare self.assertEqual(factory.host, "127.0.0.1") File "C:\PYTHON23\lib\unittest.py", line 302, in failUnlessEqual raise self.failureException, \ AssertionError: 'localhost' != '127.0.0.1' In addition to that one, these also fail with the same 'localhost' versus '127.0.0.1' symptom: test_ftp_factory test_http_factory test_icp_factory test_webdav_source_factory test_monitor_factory_with_emergency_user test_monitor_factory_without_emergency_user ============================================================== From zope-coders-admin at zope.org Mon Apr 26 17:21:56 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Mon Apr 26 17:22:00 2004 Subject: [ZCM] [ZC] 1301/ 1 Request "SIGBUS on sparc64" Message-ID: Issue #1301 Update (Request) "SIGBUS on sparc64" Status Pending, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1301 ============================================================== = Request - Entry #1 by GenericPlayer on Apr 26, 2004 5:21 pm I made a zope instance, and edited the etc/zope.conf file. Setting the effective user to _zope and running bin/runzope as root causes zope to crash with sigbus. If I just su to _zope and run bin/runzope its fine. I am not entirely sure how to tell if this is a zope bug or a python bug, since the backtrace is all ?? and I can't seem to get zope compiled with -ggdb. ============================================================== From zope-coders-admin at zope.org Mon Apr 26 17:35:04 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Mon Apr 26 17:35:08 2004 Subject: [ZCM] [ZC] 1301/ 2 Comment "SIGBUS on sparc64" Message-ID: Issue #1301 Update (Comment) "SIGBUS on sparc64" Status Pending, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1301 ============================================================== = Comment - Entry #2 by mcdonc on Apr 26, 2004 5:35 pm Hmm.. maybe you could start Zope under strace to see what it's trying to do when it crashes? ________________________________________ = Request - Entry #1 by GenericPlayer on Apr 26, 2004 5:21 pm I made a zope instance, and edited the etc/zope.conf file. Setting the effective user to _zope and running bin/runzope as root causes zope to crash with sigbus. If I just su to _zope and run bin/runzope its fine. I am not entirely sure how to tell if this is a zope bug or a python bug, since the backtrace is all ?? and I can't seem to get zope compiled with -ggdb. ============================================================== From zope-coders-admin at zope.org Mon Apr 26 22:32:37 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Mon Apr 26 22:32:42 2004 Subject: [ZCM] [ZC] 1301/ 3 Comment "SIGBUS on sparc64" Message-ID: Issue #1301 Update (Comment) "SIGBUS on sparc64" Status Pending, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1301 ============================================================== = Comment - Entry #3 by GenericPlayer on Apr 26, 2004 10:32 pm If I run it under ktrace, the last things I get before it crashing is this: 10010 python2.3 CALL open(0xffffffffffff11f0,0,0) 10010 python2.3 NAMI "/usr/local/zope/lib/python/initgroups.so" 10010 python2.3 RET open 8 10010 python2.3 CALL fcntl(0x8,0x3,0) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL fcntl(0x8,0x4,0x4) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL fstat(0x8,0xffffffffffff0ce0) 10010 python2.3 RET fstat 0 10010 python2.3 CALL open(0xffffffffffff11f0,0,0) 10010 python2.3 NAMI "/usr/local/zope/lib/python/initgroups.so" 10010 python2.3 RET open 9 10010 python2.3 CALL read(0x9,0xfffffffffffefa50,0x1000) 10010 python2.3 GIO fd 9 read 4096 bytes ----snip the data it read---- 10010 python2.3 RET read 4096/0x1000 10010 python2.3 CALL mmap(0,0x602000,0,0x2,0x9,0,0) 10010 python2.3 RET mmap 1456504832/0x56d08000 10010 python2.3 CALL mmap(0x56d08000,0x2000,0x5,0x12,0x9,0,0) 10010 python2.3 RET mmap 1456504832/0x56d08000 10010 python2.3 CALL mmap(0x56e08000,0x2000,0x1,0x12,0x9,0,0) 10010 python2.3 RET mmap 1457553408/0x56e08000 10010 python2.3 CALL mmap(0x56f08000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1458601984/0x56f08000 10010 python2.3 CALL mmap(0x57008000,0x2000,0x7,0x12,0x9,0,0) 10010 python2.3 RET mmap 1459650560/0x57008000 10010 python2.3 CALL mmap(0x57208000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1461747712/0x57208000 10010 python2.3 CALL mmap(0x57308000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1462796288/0x57308000 10010 python2.3 CALL close(0x9) 10010 python2.3 RET close 0 10010 python2.3 CALL mprotect(0x56e08000,0xd18,0x3) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56d08000,0xcf4,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56e08000,0xd18,0x1) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56d08000,0xcf4,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57208f00,0x2000,0x1) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x1,0xffffffff) 10010 python2.3 RET sigprocmask 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x3,0) 10010 python2.3 RET sigprocmask -65793/0xfffefeff 10010 python2.3 CALL fstat(0x8,0xffffffffffff0fd0) 10010 python2.3 RET fstat 0 10010 python2.3 CALL fcntl(0x8,0x3,0) 10010 python2.3 RET fcntl 4 10010 python2.3 CALL fcntl(0x8,0x4,0) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL close(0x8) 10010 python2.3 RET close 0 10010 python2.3 CALL sigprocmask(0x1,0xffffffff) 10010 python2.3 RET sigprocmask 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x3,0) 10010 python2.3 RET sigprocmask -65793/0xfffefeff 10010 python2.3 PSIG SIGBUS SIG_DFL code 0 addr=0x489fe0f0 trapno=0 10010 python2.3 PSIG SIGBUS SIG_DFL code 0 addr=0x0 trapno=0 10010 python2.3 NAMI "python2.3.core" ________________________________________ = Comment - Entry #2 by mcdonc on Apr 26, 2004 5:35 pm Hmm.. maybe you could start Zope under strace to see what it's trying to do when it crashes? ________________________________________ = Request - Entry #1 by GenericPlayer on Apr 26, 2004 5:21 pm I made a zope instance, and edited the etc/zope.conf file. Setting the effective user to _zope and running bin/runzope as root causes zope to crash with sigbus. If I just su to _zope and run bin/runzope its fine. I am not entirely sure how to tell if this is a zope bug or a python bug, since the backtrace is all ?? and I can't seem to get zope compiled with -ggdb. ============================================================== From zope-coders-admin at zope.org Mon Apr 26 22:43:16 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Mon Apr 26 22:43:19 2004 Subject: [ZCM] [ZC] 1301/ 4 Comment "SIGBUS on sparc64" Message-ID: Issue #1301 Update (Comment) "SIGBUS on sparc64" Status Pending, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1301 ============================================================== = Comment - Entry #4 by mcdonc on Apr 26, 2004 10:43 pm Aha. Perhaps uncomment anything that does "import initgroups" from the Zope source and anything that uses that module. This is an odd module that I personally never thought was necessary and should likely be removed. Zope should run fine without it. ________________________________________ = Comment - Entry #3 by GenericPlayer on Apr 26, 2004 10:32 pm If I run it under ktrace, the last things I get before it crashing is this: 10010 python2.3 CALL open(0xffffffffffff11f0,0,0) 10010 python2.3 NAMI "/usr/local/zope/lib/python/initgroups.so" 10010 python2.3 RET open 8 10010 python2.3 CALL fcntl(0x8,0x3,0) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL fcntl(0x8,0x4,0x4) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL fstat(0x8,0xffffffffffff0ce0) 10010 python2.3 RET fstat 0 10010 python2.3 CALL open(0xffffffffffff11f0,0,0) 10010 python2.3 NAMI "/usr/local/zope/lib/python/initgroups.so" 10010 python2.3 RET open 9 10010 python2.3 CALL read(0x9,0xfffffffffffefa50,0x1000) 10010 python2.3 GIO fd 9 read 4096 bytes ----snip the data it read---- 10010 python2.3 RET read 4096/0x1000 10010 python2.3 CALL mmap(0,0x602000,0,0x2,0x9,0,0) 10010 python2.3 RET mmap 1456504832/0x56d08000 10010 python2.3 CALL mmap(0x56d08000,0x2000,0x5,0x12,0x9,0,0) 10010 python2.3 RET mmap 1456504832/0x56d08000 10010 python2.3 CALL mmap(0x56e08000,0x2000,0x1,0x12,0x9,0,0) 10010 python2.3 RET mmap 1457553408/0x56e08000 10010 python2.3 CALL mmap(0x56f08000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1458601984/0x56f08000 10010 python2.3 CALL mmap(0x57008000,0x2000,0x7,0x12,0x9,0,0) 10010 python2.3 RET mmap 1459650560/0x57008000 10010 python2.3 CALL mmap(0x57208000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1461747712/0x57208000 10010 python2.3 CALL mmap(0x57308000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1462796288/0x57308000 10010 python2.3 CALL close(0x9) 10010 python2.3 RET close 0 10010 python2.3 CALL mprotect(0x56e08000,0xd18,0x3) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56d08000,0xcf4,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56e08000,0xd18,0x1) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56d08000,0xcf4,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57208f00,0x2000,0x1) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x1,0xffffffff) 10010 python2.3 RET sigprocmask 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x3,0) 10010 python2.3 RET sigprocmask -65793/0xfffefeff 10010 python2.3 CALL fstat(0x8,0xffffffffffff0fd0) 10010 python2.3 RET fstat 0 10010 python2.3 CALL fcntl(0x8,0x3,0) 10010 python2.3 RET fcntl 4 10010 python2.3 CALL fcntl(0x8,0x4,0) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL close(0x8) 10010 python2.3 RET close 0 10010 python2.3 CALL sigprocmask(0x1,0xffffffff) 10010 python2.3 RET sigprocmask 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x3,0) 10010 python2.3 RET sigprocmask -65793/0xfffefeff 10010 python2.3 PSIG SIGBUS SIG_DFL code 0 addr=0x489fe0f0 trapno=0 10010 python2.3 PSIG SIGBUS SIG_DFL code 0 addr=0x0 trapno=0 10010 python2.3 NAMI "python2.3.core" ________________________________________ = Comment - Entry #2 by mcdonc on Apr 26, 2004 5:35 pm Hmm.. maybe you could start Zope under strace to see what it's trying to do when it crashes? ________________________________________ = Request - Entry #1 by GenericPlayer on Apr 26, 2004 5:21 pm I made a zope instance, and edited the etc/zope.conf file. Setting the effective user to _zope and running bin/runzope as root causes zope to crash with sigbus. If I just su to _zope and run bin/runzope its fine. I am not entirely sure how to tell if this is a zope bug or a python bug, since the backtrace is all ?? and I can't seem to get zope compiled with -ggdb. ============================================================== From zope-coders-admin at zope.org Mon Apr 26 23:26:36 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Mon Apr 26 23:26:40 2004 Subject: [ZCM] [ZC] 1301/ 5 Comment "SIGBUS on sparc64" Message-ID: Issue #1301 Update (Comment) "SIGBUS on sparc64" Status Pending, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1301 ============================================================== = Comment - Entry #5 by tim_one on Apr 26, 2004 11:26 pm Good eye, Chris! I see that the C code in Zope's initgroups_initgroups() starts with gid_t gid; if (!PyArg_ParseTuple(args, "sl:initgroups", &username, &gid)) The "l" format code makes Python treat it like a C long, which is probably 8 bytes on this box. If sizeof(gid_t) < 8 on this box, then, the PyArg_ParseTuple() call will write beyond the space allocated for gid. Hilarity ensues, if so. ________________________________________ = Comment - Entry #4 by mcdonc on Apr 26, 2004 10:43 pm Aha. Perhaps uncomment anything that does "import initgroups" from the Zope source and anything that uses that module. This is an odd module that I personally never thought was necessary and should likely be removed. Zope should run fine without it. ________________________________________ = Comment - Entry #3 by GenericPlayer on Apr 26, 2004 10:32 pm If I run it under ktrace, the last things I get before it crashing is this: 10010 python2.3 CALL open(0xffffffffffff11f0,0,0) 10010 python2.3 NAMI "/usr/local/zope/lib/python/initgroups.so" 10010 python2.3 RET open 8 10010 python2.3 CALL fcntl(0x8,0x3,0) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL fcntl(0x8,0x4,0x4) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL fstat(0x8,0xffffffffffff0ce0) 10010 python2.3 RET fstat 0 10010 python2.3 CALL open(0xffffffffffff11f0,0,0) 10010 python2.3 NAMI "/usr/local/zope/lib/python/initgroups.so" 10010 python2.3 RET open 9 10010 python2.3 CALL read(0x9,0xfffffffffffefa50,0x1000) 10010 python2.3 GIO fd 9 read 4096 bytes ----snip the data it read---- 10010 python2.3 RET read 4096/0x1000 10010 python2.3 CALL mmap(0,0x602000,0,0x2,0x9,0,0) 10010 python2.3 RET mmap 1456504832/0x56d08000 10010 python2.3 CALL mmap(0x56d08000,0x2000,0x5,0x12,0x9,0,0) 10010 python2.3 RET mmap 1456504832/0x56d08000 10010 python2.3 CALL mmap(0x56e08000,0x2000,0x1,0x12,0x9,0,0) 10010 python2.3 RET mmap 1457553408/0x56e08000 10010 python2.3 CALL mmap(0x56f08000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1458601984/0x56f08000 10010 python2.3 CALL mmap(0x57008000,0x2000,0x7,0x12,0x9,0,0) 10010 python2.3 RET mmap 1459650560/0x57008000 10010 python2.3 CALL mmap(0x57208000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1461747712/0x57208000 10010 python2.3 CALL mmap(0x57308000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1462796288/0x57308000 10010 python2.3 CALL close(0x9) 10010 python2.3 RET close 0 10010 python2.3 CALL mprotect(0x56e08000,0xd18,0x3) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56d08000,0xcf4,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56e08000,0xd18,0x1) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56d08000,0xcf4,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57208f00,0x2000,0x1) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x1,0xffffffff) 10010 python2.3 RET sigprocmask 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x3,0) 10010 python2.3 RET sigprocmask -65793/0xfffefeff 10010 python2.3 CALL fstat(0x8,0xffffffffffff0fd0) 10010 python2.3 RET fstat 0 10010 python2.3 CALL fcntl(0x8,0x3,0) 10010 python2.3 RET fcntl 4 10010 python2.3 CALL fcntl(0x8,0x4,0) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL close(0x8) 10010 python2.3 RET close 0 10010 python2.3 CALL sigprocmask(0x1,0xffffffff) 10010 python2.3 RET sigprocmask 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x3,0) 10010 python2.3 RET sigprocmask -65793/0xfffefeff 10010 python2.3 PSIG SIGBUS SIG_DFL code 0 addr=0x489fe0f0 trapno=0 10010 python2.3 PSIG SIGBUS SIG_DFL code 0 addr=0x0 trapno=0 10010 python2.3 NAMI "python2.3.core" ________________________________________ = Comment - Entry #2 by mcdonc on Apr 26, 2004 5:35 pm Hmm.. maybe you could start Zope under strace to see what it's trying to do when it crashes? ________________________________________ = Request - Entry #1 by GenericPlayer on Apr 26, 2004 5:21 pm I made a zope instance, and edited the etc/zope.conf file. Setting the effective user to _zope and running bin/runzope as root causes zope to crash with sigbus. If I just su to _zope and run bin/runzope its fine. I am not entirely sure how to tell if this is a zope bug or a python bug, since the backtrace is all ?? and I can't seem to get zope compiled with -ggdb. ============================================================== From zope-coders-admin at zope.org Mon Apr 26 23:34:38 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Mon Apr 26 23:34:40 2004 Subject: [ZCM] [ZC] 1301/ 6 Comment "SIGBUS on sparc64" Message-ID: Issue #1301 Update (Comment) "SIGBUS on sparc64" Status Pending, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1301 ============================================================== = Comment - Entry #6 by mcdonc on Apr 26, 2004 11:34 pm Thanks for explaining Tim! I think it would be time better spent to remove this module than to fix the bug unless somebody can explain why it exists and what its benefit is. ________________________________________ = Comment - Entry #5 by tim_one on Apr 26, 2004 11:26 pm Good eye, Chris! I see that the C code in Zope's initgroups_initgroups() starts with gid_t gid; if (!PyArg_ParseTuple(args, "sl:initgroups", &username, &gid)) The "l" format code makes Python treat it like a C long, which is probably 8 bytes on this box. If sizeof(gid_t) < 8 on this box, then, the PyArg_ParseTuple() call will write beyond the space allocated for gid. Hilarity ensues, if so. ________________________________________ = Comment - Entry #4 by mcdonc on Apr 26, 2004 10:43 pm Aha. Perhaps uncomment anything that does "import initgroups" from the Zope source and anything that uses that module. This is an odd module that I personally never thought was necessary and should likely be removed. Zope should run fine without it. ________________________________________ = Comment - Entry #3 by GenericPlayer on Apr 26, 2004 10:32 pm If I run it under ktrace, the last things I get before it crashing is this: 10010 python2.3 CALL open(0xffffffffffff11f0,0,0) 10010 python2.3 NAMI "/usr/local/zope/lib/python/initgroups.so" 10010 python2.3 RET open 8 10010 python2.3 CALL fcntl(0x8,0x3,0) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL fcntl(0x8,0x4,0x4) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL fstat(0x8,0xffffffffffff0ce0) 10010 python2.3 RET fstat 0 10010 python2.3 CALL open(0xffffffffffff11f0,0,0) 10010 python2.3 NAMI "/usr/local/zope/lib/python/initgroups.so" 10010 python2.3 RET open 9 10010 python2.3 CALL read(0x9,0xfffffffffffefa50,0x1000) 10010 python2.3 GIO fd 9 read 4096 bytes ----snip the data it read---- 10010 python2.3 RET read 4096/0x1000 10010 python2.3 CALL mmap(0,0x602000,0,0x2,0x9,0,0) 10010 python2.3 RET mmap 1456504832/0x56d08000 10010 python2.3 CALL mmap(0x56d08000,0x2000,0x5,0x12,0x9,0,0) 10010 python2.3 RET mmap 1456504832/0x56d08000 10010 python2.3 CALL mmap(0x56e08000,0x2000,0x1,0x12,0x9,0,0) 10010 python2.3 RET mmap 1457553408/0x56e08000 10010 python2.3 CALL mmap(0x56f08000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1458601984/0x56f08000 10010 python2.3 CALL mmap(0x57008000,0x2000,0x7,0x12,0x9,0,0) 10010 python2.3 RET mmap 1459650560/0x57008000 10010 python2.3 CALL mmap(0x57208000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1461747712/0x57208000 10010 python2.3 CALL mmap(0x57308000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1462796288/0x57308000 10010 python2.3 CALL close(0x9) 10010 python2.3 RET close 0 10010 python2.3 CALL mprotect(0x56e08000,0xd18,0x3) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56d08000,0xcf4,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56e08000,0xd18,0x1) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56d08000,0xcf4,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57208f00,0x2000,0x1) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x1,0xffffffff) 10010 python2.3 RET sigprocmask 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x3,0) 10010 python2.3 RET sigprocmask -65793/0xfffefeff 10010 python2.3 CALL fstat(0x8,0xffffffffffff0fd0) 10010 python2.3 RET fstat 0 10010 python2.3 CALL fcntl(0x8,0x3,0) 10010 python2.3 RET fcntl 4 10010 python2.3 CALL fcntl(0x8,0x4,0) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL close(0x8) 10010 python2.3 RET close 0 10010 python2.3 CALL sigprocmask(0x1,0xffffffff) 10010 python2.3 RET sigprocmask 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x3,0) 10010 python2.3 RET sigprocmask -65793/0xfffefeff 10010 python2.3 PSIG SIGBUS SIG_DFL code 0 addr=0x489fe0f0 trapno=0 10010 python2.3 PSIG SIGBUS SIG_DFL code 0 addr=0x0 trapno=0 10010 python2.3 NAMI "python2.3.core" ________________________________________ = Comment - Entry #2 by mcdonc on Apr 26, 2004 5:35 pm Hmm.. maybe you could start Zope under strace to see what it's trying to do when it crashes? ________________________________________ = Request - Entry #1 by GenericPlayer on Apr 26, 2004 5:21 pm I made a zope instance, and edited the etc/zope.conf file. Setting the effective user to _zope and running bin/runzope as root causes zope to crash with sigbus. If I just su to _zope and run bin/runzope its fine. I am not entirely sure how to tell if this is a zope bug or a python bug, since the backtrace is all ?? and I can't seem to get zope compiled with -ggdb. ============================================================== From zope-coders-admin at zope.org Mon Apr 26 23:50:00 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Mon Apr 26 23:50:03 2004 Subject: [ZCM] [ZC] 1301/ 7 Comment "SIGBUS on sparc64" Message-ID: Issue #1301 Update (Comment) "SIGBUS on sparc64" Status Pending, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1301 ============================================================== = Comment - Entry #7 by tim_one on Apr 26, 2004 11:49 pm I agree -- but then this code doesn't even try to run on Windows, so what do I care . ________________________________________ = Comment - Entry #6 by mcdonc on Apr 26, 2004 11:34 pm Thanks for explaining Tim! I think it would be time better spent to remove this module than to fix the bug unless somebody can explain why it exists and what its benefit is. ________________________________________ = Comment - Entry #5 by tim_one on Apr 26, 2004 11:26 pm Good eye, Chris! I see that the C code in Zope's initgroups_initgroups() starts with gid_t gid; if (!PyArg_ParseTuple(args, "sl:initgroups", &username, &gid)) The "l" format code makes Python treat it like a C long, which is probably 8 bytes on this box. If sizeof(gid_t) < 8 on this box, then, the PyArg_ParseTuple() call will write beyond the space allocated for gid. Hilarity ensues, if so. ________________________________________ = Comment - Entry #4 by mcdonc on Apr 26, 2004 10:43 pm Aha. Perhaps uncomment anything that does "import initgroups" from the Zope source and anything that uses that module. This is an odd module that I personally never thought was necessary and should likely be removed. Zope should run fine without it. ________________________________________ = Comment - Entry #3 by GenericPlayer on Apr 26, 2004 10:32 pm If I run it under ktrace, the last things I get before it crashing is this: 10010 python2.3 CALL open(0xffffffffffff11f0,0,0) 10010 python2.3 NAMI "/usr/local/zope/lib/python/initgroups.so" 10010 python2.3 RET open 8 10010 python2.3 CALL fcntl(0x8,0x3,0) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL fcntl(0x8,0x4,0x4) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL fstat(0x8,0xffffffffffff0ce0) 10010 python2.3 RET fstat 0 10010 python2.3 CALL open(0xffffffffffff11f0,0,0) 10010 python2.3 NAMI "/usr/local/zope/lib/python/initgroups.so" 10010 python2.3 RET open 9 10010 python2.3 CALL read(0x9,0xfffffffffffefa50,0x1000) 10010 python2.3 GIO fd 9 read 4096 bytes ----snip the data it read---- 10010 python2.3 RET read 4096/0x1000 10010 python2.3 CALL mmap(0,0x602000,0,0x2,0x9,0,0) 10010 python2.3 RET mmap 1456504832/0x56d08000 10010 python2.3 CALL mmap(0x56d08000,0x2000,0x5,0x12,0x9,0,0) 10010 python2.3 RET mmap 1456504832/0x56d08000 10010 python2.3 CALL mmap(0x56e08000,0x2000,0x1,0x12,0x9,0,0) 10010 python2.3 RET mmap 1457553408/0x56e08000 10010 python2.3 CALL mmap(0x56f08000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1458601984/0x56f08000 10010 python2.3 CALL mmap(0x57008000,0x2000,0x7,0x12,0x9,0,0) 10010 python2.3 RET mmap 1459650560/0x57008000 10010 python2.3 CALL mmap(0x57208000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1461747712/0x57208000 10010 python2.3 CALL mmap(0x57308000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1462796288/0x57308000 10010 python2.3 CALL close(0x9) 10010 python2.3 RET close 0 10010 python2.3 CALL mprotect(0x56e08000,0xd18,0x3) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56d08000,0xcf4,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56e08000,0xd18,0x1) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56d08000,0xcf4,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57208f00,0x2000,0x1) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x1,0xffffffff) 10010 python2.3 RET sigprocmask 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x3,0) 10010 python2.3 RET sigprocmask -65793/0xfffefeff 10010 python2.3 CALL fstat(0x8,0xffffffffffff0fd0) 10010 python2.3 RET fstat 0 10010 python2.3 CALL fcntl(0x8,0x3,0) 10010 python2.3 RET fcntl 4 10010 python2.3 CALL fcntl(0x8,0x4,0) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL close(0x8) 10010 python2.3 RET close 0 10010 python2.3 CALL sigprocmask(0x1,0xffffffff) 10010 python2.3 RET sigprocmask 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x3,0) 10010 python2.3 RET sigprocmask -65793/0xfffefeff 10010 python2.3 PSIG SIGBUS SIG_DFL code 0 addr=0x489fe0f0 trapno=0 10010 python2.3 PSIG SIGBUS SIG_DFL code 0 addr=0x0 trapno=0 10010 python2.3 NAMI "python2.3.core" ________________________________________ = Comment - Entry #2 by mcdonc on Apr 26, 2004 5:35 pm Hmm.. maybe you could start Zope under strace to see what it's trying to do when it crashes? ________________________________________ = Request - Entry #1 by GenericPlayer on Apr 26, 2004 5:21 pm I made a zope instance, and edited the etc/zope.conf file. Setting the effective user to _zope and running bin/runzope as root causes zope to crash with sigbus. If I just su to _zope and run bin/runzope its fine. I am not entirely sure how to tell if this is a zope bug or a python bug, since the backtrace is all ?? and I can't seem to get zope compiled with -ggdb. ============================================================== From zope-coders-admin at zope.org Tue Apr 27 00:16:20 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Tue Apr 27 00:16:25 2004 Subject: [ZCM] [ZC] 1301/ 8 Comment "SIGBUS on sparc64" Message-ID: Issue #1301 Update (Comment) "SIGBUS on sparc64" Status Pending, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1301 ============================================================== = Comment - Entry #8 by GenericPlayer on Apr 27, 2004 12:16 am The only place it seems to be used is when starting zope as root and having it drop privileges, it uses initgroups to find out the gid to setgid to in __init__.py. Maybe add a config option to zope.conf for effective-group to go with the effective-user option? ________________________________________ = Comment - Entry #7 by tim_one on Apr 26, 2004 11:49 pm I agree -- but then this code doesn't even try to run on Windows, so what do I care . ________________________________________ = Comment - Entry #6 by mcdonc on Apr 26, 2004 11:34 pm Thanks for explaining Tim! I think it would be time better spent to remove this module than to fix the bug unless somebody can explain why it exists and what its benefit is. ________________________________________ = Comment - Entry #5 by tim_one on Apr 26, 2004 11:26 pm Good eye, Chris! I see that the C code in Zope's initgroups_initgroups() starts with gid_t gid; if (!PyArg_ParseTuple(args, "sl:initgroups", &username, &gid)) The "l" format code makes Python treat it like a C long, which is probably 8 bytes on this box. If sizeof(gid_t) < 8 on this box, then, the PyArg_ParseTuple() call will write beyond the space allocated for gid. Hilarity ensues, if so. ________________________________________ = Comment - Entry #4 by mcdonc on Apr 26, 2004 10:43 pm Aha. Perhaps uncomment anything that does "import initgroups" from the Zope source and anything that uses that module. This is an odd module that I personally never thought was necessary and should likely be removed. Zope should run fine without it. ________________________________________ = Comment - Entry #3 by GenericPlayer on Apr 26, 2004 10:32 pm If I run it under ktrace, the last things I get before it crashing is this: 10010 python2.3 CALL open(0xffffffffffff11f0,0,0) 10010 python2.3 NAMI "/usr/local/zope/lib/python/initgroups.so" 10010 python2.3 RET open 8 10010 python2.3 CALL fcntl(0x8,0x3,0) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL fcntl(0x8,0x4,0x4) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL fstat(0x8,0xffffffffffff0ce0) 10010 python2.3 RET fstat 0 10010 python2.3 CALL open(0xffffffffffff11f0,0,0) 10010 python2.3 NAMI "/usr/local/zope/lib/python/initgroups.so" 10010 python2.3 RET open 9 10010 python2.3 CALL read(0x9,0xfffffffffffefa50,0x1000) 10010 python2.3 GIO fd 9 read 4096 bytes ----snip the data it read---- 10010 python2.3 RET read 4096/0x1000 10010 python2.3 CALL mmap(0,0x602000,0,0x2,0x9,0,0) 10010 python2.3 RET mmap 1456504832/0x56d08000 10010 python2.3 CALL mmap(0x56d08000,0x2000,0x5,0x12,0x9,0,0) 10010 python2.3 RET mmap 1456504832/0x56d08000 10010 python2.3 CALL mmap(0x56e08000,0x2000,0x1,0x12,0x9,0,0) 10010 python2.3 RET mmap 1457553408/0x56e08000 10010 python2.3 CALL mmap(0x56f08000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1458601984/0x56f08000 10010 python2.3 CALL mmap(0x57008000,0x2000,0x7,0x12,0x9,0,0) 10010 python2.3 RET mmap 1459650560/0x57008000 10010 python2.3 CALL mmap(0x57208000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1461747712/0x57208000 10010 python2.3 CALL mmap(0x57308000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1462796288/0x57308000 10010 python2.3 CALL close(0x9) 10010 python2.3 RET close 0 10010 python2.3 CALL mprotect(0x56e08000,0xd18,0x3) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56d08000,0xcf4,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56e08000,0xd18,0x1) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56d08000,0xcf4,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57208f00,0x2000,0x1) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x1,0xffffffff) 10010 python2.3 RET sigprocmask 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x3,0) 10010 python2.3 RET sigprocmask -65793/0xfffefeff 10010 python2.3 CALL fstat(0x8,0xffffffffffff0fd0) 10010 python2.3 RET fstat 0 10010 python2.3 CALL fcntl(0x8,0x3,0) 10010 python2.3 RET fcntl 4 10010 python2.3 CALL fcntl(0x8,0x4,0) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL close(0x8) 10010 python2.3 RET close 0 10010 python2.3 CALL sigprocmask(0x1,0xffffffff) 10010 python2.3 RET sigprocmask 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x3,0) 10010 python2.3 RET sigprocmask -65793/0xfffefeff 10010 python2.3 PSIG SIGBUS SIG_DFL code 0 addr=0x489fe0f0 trapno=0 10010 python2.3 PSIG SIGBUS SIG_DFL code 0 addr=0x0 trapno=0 10010 python2.3 NAMI "python2.3.core" ________________________________________ = Comment - Entry #2 by mcdonc on Apr 26, 2004 5:35 pm Hmm.. maybe you could start Zope under strace to see what it's trying to do when it crashes? ________________________________________ = Request - Entry #1 by GenericPlayer on Apr 26, 2004 5:21 pm I made a zope instance, and edited the etc/zope.conf file. Setting the effective user to _zope and running bin/runzope as root causes zope to crash with sigbus. If I just su to _zope and run bin/runzope its fine. I am not entirely sure how to tell if this is a zope bug or a python bug, since the backtrace is all ?? and I can't seem to get zope compiled with -ggdb. ============================================================== From zope-coders-admin at zope.org Tue Apr 27 05:02:50 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Tue Apr 27 05:03:51 2004 Subject: [ZCM] [ZC] 1004/ 3 Comment "text and tokens property types not available." Message-ID: Issue #1004 Update (Comment) "text and tokens property types not available." Status Accepted, Zope/bug+solution critical To followup, visit: http://zope.org/Collectors/Zope/1004 ============================================================== = Comment - Entry #3 by htrd on Apr 27, 2004 5:02 am Patch looks good to me. ________________________________________ = Accept - Entry #2 by mjablonski on Apr 22, 2004 4:37 am Status: Pending => Accepted Supporters added: mjablonski This problem still exists in 2.6 & 2.7 and should be fixed. I don't think that there's a good reason not to show text/tokens if management_page_charset is set to ISO-XYZ or something like that. ________________________________________ = Request - Entry #1 by zybi on Aug 1, 2003 11:44 am Uploaded: "properties.dtml.patch" - http://zope.org/Collectors/Zope/1004/properties.dtml.patch/view In the Properties form text and tokens property types are only available when management_page_charset is set to UTF-8. Below is an excerpt from lib/python/OFS/dtml/properties.dtml wchich shows source of the problem: Attached patch also corrects alphabetical ordering of the options. ============================================================== From zope-coders-admin at zope.org Tue Apr 27 17:17:54 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Tue Apr 27 17:18:01 2004 Subject: [ZCM] [ZC] 545/ 3 Comment "Object id 'content_type' crashes folder view" Message-ID: Issue #545 Update (Comment) "Object id 'content_type' crashes folder view" Status Accepted, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/545 ============================================================== = Comment - Entry #3 by leper on Apr 27, 2004 5:17 pm I'm unable to reproduce this at all. ________________________________________ = Accept - Entry #2 by mjablonski on Apr 26, 2004 3:36 am Status: Pending => Accepted Supporters added: mjablonski Jamie Heilman wrote on zope-dev: "Accept, they are completely fixable.  I've probably already fixed those bugs in my fork, I'll hunt around and see if I can find the relevant files and post followups to the bugs." Please note: This one is related to http://zope.org/Collectors/Zope/1217 ________________________________________ = Request - Entry #1 by peterb on Aug 28, 2002 9:28 am Create folder A, in A create an object with id 'content_type' and then try to list all items in A's parent. What you get is: Error Type: AttributeError Error Value: startswith File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 114, in publish File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: Peter) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 98, in publish File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: manage_contents) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: manage_contents) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 252, in __call__ (Object: manage_contents) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in _bindAndExec (Object: manage_contents) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/App/special_dtml.py, line 172, in _exec (Object: manage_contents) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_In.py, line 695, in renderwob (Object: objectItems) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_Let.py, line 76, in render (Object: explicit="_.getitem('sequence-item').aq_explicit") File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval (Object: _.hasattr(explicit, 'manage_FTPget') or _.hasattr(explicit, 'read') or _.getattr(explicit, 'content_type', '').startswith('text/')) (Info: explicit) File , line 0, in ? Probably because get_attr returns the 'content_type' object and not the content type attribute ============================================================== From zope-coders-admin at zope.org Tue Apr 27 17:29:53 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Tue Apr 27 17:29:56 2004 Subject: [ZCM] [ZC] 1217/ 3 Comment "Error in zmi when an object is named 'URL' or 'URL1'" Message-ID: Issue #1217 Update (Comment) "Error in zmi when an object is named 'URL' or 'URL1'" Status Accepted, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1217 ============================================================== = Comment - Entry #3 by leper on Apr 27, 2004 5:29 pm I'll mail a patch to zope-dev because this collector continues to be unable to collect patches from authenticated users. It by no means addresses the issue in its entirety, but it gives you the general idea of what needs to be done over the entire source tree. DTML is a painful tool to use correctly, and I won't be submitting a more complete patch as I don't have the time or desire to do so. Yes the code could be made more susinct and easy to read with appropriate use of and/or statements. ________________________________________ = Accept - Entry #2 by mjablonski on Apr 26, 2004 3:37 am Status: Pending => Accepted Supporters added: mjablonski Jamie Heilman wrote on zope-dev: "Accept, they are completely fixable.  I've probably already fixed those bugs in my fork, I'll hunt around and see if I can find the relevant files and post followups to the bugs." Please note: This one is related to http://zope.org/Collectors/Zope/545 ________________________________________ = Request - Entry #1 by ebrun on Feb 4, 2004 9:22 am When I create a object (like Folder or DTMLMethod or ...) with name 'URL' or 'URL1' .... , I can't access to the content of my parent folder which contain this new folder : Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: __getslice__ I think its a conflic namespace between REQUEST object and Folder Object in the manage_main methed (OFS/dtml/main.dtml). Note I try it on Zope.org : no problem to create but then I can't copy/paste anything in my folder : the same error happened. In the copy / paste the problem is the same because when REQUEST is not None in manage_copyObjects and manage_cutObjects the returned method is self.manage_main(self, REQUEST). ============================================================== From zope-coders-admin at zope.org Tue Apr 27 17:37:52 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Tue Apr 27 17:37:54 2004 Subject: [ZCM] [ZC] 1217/ 4 Comment "Error in zmi when an object is named 'URL' or 'URL1'" Message-ID: Issue #1217 Update (Comment) "Error in zmi when an object is named 'URL' or 'URL1'" Status Accepted, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1217 ============================================================== = Comment - Entry #4 by leper on Apr 27, 2004 5:37 pm http://marc.theaimsgroup.com/?l=zope-dev&m=108310171308965&w=2 ________________________________________ = Comment - Entry #3 by leper on Apr 27, 2004 5:29 pm I'll mail a patch to zope-dev because this collector continues to be unable to collect patches from authenticated users. It by no means addresses the issue in its entirety, but it gives you the general idea of what needs to be done over the entire source tree. DTML is a painful tool to use correctly, and I won't be submitting a more complete patch as I don't have the time or desire to do so. Yes the code could be made more susinct and easy to read with appropriate use of and/or statements. ________________________________________ = Accept - Entry #2 by mjablonski on Apr 26, 2004 3:37 am Status: Pending => Accepted Supporters added: mjablonski Jamie Heilman wrote on zope-dev: "Accept, they are completely fixable.  I've probably already fixed those bugs in my fork, I'll hunt around and see if I can find the relevant files and post followups to the bugs." Please note: This one is related to http://zope.org/Collectors/Zope/545 ________________________________________ = Request - Entry #1 by ebrun on Feb 4, 2004 9:22 am When I create a object (like Folder or DTMLMethod or ...) with name 'URL' or 'URL1' .... , I can't access to the content of my parent folder which contain this new folder : Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: __getslice__ I think its a conflic namespace between REQUEST object and Folder Object in the manage_main methed (OFS/dtml/main.dtml). Note I try it on Zope.org : no problem to create but then I can't copy/paste anything in my folder : the same error happened. In the copy / paste the problem is the same because when REQUEST is not None in manage_copyObjects and manage_cutObjects the returned method is self.manage_main(self, REQUEST). ============================================================== From zope-coders-admin at zope.org Tue Apr 27 17:54:32 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Tue Apr 27 17:54:34 2004 Subject: [ZCM] [ZC] 1217/ 5 Comment "Error in zmi when an object is named 'URL' or 'URL1'" Message-ID: Issue #1217 Update (Comment) "Error in zmi when an object is named 'URL' or 'URL1'" Status Accepted, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1217 ============================================================== = Comment - Entry #5 by tim_one on Apr 27, 2004 5:54 pm Uploaded: "dtmhell.diff" - http://zope.org/Collectors/Zope/1217/dtmhell.diff/view Just attaching the patch (dtmhell.diff) Jamie mailed to zope-dev. ________________________________________ = Comment - Entry #4 by leper on Apr 27, 2004 5:37 pm http://marc.theaimsgroup.com/?l=zope-dev&m=108310171308965&w=2 ________________________________________ = Comment - Entry #3 by leper on Apr 27, 2004 5:29 pm I'll mail a patch to zope-dev because this collector continues to be unable to collect patches from authenticated users. It by no means addresses the issue in its entirety, but it gives you the general idea of what needs to be done over the entire source tree. DTML is a painful tool to use correctly, and I won't be submitting a more complete patch as I don't have the time or desire to do so. Yes the code could be made more susinct and easy to read with appropriate use of and/or statements. ________________________________________ = Accept - Entry #2 by mjablonski on Apr 26, 2004 3:37 am Status: Pending => Accepted Supporters added: mjablonski Jamie Heilman wrote on zope-dev: "Accept, they are completely fixable.  I've probably already fixed those bugs in my fork, I'll hunt around and see if I can find the relevant files and post followups to the bugs." Please note: This one is related to http://zope.org/Collectors/Zope/545 ________________________________________ = Request - Entry #1 by ebrun on Feb 4, 2004 9:22 am When I create a object (like Folder or DTMLMethod or ...) with name 'URL' or 'URL1' .... , I can't access to the content of my parent folder which contain this new folder : Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: __getslice__ I think its a conflic namespace between REQUEST object and Folder Object in the manage_main methed (OFS/dtml/main.dtml). Note I try it on Zope.org : no problem to create but then I can't copy/paste anything in my folder : the same error happened. In the copy / paste the problem is the same because when REQUEST is not None in manage_copyObjects and manage_cutObjects the returned method is self.manage_main(self, REQUEST). ============================================================== From zope-coders-admin at zope.org Wed Apr 28 00:58:23 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Wed Apr 28 00:58:25 2004 Subject: [ZCM] [ZC] 1294/ 3 Comment "VirtualHostMonster: Can't edit mappings" Message-ID: Issue #1294 Update (Comment) "VirtualHostMonster: Can't edit mappings" Status Pending, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1294 ============================================================== = Comment - Entry #3 by pfortin on Apr 28, 2004 12:58 am I have the same error with Zope 2.7 and Python 2.3... Been searching the site for the supported version of Python, to no avail so far... Is this a bad combo too...? ________________________________________ = Comment - Entry #2 by ajung on Apr 11, 2004 1:09 pm works for me btw. Python 2.2.3 *is not* a supported Python version for running Zope 2.7 ________________________________________ = Request - Entry #1 by Anonymous User on Apr 11, 2004 12:46 pm visiting the "Mappings" tag of a newly added Virtual Host Monster gives error message: unexpected end tag, for tag , on line 43 of manage_edit I tried to find this DTML-document "manage_edit" but didn't succeed... ============================================================== From zope-coders-admin at zope.org Wed Apr 28 00:59:04 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Wed Apr 28 00:59:06 2004 Subject: [ZCM] [ZC] 1301/ 9 Comment "SIGBUS on sparc64" Message-ID: Issue #1301 Update (Comment) "SIGBUS on sparc64" Status Pending, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1301 ============================================================== = Comment - Entry #9 by heidegger on Apr 28, 2004 12:59 am NetBSD i386 'current' (1.6ZI) shows this behaviour too when an 'effective user' is set in $INSTANCE/etc/zope.conf: trollboy /usr/local/zope27 # bin/runzope & [1] 1904 trollboy /usr/local/zope27 # ------ 2004-04-27T01:49:15 INFO(0) ZServer HTTP server started at Tue Apr 27 01:49:15 2004 Hostname: trollboy.host_obfuscated.org Port: 8088 Traceback (most recent call last): File "/usr/local/lib/Zope2.7/lib/python/Zope/Startup/run.py", line 49, in ? run() File "/usr/local/lib/Zope2.7/lib/python/Zope/Startup/run.py", line 19, in run start_zope(opts.configroot) File "/usr/local/lib/Zope2.7/lib/python/Zope/Startup/__init__.py", line 48, in start_zope starter.dropPrivileges() File "/usr/local/lib/Zope2.7/lib/python/Zope/Startup/__init__.py", line 203, in dropPrivileges return dropPrivileges(self.cfg) File "/usr/local/lib/Zope2.7/lib/python/Zope/Startup/__init__.py", line 347, in dropPrivileges initgroups.initgroups(effective_user, gid) AttributeError: 'module' object has no attribute 'initgroups' ________________________________________ = Comment - Entry #8 by GenericPlayer on Apr 27, 2004 12:16 am The only place it seems to be used is when starting zope as root and having it drop privileges, it uses initgroups to find out the gid to setgid to in __init__.py. Maybe add a config option to zope.conf for effective-group to go with the effective-user option? ________________________________________ = Comment - Entry #7 by tim_one on Apr 26, 2004 11:49 pm I agree -- but then this code doesn't even try to run on Windows, so what do I care . ________________________________________ = Comment - Entry #6 by mcdonc on Apr 26, 2004 11:34 pm Thanks for explaining Tim! I think it would be time better spent to remove this module than to fix the bug unless somebody can explain why it exists and what its benefit is. ________________________________________ = Comment - Entry #5 by tim_one on Apr 26, 2004 11:26 pm Good eye, Chris! I see that the C code in Zope's initgroups_initgroups() starts with gid_t gid; if (!PyArg_ParseTuple(args, "sl:initgroups", &username, &gid)) The "l" format code makes Python treat it like a C long, which is probably 8 bytes on this box. If sizeof(gid_t) < 8 on this box, then, the PyArg_ParseTuple() call will write beyond the space allocated for gid. Hilarity ensues, if so. ________________________________________ = Comment - Entry #4 by mcdonc on Apr 26, 2004 10:43 pm Aha. Perhaps uncomment anything that does "import initgroups" from the Zope source and anything that uses that module. This is an odd module that I personally never thought was necessary and should likely be removed. Zope should run fine without it. ________________________________________ = Comment - Entry #3 by GenericPlayer on Apr 26, 2004 10:32 pm If I run it under ktrace, the last things I get before it crashing is this: 10010 python2.3 CALL open(0xffffffffffff11f0,0,0) 10010 python2.3 NAMI "/usr/local/zope/lib/python/initgroups.so" 10010 python2.3 RET open 8 10010 python2.3 CALL fcntl(0x8,0x3,0) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL fcntl(0x8,0x4,0x4) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL fstat(0x8,0xffffffffffff0ce0) 10010 python2.3 RET fstat 0 10010 python2.3 CALL open(0xffffffffffff11f0,0,0) 10010 python2.3 NAMI "/usr/local/zope/lib/python/initgroups.so" 10010 python2.3 RET open 9 10010 python2.3 CALL read(0x9,0xfffffffffffefa50,0x1000) 10010 python2.3 GIO fd 9 read 4096 bytes ----snip the data it read---- 10010 python2.3 RET read 4096/0x1000 10010 python2.3 CALL mmap(0,0x602000,0,0x2,0x9,0,0) 10010 python2.3 RET mmap 1456504832/0x56d08000 10010 python2.3 CALL mmap(0x56d08000,0x2000,0x5,0x12,0x9,0,0) 10010 python2.3 RET mmap 1456504832/0x56d08000 10010 python2.3 CALL mmap(0x56e08000,0x2000,0x1,0x12,0x9,0,0) 10010 python2.3 RET mmap 1457553408/0x56e08000 10010 python2.3 CALL mmap(0x56f08000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1458601984/0x56f08000 10010 python2.3 CALL mmap(0x57008000,0x2000,0x7,0x12,0x9,0,0) 10010 python2.3 RET mmap 1459650560/0x57008000 10010 python2.3 CALL mmap(0x57208000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1461747712/0x57208000 10010 python2.3 CALL mmap(0x57308000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1462796288/0x57308000 10010 python2.3 CALL close(0x9) 10010 python2.3 RET close 0 10010 python2.3 CALL mprotect(0x56e08000,0xd18,0x3) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56d08000,0xcf4,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56e08000,0xd18,0x1) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56d08000,0xcf4,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57208f00,0x2000,0x1) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x1,0xffffffff) 10010 python2.3 RET sigprocmask 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x3,0) 10010 python2.3 RET sigprocmask -65793/0xfffefeff 10010 python2.3 CALL fstat(0x8,0xffffffffffff0fd0) 10010 python2.3 RET fstat 0 10010 python2.3 CALL fcntl(0x8,0x3,0) 10010 python2.3 RET fcntl 4 10010 python2.3 CALL fcntl(0x8,0x4,0) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL close(0x8) 10010 python2.3 RET close 0 10010 python2.3 CALL sigprocmask(0x1,0xffffffff) 10010 python2.3 RET sigprocmask 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x3,0) 10010 python2.3 RET sigprocmask -65793/0xfffefeff 10010 python2.3 PSIG SIGBUS SIG_DFL code 0 addr=0x489fe0f0 trapno=0 10010 python2.3 PSIG SIGBUS SIG_DFL code 0 addr=0x0 trapno=0 10010 python2.3 NAMI "python2.3.core" ________________________________________ = Comment - Entry #2 by mcdonc on Apr 26, 2004 5:35 pm Hmm.. maybe you could start Zope under strace to see what it's trying to do when it crashes? ________________________________________ = Request - Entry #1 by GenericPlayer on Apr 26, 2004 5:21 pm I made a zope instance, and edited the etc/zope.conf file. Setting the effective user to _zope and running bin/runzope as root causes zope to crash with sigbus. If I just su to _zope and run bin/runzope its fine. I am not entirely sure how to tell if this is a zope bug or a python bug, since the backtrace is all ?? and I can't seem to get zope compiled with -ggdb. ============================================================== From zope-coders-admin at zope.org Wed Apr 28 01:06:26 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Wed Apr 28 01:06:30 2004 Subject: [ZCM] [ZC] 1301/10 Comment "SIGBUS on sparc64" Message-ID: Issue #1301 Update (Comment) "SIGBUS on sparc64" Status Pending, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1301 ============================================================== = Comment - Entry #10 by tim_one on Apr 28, 2004 1:06 am heidegger, this issue is about a SIGBUS crash on a 64-bit machine. If you have some problem with initgroup() other than that, please open a new issue for it (mixing issues in a single report is a good way to ensure that neither of them will make progress <0.5 wink>). ________________________________________ = Comment - Entry #9 by heidegger on Apr 28, 2004 12:59 am NetBSD i386 'current' (1.6ZI) shows this behaviour too when an 'effective user' is set in $INSTANCE/etc/zope.conf: trollboy /usr/local/zope27 # bin/runzope & [1] 1904 trollboy /usr/local/zope27 # ------ 2004-04-27T01:49:15 INFO(0) ZServer HTTP server started at Tue Apr 27 01:49:15 2004 Hostname: trollboy.host_obfuscated.org Port: 8088 Traceback (most recent call last): File "/usr/local/lib/Zope2.7/lib/python/Zope/Startup/run.py", line 49, in ? run() File "/usr/local/lib/Zope2.7/lib/python/Zope/Startup/run.py", line 19, in run start_zope(opts.configroot) File "/usr/local/lib/Zope2.7/lib/python/Zope/Startup/__init__.py", line 48, in start_zope starter.dropPrivileges() File "/usr/local/lib/Zope2.7/lib/python/Zope/Startup/__init__.py", line 203, in dropPrivileges return dropPrivileges(self.cfg) File "/usr/local/lib/Zope2.7/lib/python/Zope/Startup/__init__.py", line 347, in dropPrivileges initgroups.initgroups(effective_user, gid) AttributeError: 'module' object has no attribute 'initgroups' ________________________________________ = Comment - Entry #8 by GenericPlayer on Apr 27, 2004 12:16 am The only place it seems to be used is when starting zope as root and having it drop privileges, it uses initgroups to find out the gid to setgid to in __init__.py. Maybe add a config option to zope.conf for effective-group to go with the effective-user option? ________________________________________ = Comment - Entry #7 by tim_one on Apr 26, 2004 11:49 pm I agree -- but then this code doesn't even try to run on Windows, so what do I care . ________________________________________ = Comment - Entry #6 by mcdonc on Apr 26, 2004 11:34 pm Thanks for explaining Tim! I think it would be time better spent to remove this module than to fix the bug unless somebody can explain why it exists and what its benefit is. ________________________________________ = Comment - Entry #5 by tim_one on Apr 26, 2004 11:26 pm Good eye, Chris! I see that the C code in Zope's initgroups_initgroups() starts with gid_t gid; if (!PyArg_ParseTuple(args, "sl:initgroups", &username, &gid)) The "l" format code makes Python treat it like a C long, which is probably 8 bytes on this box. If sizeof(gid_t) < 8 on this box, then, the PyArg_ParseTuple() call will write beyond the space allocated for gid. Hilarity ensues, if so. ________________________________________ = Comment - Entry #4 by mcdonc on Apr 26, 2004 10:43 pm Aha. Perhaps uncomment anything that does "import initgroups" from the Zope source and anything that uses that module. This is an odd module that I personally never thought was necessary and should likely be removed. Zope should run fine without it. ________________________________________ = Comment - Entry #3 by GenericPlayer on Apr 26, 2004 10:32 pm If I run it under ktrace, the last things I get before it crashing is this: 10010 python2.3 CALL open(0xffffffffffff11f0,0,0) 10010 python2.3 NAMI "/usr/local/zope/lib/python/initgroups.so" 10010 python2.3 RET open 8 10010 python2.3 CALL fcntl(0x8,0x3,0) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL fcntl(0x8,0x4,0x4) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL fstat(0x8,0xffffffffffff0ce0) 10010 python2.3 RET fstat 0 10010 python2.3 CALL open(0xffffffffffff11f0,0,0) 10010 python2.3 NAMI "/usr/local/zope/lib/python/initgroups.so" 10010 python2.3 RET open 9 10010 python2.3 CALL read(0x9,0xfffffffffffefa50,0x1000) 10010 python2.3 GIO fd 9 read 4096 bytes ----snip the data it read---- 10010 python2.3 RET read 4096/0x1000 10010 python2.3 CALL mmap(0,0x602000,0,0x2,0x9,0,0) 10010 python2.3 RET mmap 1456504832/0x56d08000 10010 python2.3 CALL mmap(0x56d08000,0x2000,0x5,0x12,0x9,0,0) 10010 python2.3 RET mmap 1456504832/0x56d08000 10010 python2.3 CALL mmap(0x56e08000,0x2000,0x1,0x12,0x9,0,0) 10010 python2.3 RET mmap 1457553408/0x56e08000 10010 python2.3 CALL mmap(0x56f08000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1458601984/0x56f08000 10010 python2.3 CALL mmap(0x57008000,0x2000,0x7,0x12,0x9,0,0) 10010 python2.3 RET mmap 1459650560/0x57008000 10010 python2.3 CALL mmap(0x57208000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1461747712/0x57208000 10010 python2.3 CALL mmap(0x57308000,0x2000,0x3,0x12,0x9,0,0) 10010 python2.3 RET mmap 1462796288/0x57308000 10010 python2.3 CALL close(0x9) 10010 python2.3 RET close 0 10010 python2.3 CALL mprotect(0x56e08000,0xd18,0x3) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56d08000,0xcf4,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56e08000,0xd18,0x1) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x56d08000,0xcf4,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57208f00,0x2000,0x1) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x1,0xffffffff) 10010 python2.3 RET sigprocmask 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x3,0) 10010 python2.3 RET sigprocmask -65793/0xfffefeff 10010 python2.3 CALL fstat(0x8,0xffffffffffff0fd0) 10010 python2.3 RET fstat 0 10010 python2.3 CALL fcntl(0x8,0x3,0) 10010 python2.3 RET fcntl 4 10010 python2.3 CALL fcntl(0x8,0x4,0) 10010 python2.3 RET fcntl 0 10010 python2.3 CALL close(0x8) 10010 python2.3 RET close 0 10010 python2.3 CALL sigprocmask(0x1,0xffffffff) 10010 python2.3 RET sigprocmask 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x7) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL mprotect(0x57008000,0x2000,0x5) 10010 python2.3 RET mprotect 0 10010 python2.3 CALL sigprocmask(0x3,0) 10010 python2.3 RET sigprocmask -65793/0xfffefeff 10010 python2.3 PSIG SIGBUS SIG_DFL code 0 addr=0x489fe0f0 trapno=0 10010 python2.3 PSIG SIGBUS SIG_DFL code 0 addr=0x0 trapno=0 10010 python2.3 NAMI "python2.3.core" ________________________________________ = Comment - Entry #2 by mcdonc on Apr 26, 2004 5:35 pm Hmm.. maybe you could start Zope under strace to see what it's trying to do when it crashes? ________________________________________ = Request - Entry #1 by GenericPlayer on Apr 26, 2004 5:21 pm I made a zope instance, and edited the etc/zope.conf file. Setting the effective user to _zope and running bin/runzope as root causes zope to crash with sigbus. If I just su to _zope and run bin/runzope its fine. I am not entirely sure how to tell if this is a zope bug or a python bug, since the backtrace is all ?? and I can't seem to get zope compiled with -ggdb. ============================================================== From zope-coders-admin at zope.org Wed Apr 28 05:06:36 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Wed Apr 28 05:06:44 2004 Subject: [ZCM] [ZC] 1302/ 1 Request "ZODB" Message-ID: Issue #1302 Update (Request) "ZODB" Status Pending, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1302 ============================================================== = Request - Entry #1 by syver on Apr 28, 2004 5:06 am Uploaded: "testLearningZodb.py" - http://zope.org/Collectors/Zope/1302/testLearningZodb.py/view The test demonstrates that ReadConflictErrors have very puzzling behaviour when using two connections where one connection writes and the other one reads from the same object. Reading from an unsynced connection (the database has been written to since the last sync call) triggers a ReadConflictError in only half the cases expected. Please read and run the test script for more information ============================================================== From zope-coders-admin at zope.org Thu Apr 29 03:16:16 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 03:16:42 2004 Subject: [ZCM] [ZC] 1303/ 1 Request "encoding problem in properties.dtml" Message-ID: Issue #1303 Update (Request) "encoding problem in properties.dtml" Status Pending, Zope/bug+solution medium To followup, visit: http://zope.org/Collectors/Zope/1303 ============================================================== = Request - Entry #1 by evgenick on Apr 29, 2004 3:16 am When changing properties of objects using Properties tab and using cyrillic characters, error occurs with message "UTF-8 decoding error: invalid data". That problem can be easily solved if remove all encoding-dependable features from file Ofs/dtml/properties.dtml, as actually is already done in other dtml files, which save properties. folderAdd.dtml for example. I would be glad if described change to be included in nearest release. ============================================================== From zope-coders-admin at zope.org Thu Apr 29 10:43:52 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 10:44:00 2004 Subject: [ZCM] [ZC] 181/10 Reject "Splitter module" Message-ID: Issue #181 Update (Reject) "Splitter module" Status Rejected, Catalog/bug medium To followup, visit: http://collector.zope.org/Zope/181 ============================================================== = Reject - Entry #10 by Caseman on Apr 29, 2004 10:43 am Status: Accepted => Rejected There has been no followup for some time. Please reopen if this is still a problem. ________________________________________ = Comment - Entry #9 by mcdonc on Sep 26, 2003 12:18 pm This bug still exists as of 9/25/2003 (as reported by Ralph Arenz). I still have no idea under what circumstances it happens. I asked Ralph to send me his Data.fs, but haven't heard back from him. ________________________________________ = Comment - Entry #8 by matt on Aug 14, 2002 11:45 am Probably a real issue, but seems somewhat stale by now... ________________________________________ = Comment - Entry #7 by mcdonc on Mar 19, 2002 2:28 pm I'm unsure as to what to do here. Maybe Andreas can help. ________________________________________ = Comment - Entry #6 by stevea on Mar 19, 2002 2:03 pm Ok, here's what I did to fix my Zope that was affected by this: First, I inserted the from ZopeSplitter import ZopeSplitter as Splitter into the ZopeSplitter/__init__.py. Next, I added a new vocabulary into my catalogs, and set all the text indexes to use that new vocabulary. Then I reindexed the text indexes. Then I deleted the old vocabulary. However, when I tried to rename the new vocabulary to the name "vocabulary", I found out that the old vocabulary hadn't truely been deleted. I don't know why this is, but I ended up deleting the old vocabulary from the python prompt with del catalog.vocabulary ; get_transaction().commit(). So, after deleting the old vocabulary, I renamed the new vocabulary, reset the vocabularies in my text indexes (I don't know whether this was really necessary), and reindexed the text indexes again. Then, I removed the import line from ZopeSplitter/__init__.py. Then when I restarted Zope, all was working properly. ________________________________________ = Assign - Entry #5 by stevea on Mar 19, 2002 1:29 pm Supporters added: chrism; removed: stevea putting from ZopeSplitter import ZopeSplitter as Splitter as the contents of lib/python/Products/PluginIndexes/TextIndex/Splitter/ZopeSplitter/__init__.py fixes things. I don't know whether this should be committed to trunk as a fix for legacy GlobbingLexicons, or whether this should just be a documented workaround. So, I'm assigning this issue to Chris McD. who should be able to make a sensible decision. ________________________________________ = Comment - Entry #4 by stevea on Mar 19, 2002 1:19 pm Ok, the problem is that some time in the past, a lexicon would have held a reference to a ZopeSplitter.Splitter. If I interactively add a Splitter to the ZopeSplitter module, I can load the persistent object. Here's the serial of the faulty GlobbingLexicon instance: '((U0Products.PluginIndexes.TextIndex.GlobbingLexiconq\x01U\x0fGlobbingLexiconq\x02tq\x03Nt.}q\x04(U\x08_lexiconq\x05(U\x08\x00\x00\x00\x00\x00\x02Z\x9dq\x06(U\x0eBTrees.OIBTreeq\x07U\x07OIBTreeq\x08ttQU\x08_digramsq\t(U\x08\x00\x00\x00\x00\x00\x02Z\x9eq\n(U\x0eBTrees.OOBTreeq\x0bU\x07OOBTreeq\x0cttQU\x0b_inverseLexq\r(U\x08\x00\x00\x00\x00\x00\x02Z\x9fq\x0e(U\x0eBTrees.IOBTreeq\x0fU\x07IOBTreeq\x10ttQU\x0cSplitterFuncq\x11cProducts.PluginIndexes.TextIndex.Splitter.ZopeSplitter\nSplitter\nq\x12U\x0buseSplitterq\x13U\x0cZopeSplitterq\x14u.' Here's the serial of a new one: '((U0Products.PluginIndexes.TextIndex.GlobbingLexiconq\x01U\x0fGlobbingLexiconq\x02tq\x03Nt.}q\x04(U\x08_lexiconq\x05(U\x08\x00\x00\x00\x00\x00\x03\x0c0q\x06(U\x0eBTrees.OIBTreeq\x07U\x07OIBTreeq\x08ttQU\x0b_inverseLexq\t(U\x08\x00\x00\x00\x00\x00\x03\x0c1q\n(U\x0fBTrees._IOBTreeq\x0bU\x07IOBTreeq\x0cttQU\x0esplitterParamsq\r(cZPublisher.HTTPRequest\nrecord\nq\x0eoq\x0f}q\x10(U\x14splitterIndexNumbersq\x11K\x01U\x13splitterSingleCharsq\x12K\x00U\x13splitterCasefoldingq\x13K\x01ubU\x0cSplitterFuncq\x14cProducts.PluginIndexes.TextIndex.Splitter.ZopeSplitter.ZopeSplitter\nZopeSplitter\nq\x15U\x08_digramsq\x16(U\x08\x00\x00\x00\x00\x00\x03\x0c2q\x17(U\x0eBTrees.OOBTreeq\x18U\x07OOBTreeq\x19ttQU\x0buseSplitterq\x1aU\x0cZopeSplitterq\x1bu.' I think the most obvious fix is to put a new vocabulary into my catalog, and then update all my textindexes to use this new vocabulary. As a workaround, aliasing ZopeSplitter as Splitter in ZopeSplitter/__init__.py should sort this out. I'll try that, and if it works, submit that as the fix. ________________________________________ = Accept - Entry #3 by stevea on Mar 19, 2002 12:55 pm Status: Rejected => Accepted Supporters added: stevea I have just come across this error on one of my servers. I get this from the zope stupid log: 2002-03-19T17:35:24 ERROR(200) ZODB Couldn't load state for '\x00\x00\x00\x00\x00\x02Z\x9c' Traceback (innermost last): File lib/python/ZODB/Connection.py, line 472, in setstate AttributeError: 'module' object has no attribute 'Splitter' And this from, after loading the object in question from app()._p_jar, trying to access its attributes: Traceback (most recent call last): File "", line 1, in ? File "lib/python/ZODB/Connection.py", line 472, in setstate state = unpickler.load() AttributeError: 'module' object has no attribute 'Splitter' The object is a GlobbingLexicon instance. I'm not sure what's going on here, but I'm looking into it. ________________________________________ = Reject - Entry #2 by chrisw on Jan 28, 2002 4:31 am Status: Pending => Rejected The "no module named splitter" suggests Vincente hasn't managed to fully compile Zope properly. Given that he submitted Anonymously here, he won't get followups so I'm going to reject this and try and hunt him down on the list... cheers, Chris ________________________________________ = Request - Entry #1 by Anonymous User on Jan 27, 2002 7:02 pm The problems I have had is the "Unpickeable error", along with the "object not callable" and "no module named splitter". I have been keeping the searching through the list and as Dieter Mauer pointed, I have come up with the fact that the s'thing regarding the splitter module was changed since Zope 2.4.0. In either Zope 2.4.3 and newly stabled 2.5.0 errors importing previous version developed products (squishdot sites (1.3.0) or ZUBB discussions (0.7.0/1) arise (mainly no module named splitter). I think that the imposibility to import to the upgraded version affects any product that uses the Vocabulary.(Zcatalog) I have tried the solution provided in a mial dated 27/09/01 (Title:Importing errors), that suggested to write a script with the following code: from ZopeSplitter import * Splitter = ZopeSplitter Unfortunately this doesn't work. In a following mail with the same Title , it says that the __init__.py in ZopeSplitter directory should read: from ZopeSplitter import ZopeSplitter as Splitter I dont know if that must be the right code. I've checked the __init__.py in my system (2.5.0) and it misses the "as Splitter" part. Tried to fix it including the as Splitter thing, but didn't work too. I don't know if that is the right code, but it is not in the file. Is there a possibility that s'thing is missing in the Windows version of Zope 2.4.3 and 2.5.0 that forbid the compatibility of products developed in version 2.4.0 with the later versions ??? I don't know if that is a bug or not, but I am not able to import products developed in older versions, and that does not seem coherent at all. ============================================================== From zope-coders-admin at zope.org Thu Apr 29 11:08:25 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 11:08:28 2004 Subject: [ZCM] [ZC] 321/ 3 Resolve "Page Templates: handling ick from MS applications" Message-ID: Issue #321 Update (Resolve) "Page Templates: handling ick from MS applications" Status Resolved, Zope/bug+solution medium To followup, visit: http://collector.zope.org/Zope/321 ============================================================== = Resolve - Entry #3 by Caseman on Apr 29, 2004 11:08 am Status: Pending => Resolved This is really two issues in one. I'm rejected the fix for MSOffice funk. Sorry I don't think we are going to support grossly invalid markup. I think you should run it through tidy first or something. The second bug-fix appears to already be applied. ________________________________________ = Comment - Entry #2 by chrisdeckard on Mar 28, 2002 6:01 pm Uploaded: "PUT_factory.py" - http://collector.zope.org/Zope/321/PUT_factory.py/view Forgot to include my PUT_factory. -Chris ________________________________________ = Request - Entry #1 by chrisdeckard on Mar 28, 2002 5:54 pm Uploaded: "TAL_patches.diff" - http://collector.zope.org/Zope/321/TAL_patches.diff/view We have set up a PUT_factory to create Page Templates out of files PUT through WebDAV with a content type of 'text/html'. This works all fine and dandy until we run across bad HTML from MS Office XP applications (specifically PowerPoint XP). The problems are in TAL/HTMLParser.py. An example of badness: This causes the Page Template renderer to break. I have a sample patch wich seems to work. Some of the new stuff should probably be renamed as it slams MS. :-) Another error occurs due to a bug in TAL/markupbase.py. The call to error() when we have a bad declaration name to scan. Two parameters were being passed to self.error and it only takes one (plus self). Attached in a file are two patches which seem to fix the problems. I'll also include the PUT_factory that I'm using in case you want to test with it. If you need a sample PowerPoint XP file, let me know and I can put one up for you. -Chris ============================================================== From zope-coders-admin at zope.org Thu Apr 29 11:17:34 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 11:17:49 2004 Subject: [ZCM] [ZC] 543/ 4 Resolve "Zope 2.5.1 crashes on non-standard port when using FTP" Message-ID: Issue #543 Update (Resolve) "Zope 2.5.1 crashes on non-standard port when using FTP" Status Resolved, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/543 ============================================================== = Resolve - Entry #4 by tseaver on Apr 29, 2004 11:17 am Status: Pending => Resolved irc://irc.zope.org/#zope-dev: 543 looks like a case of unreproducible / no follow-up... shall we close it? yup i don't have authority to change status on the collector... who here does? casey? ________________________________________ = Comment - Entry #3 by RoelV on Sep 12, 2002 10:01 am Are U running Zope in debugmode? If so remove the '-D' switch from the start file. Zope crashes when its detached from output console. ________________________________________ = Comment - Entry #2 by ajung on Sep 6, 2002 12:33 pm Any tracebacks? Are you running Zope with Python 2.1.3? -aj ________________________________________ = Request - Entry #1 by Anonymous User on Aug 27, 2002 10:49 pm Running Zope on port 9380 and 9321 (ftp). After the Zope process has been running for some time (1 day) connections via FTP cause Zope to crash. Over short periods everything functions normally. ============================================================== From zope-coders-admin at zope.org Thu Apr 29 11:23:56 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 11:23:59 2004 Subject: [ZCM] [ZC] 666/ 2 Reject "zope restarts" Message-ID: Issue #666 Update (Reject) "zope restarts" Status Rejected, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/666 ============================================================== = Reject - Entry #2 by tseaver on Apr 29, 2004 11:23 am Status: Pending => Rejected No followup, ancient releases; please resubmit if this is still a problem. ________________________________________ = Request - Entry #1 by Anonymous User on Nov 11, 2002 9:24 am It seems like the restart problem still exists. our zope restarting at irregular intervals. There are no indications of cause in log files. we have -M enabled for start script. But It does't log much usefull info , other than the restarts. we are using LoginManager, LocalFS products and we do have couple of python scripts. we are also using DCOracl 1.0. Where does the zope log errors? Is there any good options for more log info.? ============================================================== From zope-coders-admin at zope.org Thu Apr 29 11:32:29 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 11:32:31 2004 Subject: [ZCM] [ZC] 1227/ 2 Comment "Zope 2.7.0 still lists as "unreleased"" Message-ID: Issue #1227 Update (Comment) "Zope 2.7.0 still lists as "unreleased"" Status Pending, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/1227 ============================================================== = Comment - Entry #2 by mcdonc on Apr 29, 2004 11:32 am This is actually a packaging bug. When a major release is made, the version info should be changed, and the release should be created via the makefile target "make sdist". Apparently Zope 2.7.0 was not created this way, thus the issue. I am resolving this as it's spilled milk at the moment. ________________________________________ = Request - Entry #1 by robertshaw on Feb 12, 2004 1:53 am The latest 2.7.0 stable release does not create the appropriate "version.txt" file when building from source. So the "Control Panel" page always lists the Zope installation as "unreleased". In addition, if you look at the "inst/versions.py" file or the "makefile" created after configuration, it still lists the version as 2.7.0b3: MAJOR_VERSION=2.7 MINOR_VERSION=0 RELEASE_TAG=b3 ============================================================== From zope-coders-admin at zope.org Thu Apr 29 11:32:46 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 11:32:49 2004 Subject: [ZCM] [ZC] 1227/ 3 Resolve "Zope 2.7.0 still lists as "unreleased"" Message-ID: Issue #1227 Update (Resolve) "Zope 2.7.0 still lists as "unreleased"" Status Resolved, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/1227 ============================================================== = Resolve - Entry #3 by mcdonc on Apr 29, 2004 11:32 am Status: Pending => Resolved ________________________________________ = Comment - Entry #2 by mcdonc on Apr 29, 2004 11:32 am This is actually a packaging bug. When a major release is made, the version info should be changed, and the release should be created via the makefile target "make sdist". Apparently Zope 2.7.0 was not created this way, thus the issue. I am resolving this as it's spilled milk at the moment. ________________________________________ = Request - Entry #1 by robertshaw on Feb 12, 2004 1:53 am The latest 2.7.0 stable release does not create the appropriate "version.txt" file when building from source. So the "Control Panel" page always lists the Zope installation as "unreleased". In addition, if you look at the "inst/versions.py" file or the "makefile" created after configuration, it still lists the version as 2.7.0b3: MAJOR_VERSION=2.7 MINOR_VERSION=0 RELEASE_TAG=b3 ============================================================== From zope-coders-admin at zope.org Thu Apr 29 11:32:52 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 11:33:01 2004 Subject: [ZCM] [ZC] 544/ 4 Resolve "Badly formed 304 response in Image.py" Message-ID: Issue #544 Update (Resolve) "Badly formed 304 response in Image.py" Status Resolved, Zope/bug+solution critical To followup, visit: http://collector.zope.org/Zope/544 ============================================================== = Resolve - Entry #4 by Caseman on Apr 29, 2004 11:32 am Status: Pending => Resolved Fixed on HEAD and 2.7 branch ________________________________________ = Comment - Entry #3 by leper on Nov 20, 2002 4:21 am fixed in Apache 1.3.27 see http://cvs.apache.org/viewcvs.cgi/apache-1.3/src/modules/proxy/proxy_cache.c note revisions 1.88 and 1.89 ________________________________________ = Comment - Entry #2 by htrd on Aug 28, 2002 5:07 am My reading of RFC 2616 confirms this interpretation that a 304 response MUST NOT contain a Content-Length header. It appears this brokenness in Image.py is intentional, and it has been broken for a while: ---------------------------- revision 1.127 date: 2001/03/01 02:32:15; author: rbmead; state: Exp; lines: +6 -1 Fix for broken images in IE when using apache caching. Setting Content-Length in 304 response to stop apache from returning Content-Length of 0 to client. ---------------------------- Can any Apache gurus comment if this is still needed? ________________________________________ = Request - Entry #1 by Anonymous User on Aug 28, 2002 4:31 am The 'not modified' response handling in Image.py sets the Content-Length header in the response to the size of the image but (correctly) returns no data. It should provide no Content-Length header at all or set it to 0. Strictly speaking, most HTTP clients should correctly determine the HTTP message body length for a 304 response as 0, without examining the Content-Length. However, at least one implementation (the popular WebSense content gateway used in conjunction with Firewall-1) hangs on these responses (presumably waiting for the non-existent data) making all Zope-based websites (with images) unbrowsable. There is no workaround other than patching the server to comment out the appropriate line in Image.py so I have assigned it critical. ============================================================== From zope-coders-admin at zope.org Thu Apr 29 11:36:08 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 11:36:12 2004 Subject: [ZCM] [ZC] 1304/ 1 Request "zopectl doesn't allow specification of zdrun effective user" Message-ID: Issue #1304 Update (Request) "zopectl doesn't allow specification of zdrun effective user" Status Pending, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/1304 ============================================================== = Request - Entry #1 by mcdonc on Apr 29, 2004 11:36 am zopectl is based on zdctl, which indeed allows someone to set the effective user via the -u command line option, however zopectl ignores this option. Being able to specify the zdrun effective user is important for distribution packages, where it is considered bad form and dangerous to run zdrun as root. ============================================================== From zope-coders-admin at zope.org Thu Apr 29 11:48:49 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 11:48:52 2004 Subject: [ZCM] [ZC] 1148/ 3 Resolve "Problem with signals" Message-ID: Issue #1148 Update (Resolve) "Problem with signals" Status Resolved, ZServer/bug+solution critical To followup, visit: http://collector.zope.org/Zope/1148 ============================================================== = Resolve - Entry #3 by mcdonc on Apr 29, 2004 11:48 am Status: Accepted => Resolved Zope 2.7, the current stable distro, depends on Python 2.3.3, which already contains this fix. On a "bugday" it was decided that we will not backport this hotfix to Zope 2.6 as it isn't security-related. errr.. if no one wants to backport this hotfix to 2.6+python2.1, I think http://collector.zope.org/Zope/1148/ should be closed. mcdonc: i don't think non-security hotfixes to 2.6 are warrented ... i agree, close 1148 i'll put a homina homina comment in there and close it. ________________________________________ = Accept - Entry #2 by evan on Dec 11, 2003 1:47 pm Status: Pending => Accepted Supporters added: evan Uploaded: "hf1148.py" - http://collector.zope.org/Zope/1148/hf1148.py/view This is fixed in Python 2.2.3 and 2.3.x. I've attached a hotfix candidate for Zope 2.6. ________________________________________ = Request - Entry #1 by bcroq on Dec 11, 2003 5:02 am When Zope receives a signal, it generally has to be restarted. This is a bug in poll() in "asyncore.py" that raises any problem with select() if this problem is not an EINTR error. All I did to fix this is to return from the function if an EINTR error occures... Index: asyncore.py =================================================================== RCS file: /cvs-repository/Zope/ZServer/medusa/Attic/asyncore.py,v retrieving revision 1.19 diff -u -r1.19 asyncore.py --- asyncore.py 20 Jun 2002 13:40:02 -0000 1.19 +++ asyncore.py 11 Dec 2003 09:56:41 -0000 @@ -80,6 +80,7 @@ except select.error, err: if err[0] != EINTR: raise + return if DEBUG: print r,w,e ============================================================== From zope-coders-admin at zope.org Thu Apr 29 12:02:41 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 12:02:51 2004 Subject: [ZCM] [ZC] 495/ 3 Resolve "Simple virtual host handling" Message-ID: Issue #495 Update (Resolve) "Simple virtual host handling" Status Resolved, Zope/feature+solution medium To followup, visit: http://collector.zope.org/Zope/495 ============================================================== = Resolve - Entry #3 by mcdonc on Apr 29, 2004 12:02 pm Status: Pending => Resolved Closing due to geriatrics; it was pronounced that this functionality was not needed on bugday 4/29/2004: close 495? feature request against 2.5.1. mcdonc: i don't see the point of 495... what does it do that vhm doesn't? slinkP: no clue. mcdonc: it's ancient... close it staleness grounds alone :-) ________________________________________ = Comment - Entry #2 by regebro on Jan 17, 2003 9:05 am I agree (but others do not) that the virtual host mappings should be in the Control Panel, but that's a minor issue. :) However, I'm not sure in what way your patch simplifies virtual hosting. It looks very similar to the way Virtual Host Monster handles it today. ________________________________________ = Request - Entry #1 by Anonymous User on Jul 30, 2002 7:31 am HTTP implementation in Zope allows virtual host configuration and handling to be simpler than that from VirtalHostMonster. The attached patch replaces the functionality offered by VirtalHostMonster for Zope running behind Apache. It handles cases where logical path is shorter than physical path and vice versa. I've been using and testing it for a few months already. I think that if this patch gets into Zope, "Mappings" functionality from VirtualHostMonster should be integrated into Control_Panel. Below is a sample vhost configuration from httpd.conf: NameVirtualHost 192.168.0.1:80 FastCgiExternalServer /var/www/fcgi-bin/zope -socket /usr/local/zope/var/zope.sock -pass-header Authorization -idle-timeout 60 # This directory must exist and should be empty SetHandler fastcgi-script ServerName www.foo-site.com DocumentRoot /var/www/fcgi-bin/zope/foo Alias /images /var/www/images # alias for direct access to Zope root folder Alias /_ /var/www/fcgi-bin/zope #AliasMatch ^/_(/.*)?$ /var/www/fcgi-bin/zope$1 Options MultiViews AllowOverride Indexes Order allow,deny Allow from all Unfortunately I'm not authorized to create an attachment as a guest user, so the patch goes below: --- BaseRequest.py-orig Wed Mar 27 22:51:05 2002 +++ BaseRequest.py Tue Jul 30 11:37:37 2002 @@ -239,6 +239,19 @@ request['TraversalRequestNameStack'] = request.path = path + # Handle virtual hosting when behind an Apache + env = request.environ + virtual_root_pos = None + if env.has_key('REQUEST_URI'): # Apache sets REQUEST_URI + if env['SCRIPT_NAME']: # logical path is longer than physical path + request.setVirtualRoot(env['SCRIPT_NAME']) + else: # logical path is shorter or equal to physical path + request_uri = env['REQUEST_URI'] + l = request_uri.find('?') + if l<0: l = len(request_uri) + virtual_root_pos = env['PATH_INFO'].count('/', 0, -l) or None + # when virtual_root_pos==0 (i.e. logical==physical), use None (no virtual host) + entry_name = '' try: # We build parents in the wrong order, so we @@ -247,6 +260,14 @@ bpth = getattr(object, '__before_publishing_traverse__', None) if bpth is not None: bpth(object, self) + + if virtual_root_pos is not None \ + and not request.other.has_key('VirtualRootPhysicalPath'): # avoid conflict with other virtual host manager + if virtual_root_pos==0: + request.setVirtualRoot([]) + virtual_root_pos = None + else: + virtual_root_pos-= 1 path = request.path = request['TraversalRequestNameStack'] # Check for method: ============================================================== From zope-coders-admin at zope.org Thu Apr 29 12:09:28 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 12:09:32 2004 Subject: [ZCM] [ZC] 789/ 3 Comment "Zope's transaction behaviour flawed" Message-ID: Issue #789 Update (Comment) "Zope's transaction behaviour flawed" Status Pending, Zope/bug critical To followup, visit: http://collector.zope.org/Zope/789 ============================================================== = Comment - Entry #3 by mcdonc on Apr 29, 2004 12:09 pm Michael Dunstan also compiled some notes and fixes for this... see http://mail.zope.org/pipermail/zope-dev/2004-April/022727.html ________________________________________ = Comment - Entry #2 by stevea on Feb 2, 2003 12:14 pm I'm currently implementing similar behaviour for zope 3. However, introducing this behaviour in zope2 could break applications that themselves clear cached or computed data on transaction boundaries. This data would not be available for the error page. I think ZPatterns applications sometimes rely on the current behaviour, so this change would break certain zpatterns applications. ________________________________________ = Request - Entry #1 by d.maurer on Feb 2, 2003 10:39 am Zope's current transaction behaviour is essentially: ## request starts transaction.begin() try: object= REQUEST.traverse(...) mapply(object,...) transaction.commit() except: transaction.abort() handle_error() ## request ends This is flawed as error handling is done outside of a transaction. Potential changes during the error handling spill over uncontrolled into another request and are there either committed or aborted as part of this request. Andrew Athan () has had lots of serious inconsistencies in Zope's session data. After extensive analysis, he found out that reading the session data during error handling led to these error conditions (reading session data causes writes to the administrative data). I suggest, we let Zope perform error handling in its own transaction after the original transaction had been aborted. When error handling succeeds, its transaction is committed, otherwise aborted. The new behaviour would look something like this: ## request starts transaction.begin() try: object= REQUEST.traverse(...) mapply(object,...) transaction.commit() except: transaction.abort() transaction.begin() transaction.note('%s (application error handling)' % '/'.join(object.getPhysicalPath) ) try: handle_error() transaction.commit() except: default_handle_error() # Zope's default error handling # it should not have side effects # and is executed inside the # error handling transaction transaction.abort() ## request ends --- See discussion in "zope-dev". ============================================================== From zope-coders-admin at zope.org Thu Apr 29 12:52:21 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 12:52:24 2004 Subject: [ZCM] [ZC] 511/ 3 Reject "anonymous (& other ?) users can not view/restore historical revisions" Message-ID: Issue #511 Update (Reject) "anonymous (& other ?) users can not view/restore historical revisions" Status Rejected, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/511 ============================================================== = Reject - Entry #3 by Caseman on Apr 29, 2004 12:52 pm Status: Pending => Rejected Unable to reproduce this on 2.7. Tested on a dtml method, python script and page template. Granting all permissions to anonymous does allow access to the history. ________________________________________ = Comment - Entry #2 by simon on Aug 17, 2002 4:11 pm See also http://collector.zope.org/Zope/526 . ________________________________________ = Request - Entry #1 by Anonymous User on Aug 10, 2002 3:31 pm Even with all permissions checked, an anonymous user gets prompted for authentication when trying to view one of the historical revisions linked off manage_change_history_page. The same thing happens when trying to Copy to present - the copy succeeds but then redirects to the historical revision. The Historian in OFS/History.py seems to be inaccessible independent of permissions. ============================================================== From zope-coders-admin at zope.org Thu Apr 29 12:59:28 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 12:59:30 2004 Subject: [ZCM] [ZC] 349/ 3 Reject "DocumentClass:doc_numbered() bug" Message-ID: Issue #349 Update (Reject) "DocumentClass:doc_numbered() bug" Status Rejected, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/349 ============================================================== = Reject - Entry #3 by Caseman on Apr 29, 2004 12:59 pm Status: Pending => Rejected Closing due to no follow-up ________________________________________ = Comment - Entry #2 by ajung on Apr 18, 2002 9:21 am I don't understand what you excatly mean. Please give an example. -aj ________________________________________ = Request - Entry #1 by almt on Apr 15, 2002 9:27 pm Current code treats numbers in it's own paragraph as a NumberedText. This is especially problematic when one is trying to insert numbers in a StructuredTable. There is probably a better way, but below is a simple patch that seems to solve the problem. *** DocumentClass.py Mon Apr 15 18:04:59 2002 --- DocumentClass.py~ Sun Feb 10 11:32:44 2002 *************** *** 726,728 **** ! expr = re.compile(r'(\s*[%s]\.)|(\s*[0-9]+\.)|(\s*[0-9]+\s+)' % letters).match, ! check = re.compile(r'^\s*([0-9]+)(\.[0-9]+)?\s*$').match): ! --- 726,727 ---- ! expr = re.compile(r'(\s*[%s]\.)|(\s*[0-9]+\.)|(\s*[0-9]+\s+)' % letters).match): ! *************** *** 739,742 **** - - if check(top): - return None - --- 737 ---- ============================================================== From zope-coders-admin at zope.org Thu Apr 29 13:02:58 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 13:03:03 2004 Subject: [ZCM] [ZC] 340/ 2 Reject "Interface-constrained object managers too weak" Message-ID: Issue #340 Update (Reject) "Interface-constrained object managers too weak" Status Rejected, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/340 ============================================================== = Reject - Entry #2 by Caseman on Apr 29, 2004 1:02 pm Status: Pending => Rejected IMO this is an advisory feature. It would probably break bw compatibility to harden this check. On the bright side, Zope 3 provides a much more robust checking mechanism. ________________________________________ = Request - Entry #1 by htrd on Apr 10, 2002 9:01 am ObjectManagers can be configured to require that all sub-objects implement a specified Interface. This interface check is implemented in all_meta_types and correctly restricts types for the following operations: * Object paste, following cut/copy * Import * The contents of the "Add" control However, it does not restrict the calling of object constructors. This means it is possible to create an object that does not implement the required Interface by hacking URLs. This will be difficult to fix cleanly because constuctors call _setObject directly. _setObject already looks up the new object's meta-type.... Should _setObject also call self.all_meta_types(), and check that the new object's meta-type is in that list? Or, do we view the interface constraint as a UI tweak, not a strong constraint, and leave this behavior as is? ============================================================== From zope-coders-admin at zope.org Thu Apr 29 13:06:24 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 13:06:28 2004 Subject: [ZCM] [ZC] 439/ 2 Reject "ZSQLMethods should use RAMCacheManager" Message-ID: Issue #439 Update (Reject) "ZSQLMethods should use RAMCacheManager" Status Rejected, Zope/feature medium To followup, visit: http://collector.zope.org/Zope/439 ============================================================== = Reject - Entry #2 by Caseman on Apr 29, 2004 1:06 pm Status: Pending => Rejected I'm closing this because no one has found it compelling enough to implement in almost 2 years. If you want this you probably need to implement it yourself. ________________________________________ = Request - Entry #1 by djay on Jun 20, 2002 2:52 am Currently ZSQLMethods do their own caching. Instead the results returned should be compatible with a RAMCacheManager and therefore have much more control over the cache settings. For instance the result set could be manipulated and then cached via a pyhonscript. Since the result set is unpiclible this is impossible ============================================================== From zope-coders-admin at zope.org Thu Apr 29 13:08:27 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 13:08:31 2004 Subject: [ZCM] [ZC] 444/ 2 Reject "Permission mapping partially ineffective" Message-ID: Issue #444 Update (Reject) "Permission mapping partially ineffective" Status Rejected, Zope/bug critical To followup, visit: http://collector.zope.org/Zope/444 ============================================================== = Reject - Entry #2 by Caseman on Apr 29, 2004 1:08 pm Status: Pending => Rejected ZClasses are not being actively maintained, so unless you provide a patch, it is not likely to be fixed. ________________________________________ = Request - Entry #1 by d.maurer on Jun 26, 2002 4:59 pm Douwe (mailto:douwe@oberon.nl) reported: ... permission mapping has no effect for "manage_addProperty" inherited from DTMLDocument ... I analysed the problem: Permission mappings defined in the ZClass' "Define Permissions" tab itself (rather than that for a specific method/propertySheet) are ineffective. As a consequence, the permissions of inherited methods cannot be remapped. Permission mappings defined for specific methods or property sheets are effective. Accesses to such a method or property sheet are wrapped into an additional PM (Permission Mapper) acquisition wrapper that takes care of the permission mapping. Such a wrapper is missing for ZInstance accesses. This is a potential security breach, as anticipated protections expressed via a permission mapping is not effective. Workaround: If the permission mapping has the aim to restrict a permission, there is no work around. If the permission should be extended, a wrapper method can be defined that calls the original method. Its "View" permission is mapped to the desired target permission. It gets a proxy role such that it is able to call the original method. See mailing list archives of zope@zope.org for details: [Zope] ZClass and Permissions ============================================================== From zope-coders-admin at zope.org Thu Apr 29 13:16:05 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 13:16:08 2004 Subject: [ZCM] [ZC] 28/ 8 Resolve "RestrictedPython with list comprehensions fails on Python 2.2" Message-ID: Issue #28 Update (Resolve) "RestrictedPython with list comprehensions fails on Python 2.2" Status Resolved, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/28 ============================================================== = Resolve - Entry #8 by Caseman on Apr 29, 2004 1:16 pm Status: Deferred => Resolved The list comp. example now works as of 2.7 ________________________________________ = Comment - Entry #7 by leper on May 15, 2003 2:44 am What is the status of this bug now? It appears RestrictedPython in Zope has been brought in line with Python 2.2; I'm using 2.2.2 right now and the test case of list comprehensions works great. It would appear this bug can be closed. ________________________________________ = Edit - Entry #6 by stevea on Nov 18, 2001 6:44 am Changes: submitter email, edited transcript ________________________________________ = Comment - Entry #5 by stevea on Nov 18, 2001 6:42 am Shane wrote: > Status: Accepted => Deferred > > This is too complex for now. Bringing RestrictedPython (and > therefore Zope) up to Python 2.2 is going to take a little > effort since the "compiler" package was added to the standard > library, but its interface has changed significantly. Ok. However, the Zope 2.5 CHANGES.txt this is currently in the Trunk reads: - Python compiler in RestrictedPython brought in sync with main distribution. Made to be compatible with Python 2.2. I assume that the note in CHANGES.txt is wrong. I guess it should be changed to reflect this bug's deferred status. ________________________________________ = Edit - Entry #4 by klm on Nov 12, 2001 10:49 am Changes: edited transcript, new comment (A bit more testing - i missed one piece in the last fix...) ________________________________________ = Edit - Entry #3 by klm on Nov 12, 2001 10:31 am Changes: submitter email, edited transcript, new comment (Please ignore this intrusion - the collector botched steve's initial entry, and i'm testing the fix, putting the request back in the transcript. I'm adding no new information or changing the disposition of the issue, etc...) ________________________________________ = Defer - Entry #2 by ShaneH on Nov 12, 2001 10:10 am Status: Accepted => Deferred This is too complex for now. Bringing RestrictedPython (and therefore Zope) up to Python 2.2 is going to take a little effort since the "compiler" package was added to the standard library, but its interface has changed significantly. ________________________________________ = Request - Entry #1 by stevea on Nov 11, 2001 11:13 am I noticed this trying to get the CMF Collector working with Python 2.2. Restricted Python barfs when you try to give it a list comprehension. Here's an example page template: "http://xml.zope.org/namespaces/tal">"http://xml.zope.org/namespaces/tal"> Hello SPAN The error given in the page template is: Compilation failed exceptions.KeyError: 314 This is really a problem with RestrictedPython. Try this: >>> from RestrictedPython.Compilers import compile_restricted_eval >>> compile_restricted_eval('[1,2,3]') (", line 1>, (), [], {}) >>> compile_restricted_eval('range(1,4)') (", line 1>, (), [], {'range': 1}) >>> compile_restricted_eval('[i for i in [1,2,3]]') After the last statement, you'll get a HUGE traceback. However, the last statement works just fine with Python 2.1. I'm assigning this to Shane in the hopes that he will assign it to the appropriate person. ============================================================== From zope-coders-admin at zope.org Thu Apr 29 13:36:52 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 13:36:56 2004 Subject: [ZCM] [ZC] 546/ 3 Reject "Form variable CONTENT_TYPE lost" Message-ID: Issue #546 Update (Reject) "Form variable CONTENT_TYPE lost" Status Rejected, Zope/bug low To followup, visit: http://collector.zope.org/Zope/546 ============================================================== = Reject - Entry #3 by Caseman on Apr 29, 2004 1:36 pm Status: Pending => Rejected It is the current policy of the request processing code in Zope to ignore form variables that match CGI names. This will not be changed for Zope 2. ________________________________________ = Comment - Entry #2 by leper on Feb 14, 2003 3:20 am This is ZPublisher's doing, it does the same thing for every key mentioned in the isCGI_NAME function (see the top of lib/python/ZPublisher/HTTPRequest.py). I'm guessing it may be done in a misguided attempt to protect people from pulling a variable out of the form namespace which they thought would be coming from the environment. Its been like this since version 1.1 of HTTPRequest.py though, I sort of doubt it will ever change, despite that it is clearly silly. ________________________________________ = Request - Entry #1 by peterb on Aug 28, 2002 9:38 am The following DTML document illustrates the problem:

&dtml.missing-CONTENT_TYPE; &dtml.missing-ref;
CONTENT_TYPE:

ref:

The form vars of the request object doesn't include the value of the submitted CONTENT_TYPE field, it is lost somewhere. OTOH the REQUEST object itself contains the content type of the submitted form which may be accessed using REQUEST.CONTENT_TYPE but this is not the value of the form variable. Running the above will show how any entered 'ref' is displayed above and below (after submission) whereas the 'CONTENT_TYPE' form variable never is. ============================================================== From zope-coders-admin at zope.org Thu Apr 29 13:41:15 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 13:41:17 2004 Subject: [ZCM] [ZC] 545/ 4 Resolve "Object id 'content_type' crashes folder view" Message-ID: Issue #545 Update (Resolve) "Object id 'content_type' crashes folder view" Status Resolved, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/545 ============================================================== = Resolve - Entry #4 by Caseman on Apr 29, 2004 1:41 pm Status: Accepted => Resolved Works for me on Zope 2.7 ________________________________________ = Comment - Entry #3 by leper on Apr 27, 2004 5:17 pm I'm unable to reproduce this at all. ________________________________________ = Accept - Entry #2 by mjablonski on Apr 26, 2004 3:36 am Status: Pending => Accepted Supporters added: mjablonski Jamie Heilman wrote on zope-dev: "Accept, they are completely fixable.  I've probably already fixed those bugs in my fork, I'll hunt around and see if I can find the relevant files and post followups to the bugs." Please note: This one is related to http://zope.org/Collectors/Zope/1217 ________________________________________ = Request - Entry #1 by peterb on Aug 28, 2002 9:28 am Create folder A, in A create an object with id 'content_type' and then try to list all items in A's parent. What you get is: Error Type: AttributeError Error Value: startswith File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 114, in publish File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: Peter) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 98, in publish File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: manage_contents) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: manage_contents) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 252, in __call__ (Object: manage_contents) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in _bindAndExec (Object: manage_contents) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/App/special_dtml.py, line 172, in _exec (Object: manage_contents) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_In.py, line 695, in renderwob (Object: objectItems) File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_Let.py, line 76, in render (Object: explicit="_.getitem('sequence-item').aq_explicit") File /opt/Appload/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval (Object: _.hasattr(explicit, 'manage_FTPget') or _.hasattr(explicit, 'read') or _.getattr(explicit, 'content_type', '').startswith('text/')) (Info: explicit) File , line 0, in ? Probably because get_attr returns the 'content_type' object and not the content type attribute ============================================================== From zope-coders-admin at zope.org Thu Apr 29 14:05:55 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 14:05:58 2004 Subject: [ZCM] [ZC] 1259/ 3 Unrestrict ""make uninstall" can delete system directories" Message-ID: Issue #1259 Update (Unrestrict) ""make uninstall" can delete system directories" ** Security Related ** (Public) Status Pending, Zope/bug critical To followup, visit: http://zope.org/Collectors/Zope/1259 ============================================================== = Unrestrict_pending - Entry #3 by tseaver on Apr 29, 2004 2:05 pm Not a security hole. ________________________________________ = Comment - Entry #2 by ajung on Mar 23, 2004 6:56 am The logical consequences are either to remove the uninstall target or to disallow the installation of Zope into directories that already contain files. ________________________________________ = Request - Entry #1 by Anonymous User on Mar 16, 2004 6:29 am The following commonly used sequence is able to destroy your system quite fast: # ./configure --prefix=/usr # make # make uninstall After "make uninstall" the makefile script starts deleting /usr, since it simply executes uninstall: ${RMRF} "${PREFIX}" which results in "rm -rf /usr". ============================================================== From zope-coders-admin at zope.org Thu Apr 29 15:03:23 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 15:03:26 2004 Subject: [ZCM] [ZC] 1300/ 2 Resolve "TreeTag no longer preserves state" Message-ID: Issue #1300 Update (Resolve) "TreeTag no longer preserves state" Status Resolved, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/1300 ============================================================== = Resolve - Entry #2 by Caseman on Apr 29, 2004 3:03 pm Status: Pending => Resolved Fixed on HEAD and 2.7 branch ________________________________________ = Request - Entry #1 by shh on Apr 25, 2004 9:02 am The TreeTag does not properly encode/decode the tree state in recent versions of Zope. Since the introduction of the MiniUnpickler class (as part of the security audit, iirc) the tree state does not persist anymore. The error is conveniently masked by an 'except IndexError:' around line 180 of TreeDisplay/TreeTag.py. Adding some logging at this point shows that NO tree-s cookie decodes without error. To reproduce: in the ZMI in the left frame open a folder. Then open a second folder on the same level as the first. You will find the first folder is no longer expanded because the tree state could not be read from the cookie. Known to work in Zope 2.6.2 ============================================================== From zope-coders-admin at zope.org Thu Apr 29 15:04:22 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 15:04:25 2004 Subject: [ZCM] [ZC] 1286/ 3 Comment "App.Management.Tabs.manage_workspace sucks! :-(" Message-ID: Issue #1286 Update (Comment) "App.Management.Tabs.manage_workspace sucks! :-(" Status Pending, Zope/bug medium To followup, visit: http://zope.org/Collectors/Zope/1286 ============================================================== = Comment - Entry #3 by tseaver on Apr 29, 2004 3:04 pm > 1. manage_workspace is only protected by the Authenticated role, and that > is done directly, not even through a permission. WONTFIX, this is *by design*. > 2. self.filtered_manage_roles then limits the options of what can be > shown, which might end up being nothing. But, because the method is only > protected by 'Authenticated', no chance is given to specify other user > credentials (say, from a user folder higher up in the tree) which might > be able to see something. NOTABUG. *Nothing* in Zope behaves as you describe. Once you are authenticated, your identity is fixed for the duration of the request. > 3. There's a bare try/except which masks errors. From what I can see, it > should ONLY catch IndexError's. SHOULDFIX. This part should be fixed by removing the 'try:...except:' altogether. If the list returned by 'filtered_manage_options' is empty, then raise Unauthorized. > 4. The "raise TypeError" could do with some explanation. NOTABUG. That check avoids a potential recursion loop. > 5. The Unauthorized could raise a more helpful message "You are not > authorized to view an of this object's management itnerface" Why expose more information? Unauthorized says, "You tried to do something you aren't allowed; please authenticate as someone else", which is all we want. ________________________________________ = Comment - Entry #2 by ajung on Apr 11, 2004 1:13 pm Can you fix this? ________________________________________ = Request - Entry #1 by chrisw on Apr 2, 2004 5:08 am 1. manage_workspace is only protected by the Authenticated role, and that is done directly, not even through a permission. 2. self.filtered_manage_roles then limits the options of what can be shown, which might end up being nothing. But, because the method is only protected by 'Authenticated', no chance is given to specify other user credentials (say, from a user folder higher up in the tree) which might be able to see something. 3. There's a bare try/except which masks errors. From what I can see, it should ONLY catch IndexError's. 4. The "raise TypeError" could do with some explanation. 5. The Unauthorized could raise a more helpful message "You are not authorized to view an of this object's management itnerface" ============================================================== From zope-coders-admin at zope.org Thu Apr 29 15:39:00 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 15:39:03 2004 Subject: [ZCM] [ZC] 553/ 2 Resolve "sporadic Zope crashes" Message-ID: Issue #553 Update (Resolve) "sporadic Zope crashes" Status Resolved, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/553 ============================================================== = Resolve - Entry #2 by Caseman on Apr 29, 2004 3:38 pm Status: Pending => Resolved Much work has been done on BTrees since this report. If the problem still occurs, please reopen. ________________________________________ = Request - Entry #1 by Anonymous User on Aug 30, 2002 11:47 am I'm doing stress tests of my Application from time to time to check for memory leaks and such. There it sometimes happens, that Zope crashes with an illegal memory access exception. Some debugging showed, that the problem is in BTrees/BucketTemplate.c in _bucket__p_resolveConflict: > _bucket__p_resolveConflict(PyObject *ob_type, PyObject *s[3]) > { > PyObject *r=0, *a; > Bucket *b[3]; > int i; > > for (i=0; i < 3; i++) > { > ... > } > here is where the exception occured, that should probably be a Py_XDECREF > Py_DECREF(r); ============================================================== From zope-coders-admin at zope.org Thu Apr 29 15:49:12 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 15:49:15 2004 Subject: [ZCM] [ZC] 553/ 3 Resubmit "sporadic Zope crashes" Message-ID: Issue #553 Update (Resubmit) "sporadic Zope crashes" Status Pending, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/553 ============================================================== = Resubmit - Entry #3 by tim_one on Apr 29, 2004 3:49 pm Status: Resolved => Pending Reopened Wow! Wish I had known about this one earlier. This particular bug still exists, and Dieter Maurer rediscovered it this year (2004). It can only happen when bucket conflict resolution is handed 3 empty buckets, which is darned hard to do. ________________________________________ = Resolve - Entry #2 by Caseman on Apr 29, 2004 3:38 pm Status: Pending => Resolved Much work has been done on BTrees since this report. If the problem still occurs, please reopen. ________________________________________ = Request - Entry #1 by Anonymous User on Aug 30, 2002 11:47 am I'm doing stress tests of my Application from time to time to check for memory leaks and such. There it sometimes happens, that Zope crashes with an illegal memory access exception. Some debugging showed, that the problem is in BTrees/BucketTemplate.c in _bucket__p_resolveConflict: > _bucket__p_resolveConflict(PyObject *ob_type, PyObject *s[3]) > { > PyObject *r=0, *a; > Bucket *b[3]; > int i; > > for (i=0; i < 3; i++) > { > ... > } > here is where the exception occured, that should probably be a Py_XDECREF > Py_DECREF(r); ============================================================== From zope-coders-admin at zope.org Thu Apr 29 15:49:44 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 15:49:46 2004 Subject: [ZCM] [ZC] 553/ 4 Assign "sporadic Zope crashes" Message-ID: Issue #553 Update (Assign) "sporadic Zope crashes" Status Accepted, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/553 ============================================================== = Assign - Entry #4 by tim_one on Apr 29, 2004 3:49 pm Status: Pending => Accepted Supporters added: tim_one Assigned this one to me. ________________________________________ = Resubmit - Entry #3 by tim_one on Apr 29, 2004 3:49 pm Status: Resolved => Pending Reopened Wow! Wish I had known about this one earlier. This particular bug still exists, and Dieter Maurer rediscovered it this year (2004). It can only happen when bucket conflict resolution is handed 3 empty buckets, which is darned hard to do. ________________________________________ = Resolve - Entry #2 by Caseman on Apr 29, 2004 3:38 pm Status: Pending => Resolved Much work has been done on BTrees since this report. If the problem still occurs, please reopen. ________________________________________ = Request - Entry #1 by Anonymous User on Aug 30, 2002 11:47 am I'm doing stress tests of my Application from time to time to check for memory leaks and such. There it sometimes happens, that Zope crashes with an illegal memory access exception. Some debugging showed, that the problem is in BTrees/BucketTemplate.c in _bucket__p_resolveConflict: > _bucket__p_resolveConflict(PyObject *ob_type, PyObject *s[3]) > { > PyObject *r=0, *a; > Bucket *b[3]; > int i; > > for (i=0; i < 3; i++) > { > ... > } > here is where the exception occured, that should probably be a Py_XDECREF > Py_DECREF(r); ============================================================== From zope-coders-admin at zope.org Thu Apr 29 16:02:45 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 16:02:47 2004 Subject: [ZCM] [ZC] 1298/ 3 Comment "Make ZSQLMethods useful in SiteErrorLog" Message-ID: Issue #1298 Update (Comment) "Make ZSQLMethods useful in SiteErrorLog" Status Pending, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/1298 ============================================================== = Comment - Entry #3 by shh on Apr 29, 2004 4:02 pm Applied the patch to HEAD and 2.7 branch. Please resolve. ________________________________________ = Comment - Entry #2 by ajung on Apr 17, 2004 11:35 am Nice patch but it can not be applied to the 2.7 branch/HEAD (2nd hunk fails). Could you please correct the patch? -aj ________________________________________ = Request - Entry #1 by anthony on Apr 16, 2004 2:35 am Uploaded: "zsql.patch" - http://collector.zope.org/Zope/1298/zsql.patch/view Right now, ZSQLMethods are uselessly rendered in the SiteErrorLog. The following patch fixes this. ============================================================== From zope-coders-admin at zope.org Thu Apr 29 16:09:39 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 16:09:41 2004 Subject: [ZCM] [ZC] 1231/ 2 Comment "ZODB ExportImport.exportFile: Error logging fails" Message-ID: Issue #1231 Update (Comment) "ZODB ExportImport.exportFile: Error logging fails" Status Pending, Database/bug+solution medium To followup, visit: http://zope.org/Collectors/Zope/1231 ============================================================== = Comment - Entry #2 by dunny on Apr 29, 2004 4:09 pm Fixed in CVS on both HEAD and Zope-2_7-branch. ________________________________________ = Request - Entry #1 by Anonymous User on Feb 15, 2004 5:58 am Line 51 references sys.exc_info() but sys is not imported. Also zLOG.LOG does not expect "err=sys.exc_info()" but "error=sys.exc_info()" ============================================================== From zope-coders-admin at zope.org Thu Apr 29 16:46:26 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 16:46:30 2004 Subject: [ZCM] [ZC] 1298/ 4 Resolve "Make ZSQLMethods useful in SiteErrorLog" Message-ID: Issue #1298 Update (Resolve) "Make ZSQLMethods useful in SiteErrorLog" Status Resolved, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/1298 ============================================================== = Resolve - Entry #4 by Caseman on Apr 29, 2004 4:46 pm Status: Pending => Resolved ________________________________________ = Comment - Entry #3 by shh on Apr 29, 2004 4:02 pm Applied the patch to HEAD and 2.7 branch. Please resolve. ________________________________________ = Comment - Entry #2 by ajung on Apr 17, 2004 11:35 am Nice patch but it can not be applied to the 2.7 branch/HEAD (2nd hunk fails). Could you please correct the patch? -aj ________________________________________ = Request - Entry #1 by anthony on Apr 16, 2004 2:35 am Uploaded: "zsql.patch" - http://collector.zope.org/Zope/1298/zsql.patch/view Right now, ZSQLMethods are uselessly rendered in the SiteErrorLog. The following patch fixes this. ============================================================== From zope-coders-admin at zope.org Thu Apr 29 16:47:36 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 16:47:41 2004 Subject: [ZCM] [ZC] 1231/ 3 Resolve "ZODB ExportImport.exportFile: Error logging fails" Message-ID: Issue #1231 Update (Resolve) "ZODB ExportImport.exportFile: Error logging fails" Status Resolved, Database/bug+solution medium To followup, visit: http://zope.org/Collectors/Zope/1231 ============================================================== = Resolve - Entry #3 by Caseman on Apr 29, 2004 4:47 pm Status: Pending => Resolved ________________________________________ = Comment - Entry #2 by dunny on Apr 29, 2004 4:09 pm Fixed in CVS on both HEAD and Zope-2_7-branch. ________________________________________ = Request - Entry #1 by Anonymous User on Feb 15, 2004 5:58 am Line 51 references sys.exc_info() but sys is not imported. Also zLOG.LOG does not expect "err=sys.exc_info()" but "error=sys.exc_info()" ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:09:13 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:09:18 2004 Subject: [ZCM] [ZC] 1305/ 1 Request "data in mounted databases cant be accessed on HEAD" Message-ID: Issue #1305 Update (Request) "data in mounted databases cant be accessed on HEAD" Status Pending, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/1305 ============================================================== = Request - Entry #1 by mcdonc on Apr 29, 2004 5:09 pm >From an email exchange on Zope-Dev... > > This breaks any mounted databases (which breaks dbtab, which breaks > > sessions, which breaks lots of other things). Hopefully this is > > simple to fix, I haven't looked yet. > > I expect Shane will look at this in a week or two (when he settles down from > moving) -- but can't know that. There was some horrid patching going on in > ZODBMountPoint.py, which reached into various ZODB internals and replaced > them. Jeremy refactored that, to make MountConnection a subclass of > Connection, and MountConnection._getMountedConnection() is still there. Right. FWIW, the binding to DB.klass to allow the DB to use the MountConnection happens too late as it stands. But that doesn't matter too much for reasons below. > There's still horrid patching going on, in that ZODBMountPoint.py reaches > into ZODB.DB.DB and forces it to create MountConnection connections instead > of Connection connections. Perhaps this isn't being done "soon enough" in > whatever exactly it is you were trying. Yes, I fixed this by making the binding happen earlier (during startup). Once I do that, Zope in its default configuration indeed starts and appears to work. But any time an attempt is made to access or store an object in a mounted database (the default Zope sessioning configuration makes use of a mounted database), it falls over. The same code works ok against objects in the main database. You can probably replicate the problem by using the Zope "Shopping Cart" example code (accessible by viewing the Zope default home page without '/manage') For anyone who cares, here's a traceback demonstrating one variation of the symptom: 2004-04-25T22:38:57 ERROR SiteError http://www.plope.com/logged_in Traceback (most recent call last): File "/home/chrism/software/Trunk/lib/python/ZPublisher/Publish.py", line 111, in publish request, bind=1) File "/home/chrism/software/Trunk/lib/python/ZPublisher/mapply.py", line 88, in mapply if debug is not None: return debug(object,args,context) File "/home/chrism/software/Trunk/lib/python/ZPublisher/Publish.py", line 40, in call_object result=apply(object,args) # Type s to step into published object. File "/home/chrism/var/zopemafia.org/Products/CMFCore/FSPythonScript.py", line 107, in __call__ return Script.__call__(self, *args, **kw) File "/home/chrism/software/Trunk/lib/python/Shared/DC/Scripts/Bindings.py", line 306, in __call__ return self._bindAndExec(args, kw, None) File "/home/chrism/software/Trunk/lib/python/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec return self._exec(bound_data, args, kw) File "/home/chrism/var/zopemafia.org/Products/CMFCore/FSPythonScript.py", line 162, in _exec result = f(*args, **kw) File "Script (Python)", line 22, in logged_in File "/home/chrism/software/Trunk/lib/python/ZPublisher/HTTPRequest.py", line 1214, in __getattr__ v = self.get(key, default, returnTaints=returnTaints) File "/home/chrism/software/Trunk/lib/python/ZPublisher/HTTPRequest.py", line 1174, in get if callable(v): v = v() File "/home/chrism/software/Trunk/lib/python/Products/Sessions/SessionDataManager.py", line 93, in getSessionData return self._getSessionDataObject(key) File "/home/chrism/software/Trunk/lib/python/Products/Sessions/SessionDataManager.py", line 180, in _getSessionDataObject ob = container.new_or_existing(key) File "/home/chrism/software/Trunk/lib/python/Products/Transience/Transience.py", line 176, in new_or_existing item = self.get(key, notfound) File "/home/chrism/software/Trunk/lib/python/Products/Transience/Transience.py", line 817, in get b = index.get(k, notfound) File "/home/chrism/software/Trunk/lib/python/ZODB/Connection.py", line 795, in setstate self._setstate(obj) File "/home/chrism/software/Trunk/lib/python/ZODB/Connection.py", line 849, in _setstate self._reader.setGhostState(obj, p) File "/home/chrism/software/Trunk/lib/python/ZODB/serialize.py", line 401, in setGhostState obj.__setstate__(state) SystemError: new style getargs format but argument is not a tuple ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:12:10 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:12:13 2004 Subject: [ZCM] [ZC] 532/ 2 Resolve "Python language warnings give I/O Errors" Message-ID: Issue #532 Update (Resolve) "Python language warnings give I/O Errors" Status Resolved, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/532 ============================================================== = Resolve - Entry #2 by mcdonc on Apr 29, 2004 5:12 pm Status: Pending => Resolved Oh my god is this old. This is fixed now that we've made a more or less proper daemonizing system for Zope 2.7. ________________________________________ = Request - Entry #1 by ctheune on Aug 22, 2002 1:22 pm I used a lambda function in a product, that triggered the warning for the nested_scopes feature. Actually zope was running as a daemon and therefore decoupled from the console. It gave this error message during the import: Traceback (innermost last): File /usr/lib/zope/lib/python/App/RefreshFuncs.py, line 183, in performSafeRef resh File /usr/lib/zope/lib/python/App/RefreshFuncs.py, line 170, in performRefresh File /usr/lib/zope/lib/python/OFS/Application.py, line 758, in reimport_produc t File /usr/lib/zope/lib/python/OFS/Application.py, line 531, in import_product File /usr/lib/zope/lib/python/Products/MetaIndex/__init__.py, line 18, in ? File /usr/lib/python2.1/warnings.py, line 92, in warn_explicit File /usr/lib/python2.1/warnings.py, line 98, in showwarning IOError: [Errno 5] Input/output error This shouldn't happen, as this is only a warning. Maybe you should try to catch this somehow and provide it with the zLOG facilities. Cheers Christian ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:14:39 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:14:41 2004 Subject: [ZCM] [ZC] 562/ 2 Resolve "pDocumentTemplate is broken" Message-ID: Issue #562 Update (Resolve) "pDocumentTemplate is broken" Status Resolved, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/562 ============================================================== = Resolve - Entry #2 by Caseman on Apr 29, 2004 5:14 pm Status: Pending => Resolved pDocumentTemplate is no longer used for 2.7 or HEAD ________________________________________ = Request - Entry #1 by efge on Sep 9, 2002 7:20 pm pDocumentTemplate doesn't work. To reproduce, take a brand new Zope install, and make it not use cDocumentTemplate, by doing for instance: mv lib/python/DocumentTemplate/cDocumentTemplate.so \ lib/python/DocumentTemplate/cDocumentTemplate.so.removed Then start Zope and go to http://localhost:8080/manage On 2.5.1 for instance you get: File /home/fg/tmp/zope/251/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /home/fg/tmp/zope/251/lib/python/ZPublisher/Publish.py, line 114, in publish File /home/fg/tmp/zope/251/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: Zope) File /home/fg/tmp/zope/251/lib/python/ZPublisher/Publish.py, line 98, in publish File /home/fg/tmp/zope/251/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: manage_main) File /home/fg/tmp/zope/251/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: manage_main) File /home/fg/tmp/zope/251/lib/python/Shared/DC/Scripts/Bindings.py, line 252, in __call__ (Object: manage_main) File /home/fg/tmp/zope/251/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in _bindAndExec (Object: manage_main) File /home/fg/tmp/zope/251/lib/python/App/special_dtml.py, line 172, in _exec (Object: manage_main) File /home/fg/tmp/zope/251/lib/python/DocumentTemplate/pDocumentTemplate.py, line 209, in render_blocks TypeError: object of type 'None' is not callable But on occasions I also got "object of type 'list' is not callable". ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:15:41 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:16:12 2004 Subject: [ZCM] [ZC] 1306/ 1 Request "Missing acqisition context on local roles screen " Message-ID: Issue #1306 Update (Request) "Missing acqisition context on local roles screen " Status Pending, Zope/bug+solution medium To followup, visit: http://collector.zope.org/Zope/1306 ============================================================== = Request - Entry #1 by shh on Apr 29, 2004 5:15 pm RoleManager.get_valid_userids() calls user_names() on an unwrapped user folder. This make the local role screens unusable for e.g. database user folders that need to acquire their DB connector. The following patch wraps user_names() before calling it. If there are no security implications I failed to spot, I'd like to check this is in. --- Role.py Thu Jul 24 18:08:43 2003 +++ Role.py Thu Jul 24 18:08:49 2003 @@ -314,11 +314,12 @@ if mlu < 0: raise OverflowError un = getattr(aclu, 'user_names', _notfound) if un is not _notfound: + un = aclu.__of__(item).user_names # rewrap unl = un() # maxlistusers of 0 is list all if len(unl) > mlu and mlu != 0: raise OverflowError - for name in un(): + for name in unl: dict[name]=1 item = getattr(item, 'aq_parent', _notfound) if item is _notfound: ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:17:02 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:17:07 2004 Subject: [ZCM] [ZC] 1199/ 2 Comment "FileUpload not iterable" Message-ID: Issue #1199 Update (Comment) "FileUpload not iterable" Status Pending, Zope/bug+solution medium To followup, visit: http://zope.org/Collectors/Zope/1199 ============================================================== = Comment - Entry #2 by LRA on Apr 29, 2004 5:16 pm Uploaded: "bug-1199.diff" - http://zope.org/Collectors/Zope/1199/bug-1199.diff/view here's a patch based on discussions at 2004-04-29 bugday ________________________________________ = Request - Entry #1 by LRA on Jan 20, 2004 11:57 pm ZPublisher.HTTPRequest.FileUpload class does not implement the iterable interface regular files do, so it can't be used in places where a file object is assumed to be an iterable, like csv.reader(), for instance. I think fixing this is as easy as implementing an __iter__ method that returns 'self' and a .next() method as an alias for .readline() in the FileUpload class ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:17:48 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:17:52 2004 Subject: [ZCM] [ZC] 602/ 2 Resolve "XMLRPC does not allow HTTP Basic Authorization" Message-ID: Issue #602 Update (Resolve) "XMLRPC does not allow HTTP Basic Authorization" Status Resolved, Zope/feature+solution medium To followup, visit: http://collector.zope.org/Zope/602 ============================================================== = Resolve - Entry #2 by mcdonc on Apr 29, 2004 5:17 pm Status: Pending => Resolved The newest xmlrpclib that ships with Python 2.3.3 (and probably before) supports basic auth. Zope as of 2.7 no longer ships with its own version of xmlrpclib, so closing. ________________________________________ = Request - Entry #1 by dbasch on Oct 3, 2002 2:42 pm Uploaded: "xmlrpclib.py" - http://collector.zope.org/Zope/602/xmlrpclib.py/view Zope/lib/python/xmlrpclib does not provide a Transport for basic http authentication. I used Amos BasicAuthTransport patch and modified it to be compatible with the latest xmlrpclib.py revision(Revision 1.10.6.1) and the latest xmlrpc.py revision(Revision 1.12.4.1) It should now return "ProtocolError: " in the event of a authentication failure. ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:19:07 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:19:11 2004 Subject: [ZCM] [ZC] 875/10 Resolve "FileStorage packing bug: backpointer not resolved" Message-ID: Issue #875 Update (Resolve) "FileStorage packing bug: backpointer not resolved" Status Resolved, Zope/bug critical To followup, visit: http://collector.zope.org/Zope/875 ============================================================== = Resolve - Entry #10 by mcdonc on Apr 29, 2004 5:19 pm Status: Pending => Resolved Manual testing during bug day on 4/29/2004 by Paul Winkler could not reproduce on HEAD or in 2.7 branch. Closing. ________________________________________ = Comment - Entry #9 by ajung on Sep 29, 2003 8:42 am is this bug still there? ________________________________________ = Comment - Entry #8 by jeremy on May 13, 2003 11:19 am In a variety of small examples involving undo and pack, I can't reproduce this problem. I know there are bugs involving 2.6.1 pack, but the description in the previous message doesn't contain enough information to see which bug is causing the problem. ________________________________________ = Comment - Entry #7 by mjablonski on May 12, 2003 2:19 am rbreathe@brookes.ac.uk posted this description on zope@zope.org. I think it may be useful to track down the problem. ------------------------------------------------- I believe we have found a bug in the 2.6.1 release (possibly more specifically in ZODB 3.1.1). ----------- # Summary: ----------- When an undo is the last transaction preceeding a "pack(days:float=0)", the FileStorage is corrupted. ------------ # To repeat: ------------ Start with a 'consistent' FileStorage, e.g. Data.fs that passes fstest.py without error: 1368329: transaction tid 0x034cd1c220785077 #32 1368792: transaction tid 0x034cd1dbeb647922 #33 no errors detected Change an object (e.g. its contents, rename or delete it. whatever). Immediately undo that change ("oops"). Pack the Database (days:float=0). Your FileStorage should be corrupt: 1368329: transaction tid 0x034cd1c220785077 #32 1368792: transaction tid 0x034cd1e0caa0286e #33 1369330 object serialno 0x034cd1e0caa0286e does not matchtransaction id 0x034cd1e11516ba55 Now try changing an object (perhaps the same one again). In the event.log, you should have something like the following: 2003-05-09T17:18:56 INFO(0) ZODB conflict error at /VirtualHostBase/https/twww.brookes.ac.uk:8443/VirtualHostRoot/Brookes/www/manage_delObjects (1 conflicts since startup at 2003-05-09T17:16:34) ------ 2003-05-09T17:18:57 INFO(0) ZODB conflict error at /VirtualHostBase/https/twww.brookes.ac.uk:8443/VirtualHostRoot/Brookes/www/manage_delObjects (2 conflicts since startup at 2003-05-09T17:16:34) ------ 2003-05-09T17:18:58 INFO(0) ZODB conflict error at /VirtualHostBase/https/twww.brookes.ac.uk:8443/VirtualHostRoot/Brookes/www/manage_delObjects (3 conflicts since startup at 2003-05-09T17:16:34) ------ 2003-05-09T17:19:01 INFO(0) ZODB conflict error at /VirtualHostBase/https/twww.brookes.ac.uk:8443/VirtualHostRoot/Brookes/www/manage_delObjects (4 conflicts since startup at 2003-05-09T17:16:34) Without ZEO (2.0.1b1) this is only repeated once, and the operation seemingly succeeds (on top of the corrupted FileStorage), but with ZEO all transactions involving a write to the FileStorage fail, throwing the following error: ZODB.POSException.ConflictError Traceback (innermost last): * Module ZPublisher.Publish, line 150, in publish_module * Module ZPublisher.Publish, line 127, in publish * Module ZPublisher.Publish, line 127, in publish * Module ZPublisher.Publish, line 127, in publish * Module ZPublisher.Publish, line 122, in publish * Module Zope.App.startup, line 142, in zpublisher_exception_hook * Module ZPublisher.Publish, line 102, in publish * Module Zope.App.startup, line 200, in commit * Module ZODB.Transaction, line 246, in commit * Module ZODB.Connection, line 680, in tpc_vote * Module ZEO.ClientStorage, line 722, in tpc_vote * Module ZEO.ClientStorage, line 706, in _check_serials ConflictError: database conflict error (oid 0000000000000af6, serial was 034cd1e0caa0286e, now 034cd1e11516ba55) The site is useless until both ZEO and the Client Instance have been restarted, at which point it is possible to change the errant object, and pack again (assuming no undo), which then fixes the consistency. However restarting your site whenever someone chooses to undo an operation just before your automated pack. ------------- # Workaround: ------------- Don't let an undo be the last transaction preceeding a pack (easier said than cleanly done with automation). -------- # Notes: -------- Machine: SunOS lr1 5.9 Generic_112233-04 sun4u sparc SUNW,Ultra-Enterprise Zope: Primarily we tried the binary Solaris release of 2.6.1 and ZEO 2.0.1b1: Zope Version: (Zope 2.6.1 (binary release, python 2.1, solaris-2.8-sparc), python 2.1.3, sunos5) Python Version: 2.1.3 (#4, Sep 16 2002, 15:52:14) [GCC 2.95.3 20010315 (release)] System Platform: sunos5 SOFTWARE_HOME: /app/zope/zope_2.6.1/lib/python ZOPE_HOME: /app/zope/zope_2.6.1 INSTANCE_HOME: /data/zope/zope_2.6.1/test/client CLIENT_HOME: /data/zope/zope_2.6.1/test/client/var We have also tried our own homegrown from CVS (Zope-2_6-branch) as of 2003/05/09 15:20, along with our own Python 2.1.3 and a snapshot of /ZEO from CVS (HEAD) (in various combinations): Zope Version: (unreleased version, python 2.1.3, sunos5) Python Version: 2.1.3 (#1, Mar 26 2003, 16:28:24) [GCC 3.2.2] System Platform: sunos5 SOFTWARE_HOME: /app/zope/zope_2.6.1-cvs/lib/python ZOPE_HOME: /app/zope/zope_2.6.1-cvs INSTANCE_HOME: /data/zope/zope_2.6.1-cvs/test/client CLIENT_HOME: /data/zope/zope_2.6.1-cvs/test/client/var Further we found that the fsrecover.py script packaged with 2.6.1 release is useless. It always removes EVERYTHING from the Data.fs bar the magic number. This was our primary incentive for trying Zope-2_6-branch since it includes jeremy's recently improved ZODB management scripts. Note however that jeremy's recent fstest.py does not throw an error on inconsistencies of the type mentioned above (despite the fact they still seem to cause problems?). Anything else I can say? Rather a longwinded message for such an easily repeatable bug, but nevermind. Obviously we'd be happy to help find a solution, be that by providing corrupt Data.fs, extra details, testing patches, etc. ________________________________________ = Comment - Entry #6 by mjablonski on May 6, 2003 3:12 pm I've had another data lost after packing on 05/05/2003. I've packed the database on 05/04/2003, a day after a DTML-Document was gone without anyone has deleted it (no entry in undo-log etc.) My config: - ZEO-2.0.1b1 - Zope 2.6.x from CVS (recently updated) - Python 2.1.3 As workaround I turned of ZEO to check if the problem arises from the communication between backend and frontend-server. We will see... ________________________________________ = Comment - Entry #5 by jeremy on Apr 29, 2003 4:33 pm A question about the patch. It looks like the change means that back pointers are always resolved during pack. Is that right? If so, it means that when we're done there are no backpointers in the storage; every backpointer has been replaced by a copy of the actual data. We need backpointers to get undo semantics right. They also save space. ________________________________________ = Comment - Entry #4 by d.maurer on Apr 10, 2003 7:48 am Uploaded: "UndoPack.pat" - http://collector.zope.org/Zope/875/UndoPack.pat/view Patch attached ________________________________________ = Comment - Entry #3 by d.maurer on Apr 10, 2003 5:11 am Uploaded: "testFileStorageUndoPack.py" - http://collector.zope.org/Zope/875/testFileStorageUndoPack.py/view Unittests attached reproducing the bug. The tests assumes to be located in "ZODB/tests". The error occurs when an "Undo" record is copied during pack's copy phase (rather than the packing phase). ________________________________________ = Comment - Entry #2 by mjablonski on Apr 9, 2003 8:55 am I've had the same "object-were-mystical-gone-after-packing"-problem two times a few weeks ago with 2.6.1. I thought it was a ZEO-Syncing-Issue, but it seems that it is problem of the ZODB-packing. ________________________________________ = Request - Entry #1 by d.maurer on Apr 9, 2003 8:06 am ATTENTION: data loss! We lost an object (say "O") during packing. Events: "delete O", "undo 'delete O'", pack After the "pack", "O" is no longer accessible, it is lost. Analysis of the FileStorage for "O"s parent record: Before packing pos serial prev plen undo 634808031L '\x03K\xa5\xe4\xcaLYw' '\x00\x00\x00\x00%L\xeb\xa2' 0 delete 625798050L "\x03K\xa5\xc7\xb0';f" '\x00\x00\x00\x00\x01F\xcd)' 168 backpointer 21417257L '\x03G\xd3)\x98\xc9\x043' 0 254 After packing pos serial prev plen undo 437746018L '\x03K\xa5\xe4\xcaLYw' '\x00\x00\x00\x00\x19\x8d\xfe%' 0 delete 428736037L backpointer 428736037L "\x03K\xa5\xc7\xb0';f" '\x00\x00\x00\x00\x01<)\xdd' 168 As we see, the backpointer was not resolved during packing and after packing, it points to the "deleted" state. I will try to reproduce this error in a small test case and report back. ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:26:39 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:26:41 2004 Subject: [ZCM] [ZC] 584/ 2 Reject "Auto-refresh External Methods" Message-ID: Issue #584 Update (Reject) "Auto-refresh External Methods" Status Rejected, Zope/feature+solution medium To followup, visit: http://collector.zope.org/Zope/584 ============================================================== = Reject - Entry #2 by mcdonc on Apr 29, 2004 5:26 pm Status: Pending => Rejected Sorry, I'm going to reject this one because: 1. No one has wanted to do this for two years. 2. Refresh has given me grief in the past and I wouldn't want us to add more grief. ________________________________________ = Request - Entry #1 by Anonymous User on Sep 23, 2002 11:56 am Could the small hack described at www.zope.org/Members/madcow/ExtMethodRefresh be incorporated into Zope? This allows one to set individual External Methods to refresh themselves automatically, which is helpful if you're in the process of developing them. (They currently do this when Zope is started debug mode, but this modification allows it to be set for individual methods, rather than all or nothing.) ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:28:59 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:29:01 2004 Subject: [ZCM] [ZC] 654/ 2 Resolve "Carrying of Duplicate cPickle" Message-ID: Issue #654 Update (Resolve) "Carrying of Duplicate cPickle" Status Resolved, Zope/bug low To followup, visit: http://collector.zope.org/Zope/654 ============================================================== = Resolve - Entry #2 by mcdonc on Apr 29, 2004 5:28 pm Status: Pending => Resolved Zope 2.7.0 no longer ships with cPickle. ________________________________________ = Request - Entry #1 by Anonymous User on Nov 2, 2002 9:12 pm Since Zope 2.6.0 now requires Python 2.1, can we drop the carrying of cPickle in Zope distributions? Isn't the version of cPickle in Python 2.1 good enough or is there still Zope-specific mods to cPickle being used? Removing unnecessary files makes maintaining release packages such as RPMs easier. ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:30:41 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:30:44 2004 Subject: [ZCM] [ZC] 678/ 6 Resolve "pyexpat.so missing in binary installation" Message-ID: Issue #678 Update (Resolve) "pyexpat.so missing in binary installation" Status Resolved, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/678 ============================================================== = Resolve - Entry #6 by mcdonc on Apr 29, 2004 5:30 pm Status: Pending => Resolved Zope Corp no longer builds binaries for releases after 2.7.0, so this is "resolved" (in a very cheap-shot kind of way, but still resolved ;-). ________________________________________ = Resubmit - Entry #5 by efge on Feb 17, 2003 12:05 pm Status: Rejected => Pending > ZC does not bundle expat with its binary builds of python. That's not an acceptable answer... Core Zope needs expat, as the original poster of this bug remarked. Does this mean that any user needing page templates in a non-HTML format will have to build his own Zope? - create a Page Template - go edit it - use as content - use text/xml as content-type - try to save the resulting page template You get the traceback: * Module ZPublisher.Publish, line 98, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Products.PageTemplates.ZopePageTemplate, line 116, in pt_editAction * Module Products.PageTemplates.PageTemplate, line 60, in pt_edit * Module Products.PageTemplates.ZopePageTemplate, line 196, in write * Module Products.PageTemplates.PageTemplate, line 139, in write * Module Products.PageTemplates.PageTemplate, line 169, in _cook * Module TAL.TALParser, line 27, in __init__ * Module TAL.XMLParser, line 48, in __init__ * Module TAL.XMLParser, line 72, in createParser ImportError: cannot import name expat ________________________________________ = Reject - Entry #4 by matt on Feb 3, 2003 9:32 am Status: Pending => Rejected ZC does not bundle expat with its binary builds of python. The windows binaries are distributed unaltered -- the PythonLabs build of python for windows does include the expat library, but ZC has never included this as part of python for a linux binary release. At one point in time, Zope did include an older version of expat, but this has since been removed. Linux users needing expat should use a source release of Zope compiled against a local python. ________________________________________ = Comment - Entry #3 by efge on Jan 31, 2003 5:55 pm This still happens with 2.6.1b2 binary release for Linux. Another symptom is: # ./bin/python Python 2.1.3 (#1, Sep 19 2002, 13:15:46) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "copyright", "credits" or "license" for more information. >>> from xml.parsers import expat Traceback (most recent call last): File "", line 1, in ? File "/home/zope/testzope261b2/lib/python2.1/xml/parsers/expat.py", line 4, in ? from pyexpat import * ImportError: No module named pyexpat ________________________________________ = Comment - Entry #2 by efge on Dec 17, 2002 5:19 pm Yes, this happened to me too. Basically it means that you cannot use XML zpts using a binary install. I'm surprised the unit tests don't detect this. Actually I'm not sure I ever ran the unit tests using a binary install... ________________________________________ = Request - Entry #1 by j_lubcke on Nov 18, 2002 3:30 pm Binary installation missing pyexpat.so PageTemplates with non-standard content type ("text/vnd.wap.wml" for example) gives a Site Error with the traceback: -- 8< -- Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Shared.DC.Scripts.Bindings, line 252, in __call__ Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec Module App.special_dtml, line 174, in _exec Module DocumentTemplate.DT_In, line 705, in renderwob Module Products.PageTemplates.ZopePageTemplate, line 279, in om_icons Module Products.PageTemplates.PageTemplate, line 169, in _cook Module TAL.TALParser, line 27, in __init__ Module TAL.XMLParser, line 48, in __init__ Module TAL.XMLParser, line 72, in createParser ImportError: cannot import name expat -- 8< -- If pyexpat.so is copied from some other Python 2.1 installation the problem goes away. ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:34:39 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:34:41 2004 Subject: [ZCM] [ZC] 800/ 2 Resolve "win32 upgrade 2.6 -> 2.6.1: swhome broken" Message-ID: Issue #800 Update (Resolve) "win32 upgrade 2.6 -> 2.6.1: swhome broken" Status Resolved, Zope/doc request medium To followup, visit: http://collector.zope.org/Zope/800 ============================================================== = Resolve - Entry #2 by mcdonc on Apr 29, 2004 5:34 pm Status: Pending => Resolved This is water under the bridge at this point, so I am resovling. ________________________________________ = Request - Entry #1 by tarnold on Feb 9, 2003 9:16 am When upgrading the win32 binary distribution for Zope 2.6 (Zope-2.6.0-win32-x86.exe) to 2.6.1 using Zope-2.6.x-to-2.6.1-win32-x86.tgz, the file z2.py (in Zope's root folder) is upgraded and the "required path hackery for the win32 binary distribution" on line 236 gets lost. The visible result is that products using e.g. win32api are disabled. To fix the problem re-change line 236 from swhome=r'INSERT_SOFTWARE_HOME' to the path of the installation, e.g. swhome=r'C:\Program Files\Z26' As this is problem is probably not solvable in a .tgz upgrade, it should be described on http://www.zope.org/Documentation/Misc/InstallingZope.html . ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:37:28 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:37:30 2004 Subject: [ZCM] [ZC] 811/ 2 Reject "Virtual Host Logging" Message-ID: Issue #811 Update (Reject) "Virtual Host Logging" Status Rejected, ZServer/feature+solution medium To followup, visit: http://collector.zope.org/Zope/811 ============================================================== = Reject - Entry #2 by mcdonc on Apr 29, 2004 5:37 pm Status: Pending => Rejected Apologies, I don't think anyone is willing to commit this patch, as most people frontend Zope with Apache and use its vhosting facilities to do the same thing. I am going to "reject" this as a result, as it appears that no one has been willing to step up to commit this since it was entered. ________________________________________ = Request - Entry #1 by SmileyChris on Feb 16, 2003 7:27 pm I added the ability for medusa to split the logs based on the virtual host. (It only splits the HTTP server log on host, all others all go in the default log file) I use it and I have had other emails thanking me for this, so maybe if noone can see any problem with it, it should be melded with the main code. My solution: http://www.zope.org/Members/SmileyChris/howto/virtual_host_file_logger ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:38:29 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:38:31 2004 Subject: [ZCM] [ZC] 922/ 3 Comment "Version feature is broken in Zope" Message-ID: Issue #922 Update (Comment) "Version feature is broken in Zope" Status Pending, Database/bug critical To followup, visit: http://zope.org/Collectors/Zope/922 ============================================================== = Comment - Entry #3 by slinkp on Apr 29, 2004 5:38 pm Cannot reproduce with Zope 2.7 CVS. Tried to test with Zope 2 HEAD (2.8), but fsrecover.py seems badly broken there - gives about 900 invalid transaction lengths for a fresh Data.fs. ________________________________________ = Comment - Entry #2 by jeremy on Jan 17, 2004 4:33 pm Can you confirm whether this bug exists with 2.6.3? I vaguely recall fixing a bug in abortVersion that could have caused this behavior, but I can't find any evidence of it in the change logs. ________________________________________ = Request - Entry #1 by Anonymous User on May 22, 2003 11:04 am Version feature is broken in Zope: Working for some time with versions has caused two times a corruption of Data.fs (Zope 2.5.1) in our installation. Test scenario description with a new (clean) Zope installation: - Add Version to Root Folder: Id = "Test Version" - Press Button: "Start Working in Test Version" in Test Version - Add Line "Test" as 4th line to index.html - Press Button "Quit Working in /Test Version" in Test Version - call 'python /lib/python/ZODB/fsrecover.py /var/Data.fs /tmp/Data.fs' Result: Recovering /home/ndu/zope2.6/var/Data.fs into /tmp/Data.fs . 1 . 2 . 3 . 4 . 5 . 6 . 7 . 8 . 9 . ZODB.POSException.VersionLockError: ("'\\x00\\x00\\x00\\x00\\x00\\x00\\x00T'", '/Test Version') 0 . 1 . 2 . 3 . 4 . 5 . 6 . 7 . 8 . 9 319 bytes removed during recovery I assume that this error leads after some time/changes to a corruption of Data.fs I get the above error for Zope 2.5.1 and Zope 2.6.2b1. For Zope 2.5.1 the error can be resolved by packing the Database. For Zope 2.6.2b1 the error persists. ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:41:13 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:41:21 2004 Subject: [ZCM] [ZC] 571/ 2 Reject "Can't call methods on a ZPT object because of weird path traversal" Message-ID: Issue #571 Update (Reject) "Can't call methods on a ZPT object because of weird path traversal" Status Rejected, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/571 ============================================================== = Reject - Entry #2 by Caseman on Apr 29, 2004 5:41 pm Status: Pending => Rejected ZPT subclass the same script base class as Python scripts. This has a traversal hook that eats the subpath following the template. This is probably fixable, but the level of effort does not seem worthwhile IMO. ________________________________________ = Request - Entry #1 by djay on Sep 16, 2002 8:20 pm If I have a python method M1 and a ZPT, Z1 and I use the url Z1/M1 I don't get the behaviour I expect. I think something about the path traversal code that ZPT uses to do things like the "source.html" functionality must screw up normal aquisition type method calling. I'm not sure how to get the traversal path when using a python script so I'm not sure how could use a url such as "M1/Z1" as an alternative, although even if I could it doesn't strike me as very nice way of doing it. Not very OO. ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:43:01 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:43:04 2004 Subject: [ZCM] [ZC] 1042/ 4 Reject "Zope 2.7 port-base not calculating correctly" Message-ID: Issue #1042 Update (Reject) "Zope 2.7 port-base not calculating correctly" Status Rejected, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/1042 ============================================================== = Reject - Entry #4 by mcdonc on Apr 29, 2004 5:43 pm Status: Pending => Rejected Wont-fix... (sorry Limi!) ________________________________________ = Comment - Entry #3 by mcdonc on Oct 23, 2003 6:49 pm I'd really prefer that port-base didn't exist at all. If Jim weren't the one that wanted it, I'd just rip it out. ;-) That said, here's how it works: the value you define as "port-base" will be added to the port number you define in each server section. It defaults to 0. If you've got a web server on 8080 and a port-base of 0, the web server will run on 8080. If you've got a web server on 8080 and a port-base of 1, it will run on 8081. I think Jim's reasoning was that he wanted to be able to change the port base from the command line. Maybe we should just take it out of the default config file and make it "Jim's undocumented option". ;-) Relatedly, I think the fact that a zope.conf doesn't need any servers defined but still starts an ftp and web server is wrong. I thought it was right at one point, but I think I'm going to change it so that Zope will start no servers if none are defined. ________________________________________ = Comment - Entry #2 by limi on Sep 8, 2003 8:56 pm Hm, I see now that the behaviour has been changed, this is not a good way of doing it, IMHO. Having to input negative offsets from the value 8000 makes no sense to get something running on port 80. port-base 0 should give you web on 80, ftp on 21 etc. port-base -8000 seems a bit silly, why the magical connection to the number 8000? In any case, this is certain to trip up a lot of current users of Zope in addition to the newbies. If there's a good reason to change it, I'm all ears :) ________________________________________ = Request - Entry #1 by limi on Sep 8, 2003 8:50 pm The port-base directive in zope.conf seems to be a bit confused. I set it up with the instruction: port-base 40000 Which (according to the instructions, and to the way it's always worked in previous zope versions) should give me web on 40080, ftp on 40021 etc. What it ends ut doing is adding the base to the 8080 that exists originally, so it ends up running on port 48080 instead. ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:48:30 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:48:32 2004 Subject: [ZCM] [ZC] 637/ 5 Reject "ZPT: modules/sequence raises Unauthorized exception" Message-ID: Issue #637 Update (Reject) "ZPT: modules/sequence raises Unauthorized exception" Status Rejected, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/637 ============================================================== = Reject - Entry #5 by Caseman on Apr 29, 2004 5:48 pm Status: Accepted => Rejected NOTABUG ________________________________________ = Resubmit - Entry #4 by chrisw on Nov 5, 2003 3:40 am Status: Rejected => Accepted Well, if that's the case, it seems that Andreas is describing an error in the Zope book. Does the Zope book have a tracker? ________________________________________ = Reject - Entry #3 by evan on Nov 4, 2003 3:07 pm Status: Accepted => Rejected There *is* no top-level sequence module. It is, however, already available in the restricted Python builtins. Try tal:define="seq python:sequence", for example. ________________________________________ = Accept - Entry #2 by ajung on Oct 23, 2002 3:58 am Status: Pending => Accepted Supporters added: ajung ________________________________________ = Request - Entry #1 by ajung on Oct 23, 2002 3:53 am tal:define="seq modules/sequence" raises an Unauthorized exception although it should be allowed to use this module as described in the Zope Book. -aj ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:49:22 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:49:24 2004 Subject: [ZCM] [ZC] 540/ 6 Resolve "Local roles don't work when name of user doesn't match id" Message-ID: Issue #540 Update (Resolve) "Local roles don't work when name of user doesn't match id" Status Resolved, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/540 ============================================================== = Resolve - Entry #6 by mcdonc on Apr 29, 2004 5:49 pm Status: Pending => Resolved The separation between getUserName vs. getId is fixed *almost* 100% in Zope 2.6.4 and Zope 2.7.0. It is fixed 100% in (an as yet-unreleased) Zope 2.7.1. ________________________________________ = Comment - Entry #5 by djay on Aug 27, 2002 7:18 pm No, it's not LDAPUserFolder. It's RemoteUserFolder which is one I wrote but have yet to make publicly available, for reasons such as finding these kind of bugs. I could patch the userfolder but I'm not sure that's the right thing to do since this seems to be a Zopebug. ________________________________________ = Comment - Entry #4 by jens on Aug 27, 2002 12:18 pm djay, if the user folder you use happens to be the LDAPUserFolder (which i know had this problem) then you should upgrade it to the latest version which has this specific "problem" fixed. jens ________________________________________ = Comment - Entry #3 by jens on Aug 27, 2002 12:18 pm djay, if the user folder you use happens to be the LDAPUserFolder (which i know had this problem) then you should upgrade it to the latest version which has this specific "problem" fixed. jens ________________________________________ = Comment - Entry #2 by jens on Aug 27, 2002 12:18 pm djay, if the user folder you use happens to be the LDAPUserFolder (which i know had this problem) then you should upgrade it to the latest version which has this specific "problem" fixed. jens ________________________________________ = Request - Entry #1 by djay on Aug 27, 2002 3:45 am The code in User.py tries to match user.getUserName() to the values stored in __ac_local_roles__, however user.getId() is what is added to the local roles (in fact user paths should be too but that's a different issue). In my case I'm using a UserFolder that has users where getUserName() returns a different value from getId(), which seams reasonable behaviour except for this inconsitency with local roles ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:51:34 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:51:37 2004 Subject: [ZCM] [ZC] 658/ 3 Resolve "Fracture setup.py into components" Message-ID: Issue #658 Update (Resolve) "Fracture setup.py into components" Status Resolved, Zope/bug+solution low To followup, visit: http://collector.zope.org/Zope/658 ============================================================== = Resolve - Entry #3 by Caseman on Apr 29, 2004 5:51 pm Status: Pending => Resolved Obsolete ________________________________________ = Comment - Entry #2 by mcdonc on Nov 2, 2002 9:40 pm Jeff, You may be interested in the "chrism-install-branch" of the Zope trunk. It has an rpm builder ("make rpmdist"). Any suggestions for splitting the setup.py should probably be made in terms of this branch as it will be merged into the head soon. - C ________________________________________ = Request - Entry #1 by Anonymous User on Nov 2, 2002 9:31 pm Please break the global setup.py apart so that it is easier to build selected Zope components, for packaging. A single, monolithic build process is not developer friendly and makes assumptions of the use and placement of build results. Apparently the distutils functionality doesn't support selected builds of subpackages, at least as far I can can tell. Something similar to "make subtarget". ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:52:40 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:52:41 2004 Subject: [ZCM] [ZC] 1050/ 2 Reject "softwarehome points to wrong directory" Message-ID: Issue #1050 Update (Reject) "softwarehome points to wrong directory" Status Rejected, Zope/bug critical To followup, visit: http://collector.zope.org/Zope/1050 ============================================================== = Reject - Entry #2 by Caseman on Apr 29, 2004 5:52 pm Status: Pending => Rejected Not enough specific detail provided. If this is still an issue please provide the exact configuration in question. ________________________________________ = Request - Entry #1 by ctheune on Sep 15, 2003 1:09 pm I have an instance_home setup with this Zope (some days before DBTabs checkin) and the softwarehome from the configuration registry points to the instance home root, which screws up the detection of a version.txt in App.version_txt.py Dunno if it is fixed in newer versions, can't use them currently because of the DBTab changes (this one really hurt over here ... but that's a different story.) ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:56:09 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:56:12 2004 Subject: [ZCM] [ZC] 810/ 2 Resolve "zlib missing ?" Message-ID: Issue #810 Update (Resolve) "zlib missing ?" Status Resolved, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/810 ============================================================== = Resolve - Entry #2 by mcdonc on Apr 29, 2004 5:56 pm Status: Pending => Resolved Closing this issue as we no longer supply binary installation tarballs in the stable release (2.7+). Errors like this will be detected on source install or by 3rd-party package management systems that have dependency checking. ________________________________________ = Request - Entry #1 by Anonymous User on Feb 16, 2003 10:51 am Hi Collector Team, I've have downloaded and installed the Zope 2.6.1 linux .tar.gz. On start of z2.py the library zlib from lib/Components/zlib pointed out as missing. Is zlib no longer in the Zope dist ? If so where can I get zlib from ? Regards, Dirk ============================================================== From zope-coders-admin at zope.org Thu Apr 29 17:57:55 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 17:57:57 2004 Subject: [ZCM] [ZC] 644/ 2 Resolve "initial ZODB root 'index_html' is broken HTML" Message-ID: Issue #644 Update (Resolve) "initial ZODB root 'index_html' is broken HTML" Status Resolved, Zope/bug+solution medium To followup, visit: http://collector.zope.org/Zope/644 ============================================================== = Resolve - Entry #2 by Caseman on Apr 29, 2004 5:57 pm Status: Pending => Resolved Appears to be fixed in 2.7 ________________________________________ = Request - Entry #1 by wilm on Oct 27, 2002 11:04 am Problem: The 'index_html' in the root directory of the ZODB is invalid HTML. Solution: Remove standard_hml_header and .._footer from index_html. (Removing the parts from zope_quick_start is a bit more difficult, as it puts styles in the , while the std_header puts only a title there.) Description: The source of index_html: This gives, when viewed: Zope Zope QuickStart ......

Powered by Zope

============================================================== From zope-coders-admin at zope.org Thu Apr 29 18:06:58 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 18:07:02 2004 Subject: [ZCM] [ZC] 584/ 3 Comment "Auto-refresh External Methods" Message-ID: Issue #584 Update (Comment) "Auto-refresh External Methods" Status Rejected, Zope/feature+solution medium To followup, visit: http://collector.zope.org/Zope/584 ============================================================== = Comment - Entry #3 by Caseman on Apr 29, 2004 6:06 pm Actually ext. methods already refresh on each request if you run Zope in debug mode. ________________________________________ = Reject - Entry #2 by mcdonc on Apr 29, 2004 5:26 pm Status: Pending => Rejected Sorry, I'm going to reject this one because: 1. No one has wanted to do this for two years. 2. Refresh has given me grief in the past and I wouldn't want us to add more grief. ________________________________________ = Request - Entry #1 by Anonymous User on Sep 23, 2002 11:56 am Could the small hack described at www.zope.org/Members/madcow/ExtMethodRefresh be incorporated into Zope? This allows one to set individual External Methods to refresh themselves automatically, which is helpful if you're in the process of developing them. (They currently do this when Zope is started debug mode, but this modification allows it to be set for individual methods, rather than all or nothing.) ============================================================== From zope-coders-admin at zope.org Thu Apr 29 18:08:22 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 18:08:26 2004 Subject: [ZCM] [ZC] 553/ 5 Comment "sporadic Zope crashes" Message-ID: Issue #553 Update (Comment) "sporadic Zope crashes" Status Accepted, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/553 ============================================================== = Comment - Entry #5 by tim_one on Apr 29, 2004 6:08 pm This is fixed on Zope-2_7-branch now. doc/CHANGES.txt rev 1.625.2.137 lib/python/BTrees/BucketTemplate.c rev 1.54.4.1 lib/python/BTrees/tests/testConflict.py rev 1.16.6.1 It's still broken in the 2.6 branch. It's not broken on HEAD (it got fixed there a long time ago, as a happy side effect of backporting ZODB4 code to ZODB HEAD). ________________________________________ = Assign - Entry #4 by tim_one on Apr 29, 2004 3:49 pm Status: Pending => Accepted Supporters added: tim_one Assigned this one to me. ________________________________________ = Resubmit - Entry #3 by tim_one on Apr 29, 2004 3:49 pm Status: Resolved => Pending Reopened Wow! Wish I had known about this one earlier. This particular bug still exists, and Dieter Maurer rediscovered it this year (2004). It can only happen when bucket conflict resolution is handed 3 empty buckets, which is darned hard to do. ________________________________________ = Resolve - Entry #2 by Caseman on Apr 29, 2004 3:38 pm Status: Pending => Resolved Much work has been done on BTrees since this report. If the problem still occurs, please reopen. ________________________________________ = Request - Entry #1 by Anonymous User on Aug 30, 2002 11:47 am I'm doing stress tests of my Application from time to time to check for memory leaks and such. There it sometimes happens, that Zope crashes with an illegal memory access exception. Some debugging showed, that the problem is in BTrees/BucketTemplate.c in _bucket__p_resolveConflict: > _bucket__p_resolveConflict(PyObject *ob_type, PyObject *s[3]) > { > PyObject *r=0, *a; > Bucket *b[3]; > int i; > > for (i=0; i < 3; i++) > { > ... > } > here is where the exception occured, that should probably be a Py_XDECREF > Py_DECREF(r); ============================================================== From zope-coders-admin at zope.org Thu Apr 29 18:19:48 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 18:19:52 2004 Subject: [ZCM] [ZC] 1003/ 4 Reject "Overlong HTTP headers handled badly" Message-ID: Issue #1003 Update (Reject) "Overlong HTTP headers handled badly" Status Rejected, Zope/bug critical To followup, visit: http://collector.zope.org/Zope/1003 ============================================================== = Reject - Entry #4 by mcdonc on Apr 29, 2004 6:19 pm Status: Pending => Rejected Rejecting, here's the rationale: slinkP: errr... if I follow Jamie's suggestion, he thinks there's no bug for 1003, right? i dont think it's a bug either. if someone sends an 8000-character query string, it can only be a mistake or a DOS attempt, replying to them with a 500 just consumes more bandwidth and time. Jamie, if you have a good argument to the contrary, please let me know and I will reopen. ________________________________________ = Comment - Entry #3 by leper on Dec 2, 2003 4:24 am Upon further investigation this issue is actually more interesting than I initially thought. The fix for 606 was rather naive, at the time I thought Brian had added a per-header 8KB limit like Apache's LimitRequestFieldsize, but thats not what he did. The limit is 8K of data *total* prior to the CRLF CRLF sequence that delimits a request's headers and its body (if it has one). That limit, while seemingly small, seems to be working OK for most folks or I'd imagine we'd be hearing a lot more complaints. It also debunks my theory that ZServer stored unlimited headers in memory until it hit an rlimit, paradoxically making ZServer marginally safer than I'd initially given it credit for. Go figure. Nevertheless Andreas is right in that the handling of this error isn't very friendly. ________________________________________ = Comment - Entry #2 by leper on Aug 1, 2003 6:31 pm Why is this critical? I agree its a silly situation, but the simple truth is ZServer does not offer an internet-quality HTTP service. Requests handled by ZServer must be sanitized by a proxy server first, for safety. If you ask me, its critical the lack of documentation about this be addressed before 2.7 is released. ________________________________________ = Request - Entry #1 by ajung on Aug 1, 2003 6:46 am Sending a GET request with a very long query string (several thousands characters) raises: 2003-08-01T12:41:33 ERROR(200) ZServer uncaptured python exception, closing channel (exceptions.ValueError:HTTP headers invalid (too long) [/develop/sandboxes/bpe2-head/ZServer/medusa/asyncore.py|poll|94] [/develop/sandboxes/bpe2-head/ZServer/medusa/asyncore.py|handle_read_event|395] [/develop/sandboxes/bpe2-head/ZServer/medusa/asynchat.py|handle_read|142] [/develop/sandboxes/bpe2-head/ZServer/HTTPServer.py|collect_incoming_data|351]) Instead of replying with a proper HTTP return code (500 at least), Zope just closes the connection. ============================================================== From zope-coders-admin at zope.org Thu Apr 29 18:35:49 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 18:35:52 2004 Subject: [ZCM] [ZC] 724/ 3 Resolve "Redirecting (etc.) pages are cached" Message-ID: Issue #724 Update (Resolve) "Redirecting (etc.) pages are cached" Status Resolved, Zope/bug critical To followup, visit: http://collector.zope.org/Zope/724 ============================================================== = Resolve - Entry #3 by mcdonc on Apr 29, 2004 6:35 pm Status: Pending => Resolved This was fixed by Paul as an addition to the HurtSys documentation basically stating "don't do that". ;-) ________________________________________ = Comment - Entry #2 by astaubo on Dec 13, 2002 10:01 am 2.6.0-linux2-x86, sorry. ________________________________________ = Request - Entry #1 by astaubo on Dec 13, 2002 10:00 am Pages which are associated with a RAM Cache Manager are cached even when they return a redirection header (301, 302) or an error header. This means that if you have a page like this: El redirecto! page here then the first cache miss will return to the user: HTTP/1.1 302 Moved Temporarily Date: Fri, 13 Dec 2002 14:49:53 GMT Location: ... El redirecto! and subsequent cache hits will return: HTTP/1.1 200 OK Date: Fri, 13 Dec 2002 14:49:53 GMT El redirecto! In short, Zope's RAM Cache Manager should not cache pages that redirect or return errors. ============================================================== From zope-coders-admin at zope.org Thu Apr 29 18:43:57 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 18:44:01 2004 Subject: [ZCM] [ZC] 789/ 4 Comment "Zope's transaction behaviour flawed" Message-ID: Issue #789 Update (Comment) "Zope's transaction behaviour flawed" Status Pending, Zope/bug critical To followup, visit: http://collector.zope.org/Zope/789 ============================================================== = Comment - Entry #4 by d.maurer on Apr 29, 2004 6:43 pm Toby convinced me ("zope-dev" discussion) that the correct behaviour would be to abort the transaction after error handling (thus doing error handling in the same transaction as the request). Currently, at the start of error handling, "get_transaction().begin()" is called, effectivle aborting the transaction, the request has been running in. This is bad as people expecting to find information in the SESSION are mislead. I do not understand why implementing the correct behaviour would break application that "clear ... data themselves at transaction boundaries". I can see that application will break that perform a commit in the error handling -- but that should be rare... ________________________________________ = Comment - Entry #3 by mcdonc on Apr 29, 2004 12:09 pm Michael Dunstan also compiled some notes and fixes for this... see http://mail.zope.org/pipermail/zope-dev/2004-April/022727.html ________________________________________ = Comment - Entry #2 by stevea on Feb 2, 2003 12:14 pm I'm currently implementing similar behaviour for zope 3. However, introducing this behaviour in zope2 could break applications that themselves clear cached or computed data on transaction boundaries. This data would not be available for the error page. I think ZPatterns applications sometimes rely on the current behaviour, so this change would break certain zpatterns applications. ________________________________________ = Request - Entry #1 by d.maurer on Feb 2, 2003 10:39 am Zope's current transaction behaviour is essentially: ## request starts transaction.begin() try: object= REQUEST.traverse(...) mapply(object,...) transaction.commit() except: transaction.abort() handle_error() ## request ends This is flawed as error handling is done outside of a transaction. Potential changes during the error handling spill over uncontrolled into another request and are there either committed or aborted as part of this request. Andrew Athan () has had lots of serious inconsistencies in Zope's session data. After extensive analysis, he found out that reading the session data during error handling led to these error conditions (reading session data causes writes to the administrative data). I suggest, we let Zope perform error handling in its own transaction after the original transaction had been aborted. When error handling succeeds, its transaction is committed, otherwise aborted. The new behaviour would look something like this: ## request starts transaction.begin() try: object= REQUEST.traverse(...) mapply(object,...) transaction.commit() except: transaction.abort() transaction.begin() transaction.note('%s (application error handling)' % '/'.join(object.getPhysicalPath) ) try: handle_error() transaction.commit() except: default_handle_error() # Zope's default error handling # it should not have side effects # and is executed inside the # error handling transaction transaction.abort() ## request ends --- See discussion in "zope-dev". ============================================================== From zope-coders-admin at zope.org Thu Apr 29 18:51:55 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 18:51:59 2004 Subject: [ZCM] [ZC] 1199/ 3 Comment "FileUpload not iterable" Message-ID: Issue #1199 Update (Comment) "FileUpload not iterable" Status Pending, Zope/bug+solution medium To followup, visit: http://zope.org/Collectors/Zope/1199 ============================================================== = Comment - Entry #3 by LRA on Apr 29, 2004 6:51 pm Uploaded: "bug-1199-wo-braindamage.diff" - http://zope.org/Collectors/Zope/1199/bug-1199-wo-braindamage.diff/view previous patch had a hard to spot braindamage (missing comma between two strings. Even Python didn't complain because it's a valid string syntax) ________________________________________ = Comment - Entry #2 by LRA on Apr 29, 2004 5:16 pm Uploaded: "bug-1199.diff" - http://zope.org/Collectors/Zope/1199/bug-1199.diff/view here's a patch based on discussions at 2004-04-29 bugday ________________________________________ = Request - Entry #1 by LRA on Jan 20, 2004 11:57 pm ZPublisher.HTTPRequest.FileUpload class does not implement the iterable interface regular files do, so it can't be used in places where a file object is assumed to be an iterable, like csv.reader(), for instance. I think fixing this is as easy as implementing an __iter__ method that returns 'self' and a .next() method as an alias for .readline() in the FileUpload class ============================================================== From zope-coders-admin at zope.org Thu Apr 29 18:54:40 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 18:54:43 2004 Subject: [ZCM] [ZC] 553/ 6 Resolve "sporadic Zope crashes" Message-ID: Issue #553 Update (Resolve) "sporadic Zope crashes" Status Resolved, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/553 ============================================================== = Resolve - Entry #6 by tim_one on Apr 29, 2004 6:54 pm Status: Accepted => Resolved Also fixed on Zope-2_6-branch now, so closing as Resolved: doc/CHANGES.txt rev 1.535.2.180 lib/python/BTrees/BucketTemplate.c rev 1.47.10.5 lib/python/BTrees/tests/testConflict.py rev 1.13.6.6 ________________________________________ = Comment - Entry #5 by tim_one on Apr 29, 2004 6:08 pm This is fixed on Zope-2_7-branch now. doc/CHANGES.txt rev 1.625.2.137 lib/python/BTrees/BucketTemplate.c rev 1.54.4.1 lib/python/BTrees/tests/testConflict.py rev 1.16.6.1 It's still broken in the 2.6 branch. It's not broken on HEAD (it got fixed there a long time ago, as a happy side effect of backporting ZODB4 code to ZODB HEAD). ________________________________________ = Assign - Entry #4 by tim_one on Apr 29, 2004 3:49 pm Status: Pending => Accepted Supporters added: tim_one Assigned this one to me. ________________________________________ = Resubmit - Entry #3 by tim_one on Apr 29, 2004 3:49 pm Status: Resolved => Pending Reopened Wow! Wish I had known about this one earlier. This particular bug still exists, and Dieter Maurer rediscovered it this year (2004). It can only happen when bucket conflict resolution is handed 3 empty buckets, which is darned hard to do. ________________________________________ = Resolve - Entry #2 by Caseman on Apr 29, 2004 3:38 pm Status: Pending => Resolved Much work has been done on BTrees since this report. If the problem still occurs, please reopen. ________________________________________ = Request - Entry #1 by Anonymous User on Aug 30, 2002 11:47 am I'm doing stress tests of my Application from time to time to check for memory leaks and such. There it sometimes happens, that Zope crashes with an illegal memory access exception. Some debugging showed, that the problem is in BTrees/BucketTemplate.c in _bucket__p_resolveConflict: > _bucket__p_resolveConflict(PyObject *ob_type, PyObject *s[3]) > { > PyObject *r=0, *a; > Bucket *b[3]; > int i; > > for (i=0; i < 3; i++) > { > ... > } > here is where the exception occured, that should probably be a Py_XDECREF > Py_DECREF(r); ============================================================== From zope-coders-admin at zope.org Thu Apr 29 19:23:06 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Thu Apr 29 19:23:10 2004 Subject: [ZCM] [ZC] 1042/ 5 Comment "Zope 2.7 port-base not calculating correctly" Message-ID: Issue #1042 Update (Comment) "Zope 2.7 port-base not calculating correctly" Status Rejected, Zope/bug medium To followup, visit: http://collector.zope.org/Zope/1042 ============================================================== = Comment - Entry #5 by limi on Apr 29, 2004 7:23 pm No problem, I have another parameter to use instead now, so even if it's still braindead, I can live with it. ;) ________________________________________ = Reject - Entry #4 by mcdonc on Apr 29, 2004 5:43 pm Status: Pending => Rejected Wont-fix... (sorry Limi!) ________________________________________ = Comment - Entry #3 by mcdonc on Oct 23, 2003 6:49 pm I'd really prefer that port-base didn't exist at all. If Jim weren't the one that wanted it, I'd just rip it out. ;-) That said, here's how it works: the value you define as "port-base" will be added to the port number you define in each server section. It defaults to 0. If you've got a web server on 8080 and a port-base of 0, the web server will run on 8080. If you've got a web server on 8080 and a port-base of 1, it will run on 8081. I think Jim's reasoning was that he wanted to be able to change the port base from the command line. Maybe we should just take it out of the default config file and make it "Jim's undocumented option". ;-) Relatedly, I think the fact that a zope.conf doesn't need any servers defined but still starts an ftp and web server is wrong. I thought it was right at one point, but I think I'm going to change it so that Zope will start no servers if none are defined. ________________________________________ = Comment - Entry #2 by limi on Sep 8, 2003 8:56 pm Hm, I see now that the behaviour has been changed, this is not a good way of doing it, IMHO. Having to input negative offsets from the value 8000 makes no sense to get something running on port 80. port-base 0 should give you web on 80, ftp on 21 etc. port-base -8000 seems a bit silly, why the magical connection to the number 8000? In any case, this is certain to trip up a lot of current users of Zope in addition to the newbies. If there's a good reason to change it, I'm all ears :) ________________________________________ = Request - Entry #1 by limi on Sep 8, 2003 8:50 pm The port-base directive in zope.conf seems to be a bit confused. I set it up with the instruction: port-base 40000 Which (according to the instructions, and to the way it's always worked in previous zope versions) should give me web on 40080, ftp on 40021 etc. What it ends ut doing is adding the base to the 8080 that exists originally, so it ends up running on port 48080 instead. ============================================================== From zope-coders-admin at zope.org Fri Apr 30 11:14:47 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Fri Apr 30 11:14:57 2004 Subject: [ZCM] [ZC] 1285/ 2 Assign "[Weakness] analysis of Zope startup problems" Message-ID: Issue #1285 Update (Assign) "[Weakness] analysis of Zope startup problems" Status Accepted, Zope/bug medium To followup, visit: http://dev.zope.org/Collectors/Zope/1285 ============================================================== = Assign - Entry #2 by fdrake on Apr 30, 2004 11:14 am Status: Pending => Accepted Supporters added: fdrake Assigned to myself since I've had my hand in startup logging recently. ________________________________________ = Request - Entry #1 by d.maurer on Apr 2, 2004 3:32 am Zope 2.7 delays access to log files until Zope is properly set up. This means: log files cannot be used to analyse startup problems. The official advice to analyse startup problems is to start Zope in the foreground and interpret the console log messages. However, this does *NOT* work when Zope is not running in debug mode. "Zope.Startup.ZopeStarter.setupStartupHandler" expressly suppresses messages to "stderr" when Zope is not running in debug mode. Apparently, we do not have an easy way to analyse startup problems for Zope in production mode. In my view, this is really bad. Please provide a way to control how startup messages should be handled. The best place would be a file (at least for all installations that do not start Zope as root and later switch the effective user). I suggest to always use the standard log file unless told otherwise by an explicit configuration option. ============================================================== From zope-coders-admin at zope.org Fri Apr 30 11:21:34 2004 From: zope-coders-admin at zope.org (Collector: Zope Bugs, Features, and Patches ...) Date: Fri Apr 30 11:21:41 2004 Subject: [ZCM] [ZC] 505/ 4 Assign "ZCTextUndex should not hold a reference to a lexicon" Message-ID: Issue #505 Update (Assign) "ZCTextUndex should not hold a reference to a lexicon" Status Accepted, Zope/bug medium To followup, visit: http://dev.zope.org/Collectors/Zope/505 ============================================================== = Assign - Entry #4 by fdrake on Apr 30, 2004 11:21 am Supporters removed: bwarsaw, jeremy ________________________________________ = Assign - Entry #3 by fdrake on Nov 5, 2003 2:56 pm Supporters removed: gvanrossum (Trying to remove Guido from the list of assignees.) ________________________________________ = Comment - Entry #2 by Caseman on Aug 14, 2002 5:45 pm Partial fix in place. I still need to resolve the deeper reference held in the actual index object that ZCTextIndex delegates to (more fun and games). ________________________________________ = Request - Entry #1 by mj on Aug 6, 2002 1:51 pm Status: Pending => Accepted Supporters added: bwarsaw, Caseman, fdrake, gvanrossum, jeremy, tim_one ZCTextIndex expects the ID for the lexicon to be used to be passed in on creation. It subsequently uses getattr to retrieve this lexicon and stores it in an attribute. If I later on delete the Lexicon from its original place, and replace it with a new type with the same ID, all ZCTextIndexes will still use the old Lexicon they were told to use on creation. Instead, the lexicon_id should be stored, and resolved every time it is needed. Checks such as interface compliance should be moved to this point as well, removing the dependency on the 'caller' attribute in the process. ==============================================================