Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: users

output channels in bric 2.0

 

 

Bricolage users RSS feed   Index | Next | Previous | View Threaded


zdravko.balorda at siix

Oct 13, 2010, 4:28 AM

Post #1 of 12 (1013 views)
Permalink
output channels in bric 2.0

Hi,

our technicians managed to upgrade a test site bricolage
from 1.10.4 to 2.0 version.

But something seems wrong. The output channels got messed up.
When editing some story one can select from all channels from
all sites. Previously (1.10.4) only the output channels associated
to a given site could have been selected for a story. Now, every
channel associated with the Story element are shown in the select list.

I wonder what went wrong?

Regards, Zdravko


david at kineticode

Oct 13, 2010, 6:45 AM

Post #2 of 12 (989 views)
Permalink
Re: output channels in bric 2.0 [In reply to]

Sounds like a bug. Report it?

http://bugs.bricolagecms.org/

David

On Oct 13, 2010, at 7:28 AM, Zdravko Balorda wrote:

>
>
> Hi,
>
> our technicians managed to upgrade a test site bricolage
> from 1.10.4 to 2.0 version.
>
> But something seems wrong. The output channels got messed up.
> When editing some story one can select from all channels from
> all sites. Previously (1.10.4) only the output channels associated
> to a given site could have been selected for a story. Now, every
> channel associated with the Story element are shown in the select list.
>
> I wonder what went wrong?
>
> Regards, Zdravko
>


zdravko.balorda at siix

Oct 13, 2010, 11:01 PM

Post #3 of 12 (989 views)
Permalink
Re: output channels in bric 2.0 [In reply to]

Maybe, it's a bug. But if no one else noticed any problems...
I'll first try to dig into this further.

Regards, Zdravko


David E. Wheeler wrote:
> Sounds like a bug. Report it?
>
> http://bugs.bricolagecms.org/
>
> David
>
> On Oct 13, 2010, at 7:28 AM, Zdravko Balorda wrote:
>
>>
>> Hi,
>>
>> our technicians managed to upgrade a test site bricolage
>> from 1.10.4 to 2.0 version.
>>
>> But something seems wrong. The output channels got messed up.
>> When editing some story one can select from all channels from
>> all sites. Previously (1.10.4) only the output channels associated
>> to a given site could have been selected for a story. Now, every
>> channel associated with the Story element are shown in the select list.
>>
>> I wonder what went wrong?
>>
>> Regards, Zdravko
>>
>
>


zdravko.balorda at siix

Oct 14, 2010, 4:19 AM

Post #4 of 12 (982 views)
Permalink
Re: output channels in bric 2.0 [In reply to]

Actually it is like this:
On a story profile page an ordinary user can delete output channel,
but they cannot add any channel.
Admin users (which was me) can add any channel associated to a Story
element regardless to which site is selected.

This is different than it used to be. Ordinary user could add channels
just like admin, but only from the list of channels associated to a site.

If anyone could confirm that this is how Bric 2.1 behave than I would
report it as a bug.

Regards, Zdravko

David E. Wheeler wrote:
> Sounds like a bug. Report it?
>
> http://bugs.bricolagecms.org/
>
> David
>
> On Oct 13, 2010, at 7:28 AM, Zdravko Balorda wrote:
>
>>
>> Hi,
>>
>> our technicians managed to upgrade a test site bricolage
>> from 1.10.4 to 2.0 version.
>>
>> But something seems wrong. The output channels got messed up.
>> When editing some story one can select from all channels from
>> all sites. Previously (1.10.4) only the output channels associated
>> to a given site could have been selected for a story. Now, every
>> channel associated with the Story element are shown in the select list.
>>
>> I wonder what went wrong?
>>
>> Regards, Zdravko
>>
>
>


david at kineticode

Oct 14, 2010, 8:34 AM

Post #5 of 12 (982 views)
Permalink
Re: output channels in bric 2.0 [In reply to]

Sounds like two issues:

* Does the ordinary user have READ permission to the output channels in the site in question?
* Is the OC selection list inappropriately showing OCs from other sites?

Best,

David

On Oct 14, 2010, at 7:19 AM, Zdravko Balorda wrote:

