[9.201][BUG] The whitelist/blacklist object already exists (Web Filter)

When i add a whitelist/blacklist website to the Filter Action, saving the object but NOT the Filter Action itself, the next time i want to use the same Name, i get the following error:

The whitelist/blacklist object with the name 'MyName' already exists.

But you can't see it with the webadmin (Screenshots).


How can i delete this invisible object? SSH?

Greetz [:P]
Parents
  • Hello teched,

    thanks for answering.
    The affected UTM is for testing only.

    Your solution works great [:O]
    Had some problems at the beginning, because i have to write the commands in RAW mode, with ' and () but now it works like a charm [:P].

    Where can i get some deeper basic knowledge about commandline?


    Here are the instruction for cc newbies like me:
    Remember:
    Direct configuration of Astaro from the shell is unsupported, unless directed to by Astaro Support staff or official documentation.
    For paid licenses, modifications done from the shell without direction or sanction may nullify your support agreement.


    1. SSH to UTM and login with loginuser
    2. su - root
    3. cc
    4. RAW
    5. get_objects_filtered ('$_->{type} eq "domain_regex"')
    Now you should get anything like:


    Calling Confd function get_objects_filtered('$_->{type} eq "domain_regex"')
    result: [
              {
                'autoname' => 0,
                'class' => 'http',
                'data' => {
                            'comment' => 'orphancomment',
                            'domain' => [
                                          'orphandomain.com'
                                        ],
                            'include_subdomains' => 0,
                            'mode' => 'Domain',
                            'name' => 'ORPHANname',
                            'regexps' => [],
                            'restrict_regex' => 1
                          },
                'hidden' => 0,
                'lock' => '',
                'nodel' => '',
                'ref' => 'REF_HttDomOrphanname',
                'type' => 'domain_regex'
              }
            ]
    To delete the orphaned object type:


    1. del_object ('REF_HttDomMyname')
    THANK YOU TECHED!! :-)
Reply
  • Hello teched,

    thanks for answering.
    The affected UTM is for testing only.

    Your solution works great [:O]
    Had some problems at the beginning, because i have to write the commands in RAW mode, with ' and () but now it works like a charm [:P].

    Where can i get some deeper basic knowledge about commandline?


    Here are the instruction for cc newbies like me:
    Remember:
    Direct configuration of Astaro from the shell is unsupported, unless directed to by Astaro Support staff or official documentation.
    For paid licenses, modifications done from the shell without direction or sanction may nullify your support agreement.


    1. SSH to UTM and login with loginuser
    2. su - root
    3. cc
    4. RAW
    5. get_objects_filtered ('$_->{type} eq "domain_regex"')
    Now you should get anything like:


    Calling Confd function get_objects_filtered('$_->{type} eq "domain_regex"')
    result: [
              {
                'autoname' => 0,
                'class' => 'http',
                'data' => {
                            'comment' => 'orphancomment',
                            'domain' => [
                                          'orphandomain.com'
                                        ],
                            'include_subdomains' => 0,
                            'mode' => 'Domain',
                            'name' => 'ORPHANname',
                            'regexps' => [],
                            'restrict_regex' => 1
                          },
                'hidden' => 0,
                'lock' => '',
                'nodel' => '',
                'ref' => 'REF_HttDomOrphanname',
                'type' => 'domain_regex'
              }
            ]
    To delete the orphaned object type:


    1. del_object ('REF_HttDomMyname')
    THANK YOU TECHED!! :-)
Children
No Data