Skip to content

Commit 59b4d77

Browse files
committed
2 parents f42ada4 + a0e3746 commit 59b4d77

File tree

28 files changed

+931
-1220
lines changed

28 files changed

+931
-1220
lines changed

app/alarm/model/src/main/java/org/phoebus/applications/alarm/model/xml/XmlModelReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ private void processPV(final AlarmClientNode parent, final Element node) throws
283283
}
284284

285285

286-
pv.setLatching(XMLUtil.getChildBoolean(node, TAG_LATCHING).orElse(false));
286+
pv.setLatching(XMLUtil.getChildBoolean(node, TAG_LATCHING).orElse(true));
287287
pv.setAnnunciating(XMLUtil.getChildBoolean(node, TAG_ANNUNCIATING).orElse(false));
288288

289289
XMLUtil.getChildString(node, TAG_DESCRIPTION).ifPresent(pv::setDescription);

app/display/representation-javafx/src/main/java/org/csstudio/display/builder/representation/javafx/widgets/ByteMonitorRepresentation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ public void updateChanges()
428428
for (int i = 0; i < N; i++)
429429
{
430430
leds[i].setFill(save_values[i]);
431-
if (save_labels[i] != null)
431+
if (save_labels[i] != null && square_led)
432432
{
433433
// Compare brightness of LED with text.
434434
final double brightness = Brightness.of(save_values[i]);
@@ -448,4 +448,4 @@ public void updateChanges()
448448
}
449449
}
450450
}
451-
}
451+
}

app/logbook/olog/client-es/pom.xml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,10 @@
1010
<artifactId>app-logbook-olog-client-es</artifactId>
1111

1212
<dependencies>
13-
<!-- https://mvnrepository.com/artifact/com.sun.jersey/jersey-core -->
1413
<dependency>
15-
<groupId>com.sun.jersey</groupId>
16-
<artifactId>jersey-core</artifactId>
17-
<version>1.19</version>
18-
</dependency>
19-
<dependency>
20-
<groupId>com.sun.jersey</groupId>
21-
<artifactId>jersey-client</artifactId>
22-
<version>1.19</version>
23-
</dependency>
24-
<!-- https://mvnrepository.com/artifact/com.sun.jersey.contribs/jersey-multipart -->
25-
<dependency>
26-
<groupId>com.sun.jersey.contribs</groupId>
27-
<artifactId>jersey-multipart</artifactId>
28-
<version>1.19</version>
14+
<groupId>jakarta.ws.rs</groupId>
15+
<artifactId>jakarta.ws.rs-api</artifactId>
16+
<version>4.0.0</version>
2917
</dependency>
3018
<dependency>
3119
<groupId>com.fasterxml.jackson.datatype</groupId>

app/logbook/olog/client-es/src/main/java/org/phoebus/applications/logbook/OlogESLogbook.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import org.phoebus.logbook.LogClient;
44
import org.phoebus.logbook.LogFactory;
5-
import org.phoebus.olog.es.api.OlogClient.OlogClientBuilder;
5+
import org.phoebus.olog.es.api.OlogHttpClient;
66
import org.phoebus.security.tokens.SimpleAuthenticationToken;
77

88
import java.util.logging.Level;
@@ -33,7 +33,7 @@ public String getId() {
3333
@Override
3434
public LogClient getLogClient() {
3535
try {
36-
return OlogClientBuilder.serviceURL().create();
36+
return OlogHttpClient.builder().build();
3737
} catch (Exception e) {
3838
logger.log(Level.SEVERE, "Failed to create olog es client", e);
3939
}
@@ -50,8 +50,8 @@ public LogClient getLogClient(Object authToken) {
5050
try {
5151
if (authToken instanceof SimpleAuthenticationToken) {
5252
SimpleAuthenticationToken token = (SimpleAuthenticationToken) authToken;
53-
return OlogClientBuilder.serviceURL().withHTTPAuthentication(true).username(token.getUsername()).password(token.getPassword())
54-
.create();
53+
return OlogHttpClient.builder().username(token.getUsername()).password(token.getPassword())
54+
.build();
5555
} else {
5656
return getLogClient();
5757
}

app/logbook/olog/client-es/src/main/java/org/phoebus/applications/logbook/authentication/OlogServiceAuthenticationProvider.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818

1919
package org.phoebus.applications.logbook.authentication;
2020

21-
import org.phoebus.olog.es.api.OlogClient;
22-
import org.phoebus.olog.es.api.OlogClient.OlogClientBuilder;
21+
import org.phoebus.olog.es.api.OlogHttpClient;
2322
import org.phoebus.security.authorization.ServiceAuthenticationProvider;
2423
import org.phoebus.security.tokens.AuthenticationScope;
2524

@@ -30,12 +29,11 @@ public class OlogServiceAuthenticationProvider implements ServiceAuthenticationP
3029

3130
@Override
3231
public void authenticate(String username, String password){
33-
OlogClient ologClient = OlogClientBuilder.serviceURL().create();
3432
try {
35-
ologClient.authenticate(username, password);
33+
OlogHttpClient.builder().build().authenticate(username, password);
3634
} catch (Exception e) {
3735
Logger.getLogger(OlogServiceAuthenticationProvider.class.getName())
38-
.log(Level.WARNING, "Failed to authenticate user " + username + " against Olog service", e);
36+
.log(Level.WARNING, "Failed to authenticate user " + username + " with logbook service", e);
3937
throw new RuntimeException(e);
4038
}
4139
}

0 commit comments

Comments
 (0)