> Actually it is like this:
> On a story profile page an ordinary user can delete output channel,
> but they cannot add any channel.
> Admin users (which was me) can add any channel associated to a Story
> element regardless to which site is selected.
>
> This is different than it used to be. Ordinary user could add channels
> just like admin, but only from the list of channels associated to a site.
>
> If anyone could confirm that this is how Bric 2.1 behave than I would
> report it as a bug.
>
> Regards, Zdravko
>
> David E. Wheeler wrote:
>> Sounds like a bug. Report it?
>> http://bugs.bricolagecms.org/
>> David
>> On Oct 13, 2010, at 7:28 AM, Zdravko Balorda wrote:
>>>
>>> Hi,
>>>
>>> our technicians managed to upgrade a test site bricolage
>>> from 1.10.4 to 2.0 version.
>>>
>>> But something seems wrong. The output channels got messed up.
>>> When editing some story one can select from all channels from
>>> all sites. Previously (1.10.4) only the output channels associated
>>> to a given site could have been selected for a story. Now, every
>>> channel associated with the Story element are shown in the select list.
>>>
>>> I wonder what went wrong?
>>>
>>> Regards, Zdravko
>>>
>


mattrolf at me

Oct 14, 2010, 5:16 PM

Post #6 of 12 (978 views)
Permalink
Re: output channels in bric 2.0 [In reply to]

Isn't there a "filter by site context" option? Perhaps that got turned off somehow?

-Matt

On Oct 14, 2010, at 7:19 AM, Zdravko Balorda wrote:

> Actually it is like this:
> On a story profile page an ordinary user can delete output channel,
> but they cannot add any channel.
> Admin users (which was me) can add any channel associated to a Story
> element regardless to which site is selected.
>
> This is different than it used to be. Ordinary user could add channels
> just like admin, but only from the list of channels associated to a site.
>
> If anyone could confirm that this is how Bric 2.1 behave than I would
> report it as a bug.
>
> Regards, Zdravko
>
> David E. Wheeler wrote:
>> Sounds like a bug. Report it?
>> http://bugs.bricolagecms.org/
>> David
>> On Oct 13, 2010, at 7:28 AM, Zdravko Balorda wrote:
>>>
>>> Hi,
>>>
>>> our technicians managed to upgrade a test site bricolage
>>> from 1.10.4 to 2.0 version.
>>>
>>> But something seems wrong. The output channels got messed up.
>>> When editing some story one can select from all channels from
>>> all sites. Previously (1.10.4) only the output channels associated
>>> to a given site could have been selected for a story. Now, every
>>> channel associated with the Story element are shown in the select list.
>>>
>>> I wonder what went wrong?
>>>
>>> Regards, Zdravko
>>>
>


zdravko.balorda at siix

Oct 14, 2010, 10:55 PM

Post #7 of 12 (987 views)
Permalink
Re: output channels in bric 2.0 [In reply to]

Hi, Matthew, David!

ALLOW_ALL_SITES_CX = No
if you meant this.
ENABLE_OC_ASSET_ASSOCIATION = Yes


Ordinary users have none permission on All Output channels group.
I have just found out that someone turned to Deny. Well, to start
where we were:
* if All Output channels is set to Read, users get full OC list
* if All Output channels is set to none, users have no OC selection list
they can delete exisiting OC (if there are more than one) but cannot add any

* this is same for Admin as well as for ordinary users

I don't have OC groups other then All OC.

I have a General Editor user group, where general permissons are set for
ordinary users. This is where the Read access to All OC comes from.

This setup didn't change over the upgrade. Except for someone trying
to find a brute force solution...

I wonder perhaps permission granting scheme has changed since 1.10.4
and I didn't catch up.

Regards, Zdravko


Matthew Rolf wrote:
> Isn't there a "filter by site context" option? Perhaps that got turned off somehow?
>
> -Matt
>
> On Oct 14, 2010, at 7:19 AM, Zdravko Balorda wrote:
>
>> Actually it is like this:
>> On a story profile page an ordinary user can delete output channel,
>> but they cannot add any channel.
>> Admin users (which was me) can add any channel associated to a Story
>> element regardless to which site is selected.
>>
>> This is different than it used to be. Ordinary user could add channels
>> just like admin, but only from the list of channels associated to a site.
>>
>> If anyone could confirm that this is how Bric 2.1 behave than I would
>> report it as a bug.
>>
>> Regards, Zdravko
>>
>> David E. Wheeler wrote:
>>> Sounds like a bug. Report it?
>>> http://bugs.bricolagecms.org/
>>> David
>>> On Oct 13, 2010, at 7:28 AM, Zdravko Balorda wrote:
>>>> Hi,
>>>>
>>>> our technicians managed to upgrade a test site bricolage
>>>> from 1.10.4 to 2.0 version.
>>>>
>>>> But something seems wrong. The output channels got messed up.
>>>> When editing some story one can select from all channels from
>>>> all sites. Previously (1.10.4) only the output channels associated
>>>> to a given site could have been selected for a story. Now, every
>>>> channel associated with the Story element are shown in the select list.
>>>>
>>>> I wonder what went wrong?
>>>>
>>>> Regards, Zdravko
>>>>
>
>


