As detailed in #1195720: Add note to README about backwards compatibility (style plugin -> field) - views_bulk_operations were changed from a style plugin to a views form field.
The default views need to be updated for this to work otherwise the user/%/subuser path returns a 404 error.
Attached patch updates the views.

Comments

marcusx’s picture

Status: Needs review » Reviewed & tested by the community

Patch applied and the view is working correct now.

Don't forget to apply also the save_relation fix or no relation will be created. #1208314: Relation is never saved

roderik’s picture

Status: Reviewed & tested by the community » Needs work

2 notes:

1.) The above works fine with Relation 7.x-1.0-beta3 - but not with the latest -dev version. Be warned.

(I haven't checked which commit broke things, but seeing the description, it's probably http://drupalcode.org/project/relation.git/commit/e8e00ad from yesterday. Maybe boombatower can ask solotandem what needs changing ;) )

2.) I am able to execute VBO operations for which the user does not even have permissions! (For instance, I can add any role to my subusers, using the VBO stuff.)

That's got nothing to do with the subuser module per se... I've seen it happen on another one of my sites as well. I'm just warning people.
(It's probably VBO which is still in alpha state.)

So for now, I just deleted the VBO operations field from the view on my live site. I'm not going to test this any further at the moment. I'd love to hear from someone, if they also/do not see this behavior and are able to do actions 'beyond their privileges'.

roderik’s picture

Title: Change default views to reflect upstream changes to views bulk operations » Change default views to reflect upstream changes to VBO + relation

changing title to reflect why I changed status.

marcusx’s picture

@roderik: What do you mean with

1.) The above works fine with Relation 7.x-1.0-beta3 - but not with the latest -dev version. Be warned.

Maybe it is working again, with the latest version from today. What problems will I need to look out for?

roderik’s picture

The view 'just doesn't work'. I don't remember how the behavior broke / what the error was, sorry.

If you upgrade relation and user/%/subuser is giving a normal page back... you're good :)

eRmigue’s picture

I have this problem when I try to install patch:

[abudhabi]$ patch -p0 < VBO-no-longer-a-style-plugin.patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/sites/all/modules/subuser/subuser.views_default.inc b/sites/all/mo
dules/subuser/subuser.views_default.inc
|index f64d3b0..799db64 100644
|--- a/sites/all/modules/subuser/subuser.views_default.inc
|+++ b/sites/all/modules/subuser/subuser.views_default.inc
--------------------------
File to patch: /sites/all/modules/subuser/subuse
r.module b/sites/all/modules/subuser/subuser.views_defautl.inc
patching file /sites/all/modules/subuser/subuser
.module
Hunk #1 FAILED at 21.
Hunk #2 FAILED at 29.
Hunk #3 FAILED at 59.
Hunk #4 FAILED at 67.
Hunk #5 FAILED at 115.
Hunk #6 FAILED at 137.
Hunk #7 FAILED at 158.
Hunk #8 FAILED at 193.
8 out of 8 hunks FAILED -- saving rejects to file /sites/all/modules/subuser/subuser.module.rej
[abudhabi]$ cat subus
[abudhabi]$ patch -p0 < VBO-no-longer-a-style-plugin.patch

Can you give me any suggestion, please?

boombatower’s picture

Category: bug » task
Status: Needs work » Fixed

It worked with the versions it was released with, therefore this is a task to update. For now I updated the view definition and removed vbo. I think we should try and add back in a submodule, but no need to make it a requirement.

7wonders’s picture

Status: Fixed » Needs review
StatusFileSize
new24.62 KB

Here is a further improved view on the latest dev version.

It relies on the patch here first:
http://drupal.org/node/1213566#comment-6364702

sokrplare’s picture

Status: Needs review » Reviewed & tested by the community

Confirming the patch in #8 is working beautifully for me (also using #1213566-7: Add View/Edit/Delete Functionality).

mattheweigand’s picture

I applied http://drupal.org/node/1213566#comment-6364702 and then tried to apply #8, but 4 out of 4 chunks were rejected. What am I doing wrong?

lauriii’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Closed (won't fix)

We dont use Views anymore.