syncope-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SYNCOPE-1344) CORE_SCHEME not being updated in enduser.properties
Date Tue, 24 Jul 2018 16:00:00 GMT

    [ https://issues.apache.org/jira/browse/SYNCOPE-1344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16554439#comment-16554439
] 

ASF subversion and git services commented on SYNCOPE-1344:
----------------------------------------------------------

Commit 27b9d0725b38b317ea369b24d425b77ceff40379 in syncope's branch refs/heads/2_0_X from
[~ilgrosso]
[ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=27b9d07 ]

[SYNCOPE-1344] dura fix sed fix


> 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: docker
>    Affects Versions: 2.0.10, 2.1.1
>            Reporter: Wyllys Ingersoll
>            Assignee: Francesco Chicchiriccò
>            Priority: Major
>             Fix For: 2.0.10, 2.1.1, 3.0.0
>
>
> When running syncope-enduser from docker image (2.1.1-SNAPSHOT), the the CORE_SCHEME
value is not being replaced from the template when creating the /etc/apache-syncope/enduser.properties
file.  The result looks like this:
> {{enduser.directory=/etc/apache-syncope}}
> {{domain=Master}}
> {{anonymousUser=anonymous}}
> {{ anonymousKey=anonymousKey}}
> {{ adminUser=admin}}
> {{ useGZIPCompression=true}}
> {{ maxUploadFileSizeMB=5}}
> {{scheme=${CORE_SCHEME}}}
> {{ host=syncope}}
> {{ port=8080}}
> {{ rootPath=/syncope/rest/}}
> {{captcha=true}}
> {{ xsrf=true}}
> 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.<init>(URI.java:588) ~[?:1.8.0_171]}}
> {{ at java.net.URI.create(URI.java:850) ~[?:1.8.0_171]}}
>  
> The enduser.properties file  in /var/lib/tomcat8/webapps/syncope-enduser/WEB-INF/classes/enduser.properties
appears to be correct, but because 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 because
CORE_SCHEME was never substituted from the template to the properties file.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message