zdravko.balorda at siix

Oct 15, 2010, 12:48 AM

Post #8 of 12 (979 views)
Permalink
Re: output channels in bric 2.0 [In reply to]

Hi,
of course:
* admin allways gets full OC list
Regards, Zdravko

Zdravko Balorda wrote:
> Hi, Matthew, David!
>
> ALLOW_ALL_SITES_CX = No
> if you meant this.
> ENABLE_OC_ASSET_ASSOCIATION = Yes
>
>
> Ordinary users have none permission on All Output channels group.
> I have just found out that someone turned to Deny. Well, to start
> where we were:
> * if All Output channels is set to Read, users get full OC list
> * if All Output channels is set to none, users have no OC selection list
> they can delete exisiting OC (if there are more than one) but cannot
> add any
>
> * this is same for Admin as well as for ordinary users
>
> I don't have OC groups other then All OC.
>
> I have a General Editor user group, where general permissons are set for
> ordinary users. This is where the Read access to All OC comes from.
>
> This setup didn't change over the upgrade. Except for someone trying
> to find a brute force solution...
>
> I wonder perhaps permission granting scheme has changed since 1.10.4
> and I didn't catch up.
>
> Regards, Zdravko
>
>
> Matthew Rolf wrote:
>> Isn't there a "filter by site context" option? Perhaps that got
>> turned off somehow?
>>
>> -Matt
>>
>> On Oct 14, 2010, at 7:19 AM, Zdravko Balorda wrote:
>>
>>> Actually it is like this:
>>> On a story profile page an ordinary user can delete output channel,
>>> but they cannot add any channel.
>>> Admin users (which was me) can add any channel associated to a Story
>>> element regardless to which site is selected.
>>>
>>> This is different than it used to be. Ordinary user could add channels
>>> just like admin, but only from the list of channels associated to a
>>> site.
>>>
>>> If anyone could confirm that this is how Bric 2.1 behave than I would
>>> report it as a bug.
>>>
>>> Regards, Zdravko
>>>
>>> David E. Wheeler wrote:
>>>> Sounds like a bug. Report it?
>>>> http://bugs.bricolagecms.org/
>>>> David
>>>> On Oct 13, 2010, at 7:28 AM, Zdravko Balorda wrote:
>>>>> Hi,
>>>>>
>>>>> our technicians managed to upgrade a test site bricolage
>>>>> from 1.10.4 to 2.0 version.
>>>>>
>>>>> But something seems wrong. The output channels got messed up.
>>>>> When editing some story one can select from all channels from
>>>>> all sites. Previously (1.10.4) only the output channels associated
>>>>> to a given site could have been selected for a story. Now, every
>>>>> channel associated with the Story element are shown in the select
>>>>> list.
>>>>>
>>>>> I wonder what went wrong?
>>>>>
>>>>> Regards, Zdravko
>>>>>
>>
>>
>
>


david at kineticode

Oct 15, 2010, 9:20 AM

Post #9 of 12 (974 views)
Permalink
Re: output channels in bric 2.0 [In reply to]

On Oct 14, 2010, at 10:55 PM, Zdravko Balorda wrote:

> Hi, Matthew, David!
>
> ALLOW_ALL_SITES_CX = No
> if you meant this.

Yes.

> ENABLE_OC_ASSET_ASSOCIATION = Yes
>
>
> Ordinary users have none permission on All Output channels group.
> I have just found out that someone turned to Deny. Well, to start
> where we were:
> * if All Output channels is set to Read, users get full OC list
> * if All Output channels is set to none, users have no OC selection list
> they can delete exisiting OC (if there are more than one) but cannot add any
>
> * this is same for Admin as well as for ordinary users

Here's the code that loads the list of output channels:

