rome
  1. rome
  2. ROME-99

Propono 0.6 MetaWeblogEntry.getAuthor() consistently returns null

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      99

      Description

      I'm using propono 0.6 against blogs.sun.com and it seems that MetaWeblogEntry.getAuthor() consistently
      returns null rather than the entry author.

      1. BaseBlogEntry.java
        4 kB
        Alexis MP
      2. MetaWeblogEntry.java
        4 kB
        Alexis MP

        Activity

        Hide
        Alexis MP added a comment -

        AtomEntry.java seems to populate the "Person" correctly. MetaWeblogEntry.java doesn't.
        Suggested fix:

        BaseBlogEntry.java, line 27:
        > protected Person author = null;

        < protected Person author = new Person();

        MetaWeblogEntry.java, line 48:
        > permalink = (String)entryMap.get("permaLink");
        > categories = new ArrayList();

        < permalink = (String)entryMap.get("permaLink");
        < author.setName( (String)entryMap.get("userid") );
        < author.setEmail( (String)entryMap.get("author") );
        < categories = new ArrayList();

        The fix does the work for what I'm trying to do, but I'm not familiar enough with either Rome or Roller to understand how
        definitive it is (I'm not setting the author's Url property for instance).

        Show
        Alexis MP added a comment - AtomEntry.java seems to populate the "Person" correctly. MetaWeblogEntry.java doesn't. Suggested fix: BaseBlogEntry.java, line 27: > protected Person author = null; < protected Person author = new Person(); MetaWeblogEntry.java, line 48: > permalink = (String)entryMap.get("permaLink"); > categories = new ArrayList(); < permalink = (String)entryMap.get("permaLink"); < author.setName( (String)entryMap.get("userid") ); < author.setEmail( (String)entryMap.get("author") ); < categories = new ArrayList(); The fix does the work for what I'm trying to do, but I'm not familiar enough with either Rome or Roller to understand how definitive it is (I'm not setting the author's Url property for instance).
        Hide
        Alexis MP added a comment -

        Created an attachment (id=19)
        Proposed fix

        Show
        Alexis MP added a comment - Created an attachment (id=19) Proposed fix
        Hide
        Alexis MP added a comment -

        Created an attachment (id=20)
        Proposed fix

        Show
        Alexis MP added a comment - Created an attachment (id=20) Proposed fix
        Hide
        snoopdave added a comment -

        Fixed in CVS

        Show
        snoopdave added a comment - Fixed in CVS

          People

          • Assignee:
            rome-issues
            Reporter:
            Alexis MP
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: