Skip to main content
RippUSA
New Member
June 27, 2012
Question

Cannot delete web filter override

  • June 27, 2012
  • 9 replies
  • 8642 views
I have a Fortigate 200B running Firmware Version 4.0 MR3 Patch 3. When I try to delete several entries I have made in UTM Profiles\Web Filter\Rating Overrides I get an error " Invalid Lentgh of entry" and cannot delete them. I can still delete some entries just not very specific " longer" entries. I have looked through the CLI handbook to see if there was a way to do it that way but was unsuccessful. How do I delete these unwannted entries when I receive this error??[>:]

    9 replies

    ede_pfau
    SuperUser
    SuperUser
    June 28, 2012
    hi, welcome to the forums. You can try to delete the entries in the CLI:
     config webfilter ftgd-ovrd-user     delete " some&StickyEntry"   end  
    Use quotes around the object' s name even if it doesn' t contain spaces. If that doesn' t help there' s a ' purge' command available...that clears all overrides. To see all commands available just type ' ?' .
    RippUSA
    RippUSAAuthor
    New Member
    June 29, 2012
    Thanks for the quick response. I have a " ?" in the entry itself. When I try to type the CLI command to delete it, the Fortigate returns the cursor and errors out as error code -651. The unit automatically thinks I am asking for help as soon as a type a question mark (?). I was going to try and copy and paste the entry into the delete command on the CLI interface. However, when I double click on the entry in the GUI interface to copy the line, I get an " entry not found" . So maybe it was deleted through the GUI when I tried that way but is somehow caching information back to the screen from somewhere. May have to purge everything and re-enter all the overrides?!
    rwpatterson
    New Member
    June 29, 2012
    Have you tried putting quotes around the name?
    pchechani_FTNT
    Staff
    Staff
    June 29, 2012
    when I double click on the entry in the GUI interface to copy the line, I get an " entry not found" .
    So when you list the entries in CLI, were you able to see that entry.
    ede_pfau
    SuperUser
    SuperUser
    June 30, 2012
    Quotes won' t help you in this case. There' s a secret workaround for it: type ' Ctrl-V' , then ' ?' Psst, don' t tell anybody. Another support case Fortinet will not have to solve.
    RippUSA
    RippUSAAuthor
    New Member
    July 3, 2012
    Thanks ede_pfau I was able to " Cntrl-C" and " Cntrl-V" the actual line in the Web Filter Override and paste it into the CLI. However, when I pasted it in...it removed the " ?" automatically in the linefrom the clipboard. So I even tried copying a question mark from word and tried pasting it in the middle of the line and it will not let me paste a " ?" . Weird. And yes pchechani I put it all in quotes and even tried deleting without the " ?" and I get error code -651. Any other ideas? I have included a shout of the web filter override for all.
    pchechani_FTNT
    Staff
    Staff
    July 3, 2012
    " ?" represents the help. And that is why even when you copy pasting, when " ?" character is there, you see a line break and some related error message displayed. Now what ede_pfau has mentioned is correct, you dont' have to copy paste the complete string, but whereever you have to put " ?" you need to first give command ctrl-v and then type " ?" and then rest of the string. I feel that is little complicated but that is the fastest way to type " ?" on CLI. Other way is you can restore the config after removing those entries. Hope this helps resovling your issue.
    ede_pfau
    SuperUser
    SuperUser
    July 4, 2012
    I wrote ' type Ctrl-V, then ?' and I meant it. This has nothing to do with other uses of Ctrl-V in Windows - we' re on a FGT command line and not in Windows. Typing ' Ctrl-V' immediately before any special character will enter that character literally in the CLI.
    rwpatterson
    New Member
    July 5, 2012
    Can those entries be deleted by number?
    RippUSA
    RippUSAAuthor
    New Member
    July 16, 2012
    No I have tried deleting by number also. Did not work. Nice response ede-pfau...it is responses like that that keep people away from " asking for help" . Obviously " you meant it" ! Anyway, still can' t delete the items. Thanks all for trying.
    ede_pfau
    SuperUser
    SuperUser
    July 16, 2012
    Typing ' Ctrl-V' immediately before any special character will enter that character literally in the CLI.
    C' mmon, that' s the most unambiguous it could ever be. Just wanted to make clear that using Ctrl-V in this context is unrelated to the ' paste' action you mentioned. But I can understand if you' re frustrated by now.