% my $all_ocs = [.
% grep { ! $curr_ocs->{$_->get_id} && chk_authz($_, READ, 1) }
% $story->get_element_type->get_output_channels
% ];
% if (scalar @$all_ocs) {

That's in comp/widgets/story_prof/list_output_channels.html. ElementType->get_output_channels should return the same list as the list of OCs you see associated with the element type in its profile.

> I don't have OC groups other then All OC.

You'll either need to create one and add the appropriate OCs and grant the user group READ access to them or just grant the user group READ access to All OCs.

> I have a General Editor user group, where general permissons are set for
> ordinary users. This is where the Read access to All OC comes from.

That should be fine.

> This setup didn't change over the upgrade. Except for someone trying
> to find a brute force solution...
>
> I wonder perhaps permission granting scheme has changed since 1.10.4
> and I didn't catch up.

Don't know.

Best,

David


zdravko.balorda at siix

Oct 17, 2010, 10:19 PM

Post #10 of 12 (945 views)
Permalink
Re: output channels in bric 2.0 [In reply to]

Hi,
then I just don't understand why? This is prone to error, since
ataching some OC for a different site is meaningless to a user.
I don't mind making groups for this, but this seems to be a matter
of context rather than a matter of permissions. It used to work
just fine. :)

Regards, Zdravko

David E. Wheeler wrote:
> On Oct 14, 2010, at 10:55 PM, Zdravko Balorda wrote:
>
>> Hi, Matthew, David!
>>
>> ALLOW_ALL_SITES_CX = No
>> if you meant this.
>
> Yes.
>
>> ENABLE_OC_ASSET_ASSOCIATION = Yes
>>
>>
>> Ordinary users have none permission on All Output channels group.
>> I have just found out that someone turned to Deny. Well, to start
>> where we were:
>> * if All Output channels is set to Read, users get full OC list
>> * if All Output channels is set to none, users have no OC selection list
>> they can delete exisiting OC (if there are more than one) but cannot add any
>>
>> * this is same for Admin as well as for ordinary users
>
> Here's the code that loads the list of output channels:
>
> % my $all_ocs = [.
> % grep { ! $curr_ocs->{$_->get_id} && chk_authz($_, READ, 1) }
> % $story->get_element_type->get_output_channels
> % ];
> % if (scalar @$all_ocs) {
>
> That's in comp/widgets/story_prof/list_output_channels.html. ElementType->get_output_channels should return the same list as the list of OCs you see associated with the element type in its profile.
>
>> I don't have OC groups other then All OC.
>
> You'll either need to create one and add the appropriate OCs and grant the user group READ access to them or just grant the user group READ access to All OCs.
>
>> I have a General Editor user group, where general permissons are set for
>> ordinary users. This is where the Read access to All OC comes from.
>
> That should be fine.
>
>> This setup didn't change over the upgrade. Except for someone trying
>> to find a brute force solution...
>>
>> I wonder perhaps permission granting scheme has changed since 1.10.4
>> and I didn't catch up.
>
> Don't know.
>
> Best,
>
> David
>
>
>


david at kineticode

Oct 17, 2010, 10:37 PM

Post #11 of 12 (951 views)
Permalink
Re: output channels in bric 2.0 [In reply to]

On Oct 17, 2010, at 10:19 PM, Zdravko Balorda wrote:

> then I just don't understand why? This is prone to error, since
> ataching some OC for a different site is meaningless to a user.
> I don't mind making groups for this, but this seems to be a matter
> of context rather than a matter of permissions. It used to work
> just fine. :)

It sure sounds like a bug, though I don't see how. It is not the correct or expected behavior.

Best,

David


zdravko.balorda at siix

Oct 17, 2010, 11:55 PM

Post #12 of 12 (948 views)
Permalink
Re: output channels in bric 2.0 [In reply to]

I'll report a bug. I already have a fix, too:

% my $sid = $story->get_site_id;
% my $all_ocs = [.
% grep { $_->get_site_id == $sid && !$curr_ocs->{$_->get_id} && chk_authz($_, READ, 1) }
%# grep { ! $curr_ocs->{$_->get_id} && chk_authz($_, READ, 1) }
% $story->get_element_type->get_output_channels
% ];

in the code from
comp/widgets/story_prof/list_output_channels.html

Regards, Zdravko



David E. Wheeler wrote:
> On Oct 17, 2010, at 10:19 PM, Zdravko Balorda wrote:
>
>> then I just don't understand why? This is prone to error, since
>> ataching some OC for a different site is meaningless to a user.
>> I don't mind making groups for this, but this seems to be a matter
>> of context rather than a matter of permissions. It used to work
>> just fine. :)
>
> It sure sounds like a bug, though I don't see how. It is not the correct or expected behavior.
>
> Best,
>
> David
>
>

Bricolage users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.