[7.450][BUG][FIXED] incorrect msg when trying to delete a used cert

I changed the name of my test Astaro, but forgot to correct the information in the SSL configurations.  That caused me to not be able to connect via SSLVPN, so I wanted to correct the 'Override hostname' in 'Site-to-Site' (StS) and 'Remote Access' (RA).

I changed the hostname entries, then changed from 'Local X509 Cert' in both StS and RA.  When I tried to delete the current 'Local X509 Cert', I was told:
Cannot apply changes:
conflicting data types for specified node

I confirmed that the Cert is not is use anywhere.

Cheers - Bob
Parents
  • I changed the name of my test Astaro, but forgot to correct the information in the SSL configurations.  That caused me to not be able to connect via SSLVPN, so I wanted to correct the 'Override hostname' in 'Site-to-Site' (StS) and 'Remote Access' (RA).

    I changed the hostname entries, then changed from 'Local X509 Cert' in both StS and RA.  When I tried to delete the current 'Local X509 Cert', I was told:

    I confirmed that the Cert is not is use anywhere.

    Cheers - Bob


    Did you really change all usages of 'Local X509 Cert'? I can reproduce the error message if I change the certificate for SSL only. It is then still referenced by the other VPN configurations (e.g. IPsec) which causes the error.

    Of course the error message should actually say that instead of the current unhelpful text.
  • This is still a bug, but it's different.

    For some strange reason, this now works correctly.  The only change I made was to switch from running WebAdmin in German to running it in French.  And, I had already changed all but the Cisco Roadwarrior setting.  When I tried to delete the cert, I got a message that it was still used there.

    Apparently, there's an incorrect message for one of the spots checked earlier in the deletion code.

    Cheers - Bob
  • Okay, I've to confess I'm now completely confused about what worked for you and what didn't and when [;)]

    The two issues I have confirmed and noted as bugs:

    * Deleting an object that is in use by a configuration node where it can't be deleted produces a confusing error message
    * Trying to delete an object might produce "still in use" warnings although it isn't used anywhere

    Both are trivial to understand from the code, but not actually trivial to fix.
  • As I said in the original post here, when I tried to delete the Local X509 Cert, I got:
    Cannot apply changes:
    conflicting data types for specified node

    I don't recall now if that was after having received the warning that it was in use, but I think I did not receive the "in use" message first, or I would have seen where to remove it from use.  Perhaps I did see that message but but ignored it because I am accustomed to getting that warning in many places in the Astaro when the item isn't in use anywhere.

  • The two issues I have confirmed and noted as bugs:

    * Deleting an object that is in use by a configuration node where it can't be deleted produces a confusing error message
    * Trying to delete an object might produce "still in use" warnings although it isn't used anywhere

    Both are trivial to understand from the code, but not actually trivial to fix.


    I fixed both of these (Mantis 10506, 10507) for 7.460 (beta 2).

    When trying to delete an object, there are now four cases:
    1. Still in use at a place where it is positively required: You get an error message explaining the details, and it will not be deleted.
    2. Still in use at a place where it can only be deleted when changing something else, too (e.g. disabling a service): You get a confirmation dialogue explaining what would be changed, and you can choose to cancel or confirm these changes as a whole.
    3. Still in use at a place where it can simply be deleted: You get a confirmation dialogue stating where it is still used, and you can choose to cancel or confirm the deletion.
    4. Not in use anywhere: You get a very simple confirmation dialogue.
Reply

  • The two issues I have confirmed and noted as bugs:

    * Deleting an object that is in use by a configuration node where it can't be deleted produces a confusing error message
    * Trying to delete an object might produce "still in use" warnings although it isn't used anywhere

    Both are trivial to understand from the code, but not actually trivial to fix.


    I fixed both of these (Mantis 10506, 10507) for 7.460 (beta 2).

    When trying to delete an object, there are now four cases:
    1. Still in use at a place where it is positively required: You get an error message explaining the details, and it will not be deleted.
    2. Still in use at a place where it can only be deleted when changing something else, too (e.g. disabling a service): You get a confirmation dialogue explaining what would be changed, and you can choose to cancel or confirm these changes as a whole.
    3. Still in use at a place where it can simply be deleted: You get a confirmation dialogue stating where it is still used, and you can choose to cancel or confirm the deletion.
    4. Not in use anywhere: You get a very simple confirmation dialogue.
Children