Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.1
    • Fix Version/s: 5.1
    • Labels:
      None

      Description

      Hello,

      Noticed that bookmarks with the same name in the same folder do not show on the ui. The method from WeblogBookmarkFolder

      public Set getBookmarks()

      { return this.bookmarks; }

      uses a set, but the pojo WeblogBookmark uses this equals/hashcode, ie name and folder. Needs a uniqueness. Only option is to use the id.

      public boolean equals(Object other)

      { if (other == this) return true; if (other instanceof WeblogBookmark != true) return false; WeblogBookmark o = (WeblogBookmark)other; return new EqualsBuilder() .append(getName(), o.getName()) .append(getFolder(), o.getFolder()) .isEquals(); }

      public int hashCode()

      { return new HashCodeBuilder() .append(getName()) .append(getFolder()) .toHashCode(); }

        Activity

        Glen Mazza made changes -
        Component/s User Interface - General [ 12312757 ]
        Component/s Blogroll (Bookmarks) [ 12312746 ]
        Glen Mazza made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 5.1 [ 12317621 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Workflow jira [ 12514663 ] Default workflow, editable Closed status [ 12623597 ]
        Shelan Perera made changes -
        Field Original Value New Value
        Attachment duplicate-bookmark.patch [ 12469821 ]
        Greg Huber created issue -

          People

          • Assignee:
            Roller Unassigned
            Reporter:
            Greg Huber
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development