Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1D954200D3C for ; Tue, 14 Nov 2017 15:20:10 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1C27A160BF4; Tue, 14 Nov 2017 14:20:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 649B11609EF for ; Tue, 14 Nov 2017 15:20:09 +0100 (CET) Received: (qmail 93519 invoked by uid 500); 14 Nov 2017 14:20:08 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 93503 invoked by uid 99); 14 Nov 2017 14:20:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Nov 2017 14:20:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id B220C18072C for ; Tue, 14 Nov 2017 14:20:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ks9z9CWD6eCs for ; Tue, 14 Nov 2017 14:20:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 0623860D5B for ; Tue, 14 Nov 2017 14:20:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 4580FE126D for ; Tue, 14 Nov 2017 14:20:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id B0E0A240E6 for ; Tue, 14 Nov 2017 14:20:00 +0000 (UTC) Date: Tue, 14 Nov 2017 14:20:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-3827) Cave rest service doesn't retrieve the repositories MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 14 Nov 2017 14:20:10 -0000 [ https://issues.apache.org/jira/browse/KARAF-3827?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1625= 1444#comment-16251444 ]=20 ASF GitHub Bot commented on KARAF-3827: --------------------------------------- jbonofre commented on a change in pull request #6: [KARAF-3827] - Fix Cave = rest service doesn't retrieve the repositories URL: https://github.com/apache/karaf-cave/pull/6#discussion_r150844378 =20 =20 ########## File path: server/rest/src/main/java/org/apache/karaf/cave/server/rest/Rep= ository.java ########## @@ -16,21 +16,145 @@ */ package org.apache.karaf.cave.server.rest; =20 +import java.util.ArrayList; +import java.util.List; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; =20 import org.apache.karaf.cave.server.api.CaveRepository; +import org.apache.karaf.util.XmlUtils; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.NodeList; =20 @XmlRootElement(name =3D "cave-repository") +@XmlAccessorType(XmlAccessType.NONE) +@XmlType(name =3D "Repository", propOrder =3D {"name", "increment", "locat= ion", "resources"}) public class Repository { =20 - private final CaveRepository repository; =20 Review comment: How do you access the actual `CaveRepository`=C2=A0now (I don't find the= location) ? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. =20 For queries about this service, please contact Infrastructure at: users@infra.apache.org > Cave rest service doesn't retrieve the repositories > --------------------------------------------------- > > Key: KARAF-3827 > URL: https://issues.apache.org/jira/browse/KARAF-3827 > Project: Karaf > Issue Type: Bug > Components: cave-rest > Reporter: Jean-Baptiste Onofr=C3=A9 > Assignee: Jean-Baptiste Onofr=C3=A9 > Fix For: cave-4.0.1 > > > Even if a repository exists: > {code} > karaf@root()> cave:repositories=20 > Name | Location > -------------------------------------------------------------------------= ---- > my-repository | /home/jbonofre/bin/apache-karaf-4.0.0/data/cave/my-reposi= tory > {code} > accessing the Cave REST API on: > {code} > http://localhost:8181/cave/rest/repositories > {code} > just give: > {code} > > > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)