From dev-return-16000-archive-asf-public=cust-asf.ponee.io@syncope.apache.org Tue Jul 24 17:48:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 929FC180626 for ; Tue, 24 Jul 2018 17:48:03 +0200 (CEST) Received: (qmail 3338 invoked by uid 500); 24 Jul 2018 15:48:02 -0000 Mailing-List: contact dev-help@syncope.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@syncope.apache.org Delivered-To: mailing list dev@syncope.apache.org Received: (qmail 3327 invoked by uid 99); 24 Jul 2018 15:48:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2018 15:48:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 267E8C00DA for ; Tue, 24 Jul 2018 15:48:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 6K6r26Zp_gyA for ; Tue, 24 Jul 2018 15:48:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 2A4B45F18F for ; Tue, 24 Jul 2018 15:48:01 +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 B5BC0E0D42 for ; Tue, 24 Jul 2018 15:48:00 +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 6FF332774E for ; Tue, 24 Jul 2018 15:48:00 +0000 (UTC) Date: Tue, 24 Jul 2018 15:48:00 +0000 (UTC) From: "Wyllys Ingersoll (JIRA)" To: dev@syncope.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (SYNCOPE-1344) CORE_SCHEME not being updated in enduser.properties MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Wyllys Ingersoll created SYNCOPE-1344: ----------------------------------------- Summary: CORE_SCHEME not being updated in enduser.properties Key: SYNCOPE-1344 URL: https://issues.apache.org/jira/browse/SYNCOPE-1344 Project: Syncope Issue Type: Bug Components: enduser Affects Versions: 2.1.0 Reporter: Wyllys Ingersoll When running syncope-enduser from docker image (2.1.1-SNAPSHOT), the the CO= RE_SCHEME value is not being replaced from the template when creating the /= etc/apache-syncope/enduser.properties file.=C2=A0 The result looks like thi= s: {{enduser.directory=3D/etc/apache-syncope}} {{domain=3DMaster}} {{anonymousUser=3Danonymous}} {{ anonymousKey=3DanonymousKey}} {{ adminUser=3Dadmin}} {{ useGZIPCompression=3Dtrue}} {{ maxUploadFileSizeMB=3D5}} {{scheme=3D${CORE_SCHEME}}} {{ host=3Dsyncope}} {{ port=3D8080}} {{ rootPath=3D/syncope/rest/}} {{captcha=3Dtrue}} {{ xsrf=3Dtrue}} This causes the enduser service to throw exception: {{Caused by: java.net.URISyntaxException: Illegal character in scheme name = at index 0: ${CORE_SCHEME}://syncope:8080//syncope/rest/}} {{ at java.net.URI$Parser.fail(URI.java:2848) ~[?:1.8.0_171]}} {{ at java.net.URI$Parser.checkChars(URI.java:3021) ~[?:1.8.0_171]}} {{ at java.net.URI$Parser.checkChar(URI.java:3031) ~[?:1.8.0_171]}} {{ at java.net.URI$Parser.parse(URI.java:3047) ~[?:1.8.0_171]}} {{ at java.net.URI.(URI.java:588) ~[?:1.8.0_171]}} {{ at java.net.URI.create(URI.java:850) ~[?:1.8.0_171]}} =C2=A0 The enduser.properties file=C2=A0 in /var/lib/tomcat8/webapps/syncope-endus= er/WEB-INF/classes/enduser.properties appears to be=C2=A0correct, but becau= se it refers to /etc/apache-syncope as the "enduser.directory", the app is = pulling the values from the version in /etc/apache-syncope and is failing b= ecause CORE_SCHEME was never substituted from the template to the propertie= s file. =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)