Revision a39e5b47 web_client/src/gr/grnet/pithos/web/client/foldertree/Folder.java

b/web_client/src/gr/grnet/pithos/web/client/foldertree/Folder.java
142 142
            inTrash = true;
143 143

  
144 144
        header = response.getHeader("X-Container-Object-Meta");
145
        if (header != null && header.length() > 2) {
146
            String tagStr = header.substring(1, header.length() - 1);
147
            while (tagStr.indexOf(",") > -1) {
148
                String tag = tagStr.substring(2, tagStr.indexOf(",") - 1);
149
                tags.add(tag);
150
                tagStr = tagStr.substring(tagStr.indexOf(",") + 1).trim();
145
        if (header != null && header.length() > 0) {
146
            for (String t : header.split(",")) {
147
                tags.add(t.toLowerCase().trim());
151 148
            }
152
            tags.add(tagStr.substring(2, tagStr.length() - 1));
153 149
        }
154 150

  
155 151
        subfolders.clear(); //This is necessary in case we update a pre-existing Folder so that stale subfolders won't show up

Also available in: Unified diff