Bug 124902

Summary: Shortcuts stop working if > 50 entered
Product: [Retired] Red Hat Enterprise CMS Reporter: Graham Lally <graham>
Component: APLAWSAssignee: ccm-bugs-list
Status: CLOSED WONTFIX QA Contact: Daniel Berrangé <berrange>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-03 14:33:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Graham Lally 2004-06-01 11:26:59 UTC
Description of problem:

ccm-ldn-shortcuts application uses a c.ad.util.Cache object of size 50
to keep track of URL shortcuts. I think this leads to a problem when
you have more than 50 shortcuts whereby some (whichever get deleted
when new ones get added) no longer work, i.e. they return a 404 (and
the target URL still works fine).

Version-Release number of selected component (if applicable):

Verified in 5.2 and 6.0 Unsure of nightly.

How reproducible:

Consistently, but limited testing due to time taken to enter a
bazillion shortcuts.

Steps to Reproduce:
1. Add shortcut at /shortcuts/admin || /admin/shortcuts
2. GOTO 1 unless ($#shortcuts > 50)
3. Clicky clicky on the oldest shortcuts.
  
Actual results:

404 page referring to the shortcut name (e.g. "/my-shortcut/ not
found", rather than "/target-url/ not found")

Expected results:

Shortcut works, forwards you to intended page.

Additional info: