Opened 8 years ago

Closed 7 years ago

# No BUILD_VIEW Action by Default in Trac

### Description

Not all Trac installations have a BUILD_VIEW action. We're running 11.4 at work and can't get it to integrate with Hudson because of this.

### comment:1 Changed 8 years ago by anonymous

BUILD_VIEW is provided by this plugin; did you assign your users (or everybody) the BUILD_VIEW permission, like it says in the instructions on the HudsonTracPlugin page?

I.e. yes, by default nobody can view the builds, and you have to give users explicit permission to do so (this is like the other permissions, though trac does assign anonymous a set of permissions on setup).

### comment:2 follow-up:  3 Changed 8 years ago by anonymous

After installing the plugin I could not see the BUILD_VIEW permission, neither in the Admin/Plugins page nor through "trac-admin ... permission list". I turned on verbose logging, tried restarting my web server, it just won't show up and there's nothing fishy in the logs.

Oh, this was 3.0 on 0.11.4, should it be supported? I also tried 2.0. I'll try installing again on a different Trac instance see if it's only a fluke on one of them.

### comment:3 in reply to:  2 Changed 8 years ago by anonymous

Owner: changed from roadrunner to anonymous new → assigned

After installing the plugin I could not see the BUILD_VIEW permission, neither in the Admin/Plugins page nor through "trac-admin ... permission list". I turned on verbose logging, tried restarting my web server, it just won't show up and there's nothing fishy in the logs.

Something's weird: the permission definitely shows up for me, both in trac-admin as well as in the Admin/Permissions page.

Oh, this was 3.0 on 0.11.4, should it be supported? I also tried 2.0. I'll try installing again on a different Trac instance see if it's only a fluke on one of them.

Assuming you meant 0.3 and 0.2, the permission is new as of 0.3. And the Admin/Plugins page indicated the version of the HudsonTrac plugin was 0.3? And the plugin is enabled?

The only thing I can think of then is that some other plugin is causing issues, though even that seems unlikely. At this point I'll need your help to do some debugging: line 88 of HudsonTracPlugin.py is where the new permission is registered - can you try adding a log statement there to see if get_permission_actions is actually being called?

Lastly, just in case, what version of python are you running?

### comment:4 Changed 8 years ago by roadrunner

Owner: changed from anonymous to roadrunner assigned → new

### comment:5 Changed 7 years ago by roadrunner

Resolution: → worksforme new → closed

There has been no further feedback on this for nearly a year, and I can't reproduce this. Hence closing this ticket. Feel free to re-open if you have more info.

### Modify Ticket

Change Properties