(SOLVED) ACLs not working since 3.2

Moderator: crythias

Post Reply
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

(SOLVED) ACLs not working since 3.2

Post by bayerex »

Hi all,

Since my upgrade to 3.2.7 from 3.1.6 I can't get my ACLs to work. I want to filter DynamicField_Subproduct based on what queue is selected.

I've read UPGRADING and the manual but it's still not working. Please tell me if I have done something wrong.

Many thanks

Code: Select all

    1 => 'Explorer',
    2 => 'Internet',

##### Reduce available DynamicField_Subproduct values to just "Explorer" when 'Blackboard' queue is selected
$Self->{TicketAcl}->{'Limit Subproduct entries'} = {
   Properties => {
   Queue => {
       Name => ['Blackboard'],
        }
   },

   Possible => {
        Ticket => {
    DynamicField_Subproduct  => ['1'],
        },
   },
};

##### Reduce available DynamicField_Subproduct values to just "Internet" when 'Hardware' queue is selected
$Self->{TicketAcl}->{'Limit Subproduct entries'} = {
   Properties => {
   Queue => {
       Name => ['Hardware'],
        }
   },

   Possible => {
        Ticket => {
    DynamicField_Subproduct  => ['2'],
        },
   },
};
Last edited by bayerex on 12 Jun 2013, 17:59, edited 3 times in total.
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: ACLs not working since 3.2

Post by crythias »

in 3.2, there was a change from key to value, I think..
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

Re: ACLs not working since 3.2

Post by bayerex »

crythias wrote:in 3.2, there was a change from key to value, I think..
I'm not quite sure what you mean by that. Could you expand on that a bit please?
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: ACLs not working since 3.2

Post by crythias »

assuming there is a key => value and you were looking for 1 => name or name => 1, it's likely reversed.

I wish this was clearer.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
wurzel
Znuny guru
Posts: 3234
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: ACLs not working since 3.2

Post by wurzel »

Hi,

in upgrading there is a description of the ACL changes.

Florian
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

Re: ACLs not working since 3.2

Post by bayerex »

wurzel wrote:Hi,

in upgrading there is a description of the ACL changes.

Florian
I hope from my code example and initial description it is clear I have already read it
Last edited by bayerex on 11 Jun 2013, 22:58, edited 1 time in total.
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

Re: ACLs not working since 3.2

Post by bayerex »

crythias wrote:assuming there is a key => value and you were looking for 1 => name or name => 1, it's likely reversed.

I wish this was clearer.
Yeah I do too, because I've now tried it both ways and it's still not working :(

Code: Select all

     'Explorer' => 1,
     'Internet' => 2,

##### Reduce DynamicField_Subproduct values to the 'CONFIRE Blackboard' queue 
$Self->{TicketAcl}->{'Limit Subproduct entries'} = { 
   Properties => { 
   Queue => {
       Name => ['CONFIRE Blackboard'],
        } 
   }, 
 
   Possible => { 
        Ticket => {                         
    DynamicField_Subproduct  => ['1'], 
        }, 
   }, 
};
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
firebolt
Znuny newbie
Posts: 47
Joined: 21 Sep 2012, 07:55
Znuny Version: 5.0.10
Real Name: Игорь (Igor)

Re: ACLs not working since 3.2

Post by firebolt »

Hi! I want to confirm that ACLs really don't work. My config have no change in new version, I compared it with example in 3.2 documentation and found there is no difference. But ACLs just don't work.

Code: Select all

# ticket acl
$Self->{TicketAcl}->{'101-Remove-Close-Button'} = {
    # match properties
    Properties => {
        # current ticket match properties
        Ticket => {
            Queue => ['Дежурный общий', 'Дежурный 1С', 'Дежурный billing', 'Дежурный КУ'],
        }
    },
    # return possible options (white list)
    Possible => {
        # possible ticket options (white list)
        Ticket => {
            State => ['new', 'open', 'назначено', 'в работе', 'выполнено', 'ожидаем'],
        },
        # possible action options
        Action => {
            AgentTicketBounce        => 1,
            AgentTicketClose         => 0,
            AgentTicketCompose       => 1,
            AgentTicketCustomer      => 1,
            AgentTicketForward       => 1,
            AgentTicketFreeText      => 1,
            AgentTicketHistory       => 1,
            AgentTicketLink          => 1,
            AgentTicketLock          => 1,
            AgentTicketMerge         => 1,
            AgentTicketMove          => 1,
            AgentTicketNote          => 1,
            AgentTicketOwner         => 1,
            AgentTicketPending       => 1,
            AgentTicketPhone         => 1, # only used to hide the Split action
            AgentTicketPhoneInbound  => 0,
            AgentTicketPhoneOutbound => 0,
            AgentTicketPrint         => 1,
            AgentTicketPriority      => 1,
            AgentTicketResponsible   => 1,
            AgentTicketWatcher       => 1,
            AgentTicketZoom          => 1,
            AgentLinkObject          => 1, # only used to hide the Link action
        },
    },
};
OTRS 6.0.20, Debian GNU/Linux 9 stretch
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

Re: ACLs not working since 3.2

Post by bayerex »

firebolt wrote:Hi! I want to confirm that ACLs really don't work. My config have no change in new version, I compared it with example in 3.2 documentation and found there is no difference. But ACLs just don't work.
Thank you for confirming the same experience. This is a real show-stopper for us. I cannot migrate 100s of users/customers to a new OTRS if ACLs are not working!

Any solution for this please?
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
firebolt
Znuny newbie
Posts: 47
Joined: 21 Sep 2012, 07:55
Znuny Version: 5.0.10
Real Name: Игорь (Igor)

Re: ACLs not working since 3.2

Post by firebolt »

bayerex wrote: Any solution for this please?
I'm going to upgrade 3.1.10 with disabled ACLs and then turn it on when the upgrading will be completed.
OTRS 6.0.20, Debian GNU/Linux 9 stretch
firebolt
Znuny newbie
Posts: 47
Joined: 21 Sep 2012, 07:55
Znuny Version: 5.0.10
Real Name: Игорь (Igor)

Re: ACLs not working since 3.2

Post by firebolt »

I'm sorry. My ACLs didn't work because of my mistake :oops: Now all is OK.
OTRS 6.0.20, Debian GNU/Linux 9 stretch
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

Re: ACLs not working since 3.2

Post by bayerex »

This is my latest ACL of which the problem is when I select the "Magellan" queue, no values are displayed in my Subproduct dropdown. I'd be very grateful if anyone can tell me if I've done something wrong. Checked Apache and OTRS logs already, there's nothing relevant in there.

Code: Select all

     1 => 'Explorer',
     2 => 'Internet',

##### Reduce DynamicField_Subproduct values to the 'Magellan' queue
$Self->{TicketAcl}->{'Limit Subproduct entries'} = {
   Properties => {
     Queue => {
       Name => ['Magellan'],
        }
   },

   Possible => {
     Ticket => {
       DynamicField_Subproduct  => ['1','2'],
        }
   }
};
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

Re: ACLs not working since 3.2

Post by bayerex »

I must also apologise. I misread the Upgrading doc and made an unnecessary key definition above my ACLs. I understand better now!
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
firebolt
Znuny newbie
Posts: 47
Joined: 21 Sep 2012, 07:55
Znuny Version: 5.0.10
Real Name: Игорь (Igor)

Re: ACLs not working since 3.2

Post by firebolt »

bayerex wrote:I must also apologise. I misread the Upgrading doc and made an unnecessary key definition above my ACLs. I understand better now!
Good for you!
OTRS 6.0.20, Debian GNU/Linux 9 stretch
Post Reply