google-code-export / typica

Automatically exported from code.google.com/p/typica
Apache License 2.0
1 stars 1 forks source link

Item.getAttributesMap returns only attribute names #56

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

        Domain d = sdb.createDomain("test");
        Item i = d.getItem("test-id");
        List<ItemAttribute> attrs = new ArrayList<ItemAttribute>();
        attrs.add(new ItemAttribute("attrName1", "value3", true));
        attrs.add(new ItemAttribute("attrName1", "value4", true));
        attrs.add(new ItemAttribute("attrName2", "value1", true));
        attrs.add(new ItemAttribute("attrName2", "value2", true));
        i.putAttributes(attrs);
        Map<String, List<String>> map = i.getAttributesMap(null);
        System.out.println(map);

What is the expected output? What do you see instead?

I would expect:
{attrName1=[value3, value4], attrName2=[value1, value2]}

I see:
{attrName1=[attrName1, attrName1], attrName2=[attrName2, attrName2]}

What version of the product are you using? On what operating system?
Version 1.5.2 on Mac OSX

Original issue reported on code.google.com by Simon.Ef...@gmail.com on 9 Jul 2009 at 6:03

GoogleCodeExporter commented 9 years ago
Entirely correct. I've fixed this in SVN r285.
Sorry this took so long to correct.

Original comment by dkavan...@gmail.com on 13 Oct 2009 at 12:24