Disable URL redirection (for now)

Signed-off-by: Chetan Sarva <chetan@pixelcop.net>
master
Chetan Sarva 9 years ago
parent d1c8acdbfe
commit 950133b30a
  1. 10
      libresonic-main/pom.xml
  2. 11
      libresonic-main/src/main/java/org/libresonic/player/service/NetworkService.java
  3. 2
      libresonic-main/src/main/resources/org/libresonic/player/i18n/ResourceBundle_en.properties
  4. 4
      libresonic-main/src/main/webapp/WEB-INF/jsp/networkSettings.jsp

@ -279,6 +279,7 @@
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<!-- UPNP / DLNA -->
<dependency> <dependency>
<groupId>org.fourthline.cling</groupId> <groupId>org.fourthline.cling</groupId>
<artifactId>cling-core</artifactId> <artifactId>cling-core</artifactId>
@ -291,10 +292,16 @@
<version>2.0.1</version> <version>2.0.1</version>
</dependency> </dependency>
<dependency>
<groupId>org.seamless</groupId>
<artifactId>seamless-http</artifactId>
<version>1.1.0</version>
</dependency>
<dependency> <dependency>
<groupId>org.seamless</groupId> <groupId>org.seamless</groupId>
<artifactId>seamless-util</artifactId> <artifactId>seamless-util</artifactId>
<version>1.0-alpha2</version> <version>1.1.0</version>
</dependency> </dependency>
<dependency> <dependency>
@ -309,6 +316,7 @@
<version>0.1.2</version> <version>0.1.2</version>
</dependency> </dependency>
<!-- SONOS API / WSDL SUPPORT -->
<dependency> <dependency>
<groupId>org.apache.cxf</groupId> <groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId> <artifactId>cxf-rt-transports-http</artifactId>

@ -100,6 +100,17 @@ public class NetworkService {
* @param test Whether to test that the redirection works. * @param test Whether to test that the redirection works.
*/ */
public synchronized void initUrlRedirection(boolean test) { public synchronized void initUrlRedirection(boolean test) {
if (true) {
// This feature isn't currently supported, since it's a public service of subsonic.org
// Display a warning message for now
boolean enabled = settingsService.isUrlRedirectionEnabled() && settingsService.getUrlRedirectType() == UrlRedirectType.NORMAL;
if (enabled) {
LOG.warn("The URL redirection service is currently not enabled!");
}
return;
}
urlRedirectionStatus.setText("Idle"); urlRedirectionStatus.setText("Idle");
if (urlRedirectionFuture != null) { if (urlRedirectionFuture != null) {
urlRedirectionFuture.cancel(true); urlRedirectionFuture.cancel(true);

@ -427,6 +427,8 @@ networksettings.urlredirectionenabled = Access your server over the Internet usi
networksettings.status = Status: networksettings.status = Status:
networksettings.normalurl = Use networksettings.normalurl = Use
networksettings.customurl = Use custom URL (advanced) networksettings.customurl = Use custom URL (advanced)
networksettings.urlRedirectDisabled = Feature not currently available
# transcodingSettings.jsp # transcodingSettings.jsp
transcodingsettings.name = Name transcodingsettings.name = Name

@ -30,7 +30,7 @@
var custom = $("#urlRedirectTypeCustom").is(":checked"); var custom = $("#urlRedirectTypeCustom").is(":checked");
$("#urlRedirectFrom").prop("disabled", !urlRedirectionEnabled || !normal); $("#urlRedirectFrom").prop("disabled", !urlRedirectionEnabled || !normal);
$("#urlRedirectCustomUrl").prop("disabled", !urlRedirectionEnabled || !custom); $("#urlRedirectCustomUrl").prop("disabled", !urlRedirectionEnabled || !custom);
$("#urlRedirectTypeNormal").prop("disabled", !urlRedirectionEnabled); $("#urlRedirectTypeNormal").prop("disabled", !urlRedirectionEnabled);
$("#urlRedirectTypeCustom").prop("disabled", !urlRedirectionEnabled); $("#urlRedirectTypeCustom").prop("disabled", !urlRedirectionEnabled);
} }
@ -75,7 +75,7 @@
<p> <p>
<form:radiobutton id="urlRedirectTypeNormal" path="urlRedirectType" value="NORMAL" onclick="enableUrlRedirectionFields()"/> <form:radiobutton id="urlRedirectTypeNormal" path="urlRedirectType" value="NORMAL" onclick="enableUrlRedirectionFields()"/>
<label for="urlRedirectTypeNormal"><fmt:message key="networksettings.normalurl"/></label> <label for="urlRedirectTypeNormal"><fmt:message key="networksettings.normalurl"/></label>
http://<form:input id="urlRedirectFrom" path="urlRedirectFrom" size="16" cssStyle="margin-left:0.25em"/>.libresonic.org http://<form:input id="urlRedirectFrom" path="urlRedirectFrom" size="16" cssStyle="margin-left:0.25em"/>.libresonic.org (<fmt:message key="networksettings.urlRedirectDisabled"/>)
</p> </p>
<p> <p>

Loading…
Cancel
Save