cleaned up user authentication

this removes the userDB-exception in the normal
authentication process which affected mostly wiki
and blog which are not required any more. We also
cleaned up translation messages as this function was
not used at all. This is a required step forward
a renovation of the jetty server.
This commit is contained in:
Michael Peter Christen committed 2026-07-11 11:11:06 +02:00
1 parent f2b0f41d84
commit b1380c4a9f
129 files changed
+756 -11295

No files matched your search

+18 -19
View File
@@ -140,25 +140,24 @@ public class WikiCodeTest {
* Test internal link markup processing
*/
@Test
public void testInternalLink() {
WikiCode wc = new WikiCode();
/* Link to another wiki article */
String result = wc.transform("http://wiki:8080", "[[article]]");
assertTrue(result.contains("<a"));
assertTrue(result.contains("href=\"Wiki.html?page=article\""));
/* Renamed link */
result = wc.transform("http://wiki:8080", "[[article|renamed article]]");
assertTrue(result.contains("<a"));
assertTrue(result.contains("href=\"Wiki.html?page=article\""));
assertTrue(result.contains(">renamed article<"));
/* Multiple links on the same line */
result = wc.transform("http://wiki:8080", "[[article1]] [[article2]]");
assertTrue(result.contains("<a"));
assertTrue(result.contains("href=\"Wiki.html?page=article1\""));
assertTrue(result.contains("href=\"Wiki.html?page=article2\""));
public void testRetiredInternalLinkRendersLabelOnly() {
WikiCode wc = new WikiCode();
/* Internal links no longer target the retired local Wiki application. */
String result = wc.transform("http://wiki:8080", "[[article]]");
assertFalse(result.contains("<a"));
assertTrue(result.contains("article"));
/* Renamed link */
result = wc.transform("http://wiki:8080", "[[article|renamed article]]");
assertFalse(result.contains("<a"));
assertTrue(result.contains("renamed article"));
/* Multiple links on the same line */
result = wc.transform("http://wiki:8080", "[[article1]] [[article2]]");
assertFalse(result.contains("<a"));
assertTrue(result.contains("article1"));
assertTrue(result.contains("article2"));
}
/**