Closed idgserpro closed 7 years ago
I can confirm this. The error does not appear when js is disabled.
When a user is already in the table because he has a local role and you change that the error is a little different but basically the same:
2017-08-04 09:38:32 ERROR Zope.SiteErrorLog 1501832312.640.360503056091 http://localhost:8080/Plone/asd/@@sharing/@@updateSharingInfo
Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module Products.PDBDebugMode.runcall, line 70, in pdb_runcall
Module ZPublisher.Publish, line 48, in call_object
Module plone.app.workflow.browser.sharing, line 611, in updateSharingInfo
Module plone.app.workflow.browser.sharing, line 83, in handle_form
AttributeError: 'SharingView' object has no attribute 'restrictedTraverse'
Again, without ajax it works.
I didn't think about searching in Products.CMFPlone, sorry.
But another question arises... should I always open an issue in Products.CMFPlone instead of specific packages in plone.app.* namespace?
@idgserpro if you know that is about a specific package you can report it there, as a rule of thumb though, you can always report them to cmfplone
Created a minimal Plone with https://github.com/collective/minimalplone4 and pinned to 4.3.14 (so, plone.app.workflow was 2.1.9). Went to http://localhost:12455/Plone/front-page/@@sharing, entered "Re" in input and then "search". I received the following error:
This doesn't happen in http://localhost:12455/Plone/news/@@sharing: instead, "Reviewers" is shown in the table. This error isn't shown to the user interface since it's an AJAX call. Testing with a folderish type (like collective.nitf) works as well.
We didn't test in Plone 5.