You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bloodhound.apache.org by Sathishkumar Duraisamy <be...@gmail.com> on 2013/06/15 19:58:25 UTC

Fine Grained Permission - wiki

Hi all,

By default, when Bloodhound is opened, it lands in page WikiStart. If
we don't give permission for a user for wiki, then it results in
ending up of  "Error: Forbidden WIKI_VIEW privileges are required to
perform this operation on WikiStart. You don't have the required
permissions" Is there any work around to solve this?

So, how we achieve the fine grained permission for the wiki. It helps
in many ways, say secured wiki can be viewed by important person while
general wiki can be viewed by all of the end user.

--
Regards,
Sathishkumar D

Re: Fine Grained Permission - wiki

Posted by Ryan Ollos <ry...@wandisco.com>.
On Sat, Jun 15, 2013 at 11:50 PM, Olemis Lang <ol...@gmail.com> wrote:

> On 6/15/13, Ryan Ollos <ry...@wandisco.com> wrote:
> > On Sat, Jun 15, 2013 at 10:58 AM, Sathishkumar Duraisamy <
> > bewithsathish@gmail.com> wrote:
> >
> >> Hi all,
> >>
> >> By default, when Bloodhound is opened, it lands in page WikiStart. If
> >> we don't give permission for a user for wiki, then it results in
> >> ending up of  "Error: Forbidden WIKI_VIEW privileges are required to
> >> perform this operation on WikiStart. You don't have the required
> >> permissions" Is there any work around to solve this?
> >>
> >
> > Would you like to change the page that you arrive at when navigating to
> the
> > base URL, and have it be, for example, the Dashboard or Ticket page
> rather
> > than the wiki? Or would you like to have it be a wiki page other than
> > WikiStart?
> >
> > For the former, you can set the `[trac] default_handler`. For the latter
> I
> > think a plugin would be required,
>
> Actually just use `[mainnav]` section e.g.
>
> {{{#!ini
>
> [mainnav]
> wiki.label = Home
> wiki.href = /wiki/HomePage
>
> }}}
>
> please see
>
>
> http://trac.edgewall.org/wiki/TracInterfaceCustomization#CustomNavigationEntries
> http://stackoverflow.com/a/17130797/525341
>
> >
> > If setting `default_handler`, please be aware that the component must be
> > enabled. The documentation that is inherited from Trac currently states
> > that the following are allowed: TimelineModule, RoadmapModule,
> > BrowserModule, QueryModule, ReportModule, TicketModule and WikiModule.
> > However, in Bloodhound the RoadmapModule is disabled and replaced by the
> > DashboardModule, and the TicketModule is disabled and replaced by the
> > ProductITicketModule. I've tested DashboardModule and ProductTicketModule
> > as the default_handler and they both work fine.
> >
>
> These subtle differences should be reflected in the docs .


I was reminded of this since the issue was raised again today:
http://markmail.org/message/3kns2jjoycsgh7nr

The issue will be handled in: http://trac.edgewall.org/ticket/11519

Re: Fine Grained Permission - wiki

Posted by Olemis Lang <ol...@gmail.com>.
On 6/15/13, Ryan Ollos <ry...@wandisco.com> wrote:
> On Sat, Jun 15, 2013 at 10:58 AM, Sathishkumar Duraisamy <
> bewithsathish@gmail.com> wrote:
>
>> Hi all,
>>
>> By default, when Bloodhound is opened, it lands in page WikiStart. If
>> we don't give permission for a user for wiki, then it results in
>> ending up of  "Error: Forbidden WIKI_VIEW privileges are required to
>> perform this operation on WikiStart. You don't have the required
>> permissions" Is there any work around to solve this?
>>
>
> Would you like to change the page that you arrive at when navigating to the
> base URL, and have it be, for example, the Dashboard or Ticket page rather
> than the wiki? Or would you like to have it be a wiki page other than
> WikiStart?
>
> For the former, you can set the `[trac] default_handler`. For the latter I
> think a plugin would be required,

Actually just use `[mainnav]` section e.g.

{{{#!ini

[mainnav]
wiki.label = Home
wiki.href = /wiki/HomePage

}}}

please see

http://trac.edgewall.org/wiki/TracInterfaceCustomization#CustomNavigationEntries
http://stackoverflow.com/a/17130797/525341

>
> If setting `default_handler`, please be aware that the component must be
> enabled. The documentation that is inherited from Trac currently states
> that the following are allowed: TimelineModule, RoadmapModule,
> BrowserModule, QueryModule, ReportModule, TicketModule and WikiModule.
> However, in Bloodhound the RoadmapModule is disabled and replaced by the
> DashboardModule, and the TicketModule is disabled and replaced by the
> ProductITicketModule. I've tested DashboardModule and ProductTicketModule
> as the default_handler and they both work fine.
>

These subtle differences should be reflected in the docs .

-- 
Regards,

Olemis.

Re: Fine Grained Permission - wiki

Posted by Ryan Ollos <ry...@wandisco.com>.
On Sat, Jun 15, 2013 at 10:58 AM, Sathishkumar Duraisamy <
bewithsathish@gmail.com> wrote:

> Hi all,
>
> By default, when Bloodhound is opened, it lands in page WikiStart. If
> we don't give permission for a user for wiki, then it results in
> ending up of  "Error: Forbidden WIKI_VIEW privileges are required to
> perform this operation on WikiStart. You don't have the required
> permissions" Is there any work around to solve this?
>

Would you like to change the page that you arrive at when navigating to the
base URL, and have it be, for example, the Dashboard or Ticket page rather
than the wiki? Or would you like to have it be a wiki page other than
WikiStart?

For the former, you can set the `[trac] default_handler`. For the latter I
think a plugin would be required, though I can only imagine that you'd need
to do this if you'd like to have different users land on different pages,
otherwise you could just move the relevant content to WikiStart. Let me
know if the latter is what you want to do, and I will take a closer look,
as its something I've setup in the past but I don't recall the details at
the moment.

If setting `default_handler`, please be aware that the component must be
enabled. The documentation that is inherited from Trac currently states
that the following are allowed: TimelineModule, RoadmapModule,
BrowserModule, QueryModule, ReportModule, TicketModule and WikiModule.
However, in Bloodhound the RoadmapModule is disabled and replaced by the
DashboardModule, and the TicketModule is disabled and replaced by the
ProductITicketModule. I've tested DashboardModule and ProductTicketModule
as the default_handler and they both work fine.


> So, how we achieve the fine grained permission for the wiki. It helps
> in many ways, say secured wiki can be viewed by important person while
> general wiki can be viewed by all of the end user.
>

You'll need to configure FineGrainedPermissions:
https://issues.apache.org/bloodhound/wiki/TracFineGrainedPermissions

The feature works well in my experience. You may find the following plugin
useful:
http://trac-hacks.org/wiki/FineGrainedPageAuthzEditorPlugin
The plugin will eventually be integrated into AccountManagerPlugin and
therefore be provided with Bloodhound, even if we decide not to enable it
by default (and issue which will need to be discussed).

Let me know if you run into trouble, and how it works out for you.

- Ryan