From nobody Fri Apr 26 21:47:49 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1557755597; cv=none; d=zoho.com; s=zohoarc; b=GYT7BANfi2TMpe9au4VAUunRfsQJcFs+SUiBdIJ4v9BEM4i9fp1URCAiASJ76aunR1+85EqtIL2bcu1V9Gs/w1IrPexrJJlx3Xh5nB1CYdDVVpWSt1j8aZwR9XKcpBKJf7gpW0Uaj62t+tm0b4P/WsuXBm58UFBkg2N+HIvzr6I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557755597; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=VdZVwXZwUIDNG+jrpTWLl3r0+1zD/E++M1vIdUORbHg=; b=V+nvVi8FzdxgN36TGXGfb2lytgPGprJs4aT+xQq+avSteD5L+YLO/afmJMizUllrcVI1R7ZIA2KIj26BlL/c55t1M7eQiftV77g25PCFTmeqogSDiTLmTvrjunfJYO3G+MjAAhyvO8ojJX19kRdTUQsxYJS0PtehJQf2mS+lUWI= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1557755597577926.4875213318969; Mon, 13 May 2019 06:53:17 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 631073084032; Mon, 13 May 2019 13:53:16 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 574B96A48A; Mon, 13 May 2019 13:53:16 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 4DCE618089CC; Mon, 13 May 2019 13:53:16 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4DDrEve025244 for ; Mon, 13 May 2019 09:53:14 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3AC6118668; Mon, 13 May 2019 13:53:14 +0000 (UTC) Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3573B1823E for ; Mon, 13 May 2019 13:53:10 +0000 (UTC) Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 53B12883A2 for ; Mon, 13 May 2019 13:53:01 +0000 (UTC) Received: by mail-wr1-f43.google.com with SMTP id v11so15395044wru.5 for ; Mon, 13 May 2019 06:53:01 -0700 (PDT) Received: from localhost.localdomain ([212.140.138.203]) by smtp.gmail.com with ESMTPSA id 34sm5456970wre.32.2019.05.13.06.52.58 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 May 2019 06:52:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qLQc6uj5iM+nvnxK8fKBqOI2nRh7m98itEEs3yZhmGM=; b=DSG1UKUoRBRLjst3Ifd8+/C9uuhKgk+r61F4PxMU7hBfaiX83U/RsMA7Ur7cmwWiCt r87rPyTRRpB+ACGyIPCWX96rhUZI8R9u9PMalTOY5QibKsmBHvElIRBR8+40NW7X9yGY ZWr5i3GmDq1W0gD/VgFVX/4Lrlz10OFiUwhq0b9f4E4uDhrOwOli5FNLbi/jLvjHKQTa 5jEMqqrMSKizY6rzCfP+8OBCPpufAJxPEFr4kHhEBLZstPApK7FoDm9/29uqDHr5dKkR 9fHoyeRGIBjSPIjf+RllaO+cMk+EW2fhCWPF40ysa8p1CsckhfMC4dGChB8j+HxEWitX gSqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=qLQc6uj5iM+nvnxK8fKBqOI2nRh7m98itEEs3yZhmGM=; b=Xi5Q5VoDBsqi/yN6zYgOBmrFSjh90spG6Ma6ESDNbJHMreWowBwtWym5ooIXxbZODa nf5WYoM4fVqQkHxVAtZwMDDQbge6lEFCeVQWwoGQv6YD4ZVQu8J8E3XUyp9h4QlVg8fY XkpUdE5euuh7szJilvwH7/GCe3mfKW4cSwJR7ntzyVIh0rzOqryMM5ns776zrl9mk33O IZdu2Ep11QkxF6RaphFFUr8UtvHE6FI3WVHBP56/ITmoxQJ1hkC+Tu7HhxNWGt3StNN/ mKVm3afBWhTUVb3IvAPqYykE0O+GX/gThSOzg9baQ/BHZFWmeZeAvLj6b/QWozj3n2LI 7AHw== X-Gm-Message-State: APjAAAXEJrYBfkJ9YpkNMQ5SKmP6eB3w8i1TlEd1hFMlrZk1SURyO6u9 pW1ftwXLBVIhB1yaT+WrPK+OMn4lVUk= X-Google-Smtp-Source: APXvYqyKQnw3YLqBHBousY7qimlNS0L6pWstw43KTx67KmapjseZs8Qv8Ye+8vE5N041X8EhfaYK1w== X-Received: by 2002:adf:fb09:: with SMTP id c9mr15238693wrr.137.1557755579698; Mon, 13 May 2019 06:52:59 -0700 (PDT) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Mon, 13 May 2019 15:52:54 +0200 Message-Id: <20190513135256.15125-2-pbonzini@redhat.com> In-Reply-To: <20190513135256.15125-1-pbonzini@redhat.com> References: <20190513135256.15125-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 13 May 2019 13:53:01 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 13 May 2019 13:53:01 +0000 (UTC) for IP:'209.85.221.43' DOMAIN:'mail-wr1-f43.google.com' HELO:'mail-wr1-f43.google.com' FROM:'paolo.bonzini@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.002 (DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, RCVD_IN_SBL_CSS, SPF_PASS) 209.85.221.43 mail-wr1-f43.google.com 209.85.221.43 mail-wr1-f43.google.com X-RedHat-Possible-Forgery: Paolo Bonzini X-Scanned-By: MIMEDefang 2.78 on 10.5.110.26 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH 1/3] api: anchor all URLs X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Mon, 13 May 2019 13:53:16 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" --- api/urls.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/urls.py b/api/urls.py index 8977acb..f71a5e4 100644 --- a/api/urls.py +++ b/api/urls.py @@ -22,7 +22,7 @@ def _build_urls(base=3DNone, r=3D[]): if cls.name: # API views should handle the authentication explicitly, disab= le # csrf check to simplify client code - r.append(url(cls.name + "/", cls.as_view())) + r.append(url("^" + cls.name + "/", cls.as_view())) else: _build_urls(cls, r) return r @@ -49,9 +49,9 @@ results_router.register('results', rest.SeriesResultsView= Set, base_name=3D'results schema_view =3D get_schema_view(title=3D'API schema') =20 urlpatterns =3D _build_urls() + [ - url(r"v1/", include(router.urls)), - url(r"v1/", include(projects_router.urls)), - url(r"v1/", include(results_router.urls)), + url(r"^v1/", include(router.urls)), + url(r"^v1/", include(projects_router.urls)), + url(r"^v1/", include(results_router.urls)), url(r'^v1/schema/$', schema_view), # Use the base class's handler by default url(r".*", views.APIView.as_view()) --=20 2.21.0 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel