Skip to content
CAI
Software that uses CAICheck a score

maxcom/lorsource

41.4

Weak · 7 November 2026

32.7k

lines of production code

Scala

with Java, JavaScript

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Account deregistration and profile management pages added

The site now provides a dedicated deregistration page (deregister.jsp) allowing users to permanently delete their account after confirming their password and accepting the irreversible nature of the action. Additionally, new JSP views have been introduced for managing user profiles and settings, including edit-profile.jsp for editing profile details, edit-settings.jsp for configuring display preferences (such as photo visibility and ad blocking), and edit-remark.jsp for adding user notes. These pages are part of a broader effort to modernize the user account lifecycle and profile management interface.

src/main/webapp/WEB-INF/jsp · high confidence

Added EditHistoryObjectTypeEnum to define edit history object types

A new enum, EditHistoryObjectTypeEnum, has been introduced in the edithistory package to explicitly define the types of objects tracked in edit history. This enum currently includes TOPIC and COMMENT, providing a structured way to categorize edit history entries rather than relying on implicit or string-based identifiers.

src/main/java/ru/org/linux/edithistory · high confidence

Added IR\_Black syntax highlighting theme

A new CSS stylesheet for the 'black' theme has been introduced, implementing the IR\_Black color scheme for syntax highlighting. This adds specific color definitions for code elements such as keywords, strings, comments, and numbers, allowing users to view code snippets with this distinct dark-background aesthetic.

src/main/webapp/black · high confidence

Added Maven Wrapper configuration

The project now includes a Maven Wrapper configuration file (.mvn/wrapper/maven-wrapper.properties) that specifies version 3.3.4 of the wrapper and configures it to download Maven 3.9.13 from the Apache Maven repository. This allows users to build the project using a consistent, self-contained Maven version without requiring a pre-installed Maven environment.

.mvn · high confidence

Added Tango syntax highlighting theme

A new CSS file (syntax.css) has been added to the Tango webapp to define syntax highlighting styles for code blocks. The theme uses CSS custom properties (e.g., --syntax-mono-1, --syntax-hue-3) to style various code elements such as comments, keywords, strings, and variables, providing a consistent visual appearance for highlighted code within the application.

src/main/webapp/tango · high confidence

Added TopicLinkBuilder for constructing topic URLs

A new TopicLinkBuilder class has been introduced to handle the construction of topic-related URLs. This component allows for the fluent building of links with various query parameters and fragments, such as page numbers, deleted comment visibility, last modification timestamps, specific comment IDs, and filters. This centralizes the logic for generating topic links, replacing ad-hoc string concatenation or scattered URL building code.

src/main/java/ru/org/linux/topic · high confidence

Added devcontainer configuration for local development

Developers can now use VS Code Dev Containers to start a consistent local development environment. The setup includes a Dockerfile based on Maven 3.9.14 with Eclipse Temurin 25, a docker-compose configuration that provisions PostgreSQL 16 and OpenSearch 3.6.0 services, and an initialization script that automatically creates database users, loads the demo schema, and runs Liquibase migrations. It also pre-configures VS Code with necessary Java, Scala, and Maven extensions.

.devcontainer · high confidence

Added functional transaction demarcation support

Introduced a new \TransactionManagement\ trait in the \org.springframework.scala.transaction.support\ package that enables functional-style transaction handling. This allows users to execute code blocks within a transactional context using a \transactional\ method, which automatically manages the transaction lifecycle and exception handling without requiring explicit boilerplate in the calling code. The implementation supports configuration for propagation behavior, isolation level, read-only status, qualifiers, and timeouts.

src/main/scala/org · high confidence

Introduction of the Waltz theme

A new visual theme named 'Waltz' is now available, defined by a new set of SCSS files in the \src/main/webapp/sass/waltz\ directory. The theme establishes a distinct look and feel by introducing a dedicated color palette (including specific background, text, link, and button colors) and applying custom typography (using 'Open Sans' for headings and 'Arial' for body text). It also includes specific styling for UI components such as news entries, boxlets, and forum tables, utilizing CSS custom properties to manage the color scheme.

src/main/webapp/sass/waltz · high confidence

New AbstractRomeView base class for RSS/Atom feeds

Added a new AbstractRomeView class in the Spring MVC layer to standardize RSS and Atom feed generation. This base view handles feed encoding, content type setting, and output rendering using the Rometools library, allowing subclasses to implement specific feed creation logic while reusing common serialization behavior.

src/main/java/ru/org/linux/spring · high confidence

New JSP tag for rendering post tags with HTML escaping

A new \TagsTag\ component has been added to the site's tag rendering logic. This JSP tag iterates over a list of \TagRef\ objects and generates HTML output for each tag, including a link if a URL is defined or a plain span otherwise. Crucially, it applies HTML escaping to tag names via \StringUtil.escapeHtml\ to prevent injection issues, and optionally includes a delete link for each tag when the \deletable\ flag is set.

src/main/scala/ru/org/linux/site/tags · high confidence

New JSP tag for rendering user profile pictures

A new JSP custom tag, TagUserpic, has been added to the site's tag library. This tag allows templates to render a user's profile picture by outputting a div containing an img element with the user's photo URL, width, and height attributes, sourced from the Userpic object.

src/main/java/ru/org/linux/site/tags · high confidence

New SearchQueueSender component for JMS-based search indexing

A new SearchQueueSender component has been added to the search package to handle search indexing tasks via JMS. It provides methods to schedule re-indexing for specific messages (with or without comments), bulk comment updates, and monthly re-indexing. The component uses two JmsTemplate instances: a standard one for immediate updates and a low-priority one for bulk monthly operations, ensuring that search index updates are decoupled from the main application flow.

lor · high confidence

New Zomg Ponies theme with CSS custom properties

A new 'Zomg Ponies' visual theme has been added to the web application. The theme defines its color palette and layout styles using CSS custom properties (variables) scoped to the :root element, allowing for consistent styling across components like the header, articles, tables, and syntax highlighting. The theme includes specific styling for the main background, navigation, and notification badges, and is wired up via a new main.scss entry point that imports the color definitions, reset, common styles, and theme-specific styles.

_src/main/webapp/sass/zomg\ponies · high confidence

New automated Telegram posting for hot topics

The site now automatically posts selected 'hot' topics to the Telegram channel @best\_of\_lor. A new scheduled component scans for topics with significant recent engagement (at least 15 distinct active users and a score of 100+ within the last 5 hours) that are not marked as 'notop', 'draft', or deleted, and have no more than the configured maximum open warnings. These posts include the topic title, tags, and a link. The system also handles cleanup by deleting Telegram messages if the corresponding topic is deleted, marked as 'notop', or exceeds the warning threshold. Posts are sent via the Telegram Bot API with a retry mechanism that falls back to an HTTP proxy if the direct connection fails.

src/main/scala/ru/org/linux/telegram · high confidence

A new GalleryBoxlet controller has been added to the site, exposing the /gallery.boxlet endpoint to render a view of recent gallery items. It retrieves a limited set of items (3) via the ImageService and passes them to the boxlets/gallery template for display.

src/main/java/ru/org/linux/gallery · high confidence

New help page controller with Markdown rendering

A new HelpController has been added to serve help pages located in the /help directory. It maps URL paths like /help/{page} to specific Markdown files (lorcode.md, markdown.md, rules.md) and renders them into HTML using the MarkdownFormatter service, returning a 404 response for unknown pages.

src/main/scala/ru/org/linux/help · high confidence

New markup preview endpoint and centralized rendering service

Users can now preview formatted content via a new JSON API at /markup/preview, which validates the requested markup type against their permissions and returns the rendered HTML. This change introduces a centralized MessageTextService that handles rendering for Markdown, Lorcode, and HTML (sanitized via Jsoup), ensuring consistent output across comments, topics, and RSS feeds, while also standardizing how plain text is extracted and how mentions are detected.

src/main/scala/ru/org/linux/markup · high confidence

New reaction management and viewing controllers

Added Scala-based controllers for managing and viewing user reactions. ReactionController handles adding and removing reactions on topics and comments via both standard HTTP requests and AJAX endpoints, including rate-limiting for rapid interactions. UserReactionsController provides a dedicated page for users to view their own reaction history or, for moderators, other users' reactions, supporting pagination and a specific 'reactions on me' view mode.

src/main/scala/ru/org/linux/reaction · high confidence

New theme and API response model classes introduced

The site now includes new Java model classes to support theme management and API responses. The Theme class defines available visual themes (including tango, tango-light, tango-auto, black, white2, waltz, and zomg\_ponies) with support for deprecation flags, while the Template class provides JSP-accessible helpers to retrieve the current user's theme and formatting settings. Additionally, the ApiDeleteInfo class was added to structure deletion information returned by the API, containing the user's nickname and the reason for deletion.

src/main/java/ru/org/linux/site · high confidence

New warning notification system for topics and comments

Users can now issue warnings to other users for rule violations, incorrect tags, spelling errors, or incorrect group/topic assignments. Moderators and correctors receive notifications for these warnings, and the system enforces a limit of five warnings per hour per user to prevent abuse. Warnings are displayed under the relevant topic or comment, and moderators can close them to mark them as resolved.

src/main/scala/ru/org/linux/warning · high confidence

Tango theme now supports automatic and manual dark mode

The Tango skin now includes a new 'auto' theme variant that automatically switches between light and dark modes based on the user's system preference, as well as explicit light and dark variants. This is achieved by introducing CSS custom properties for colors in \_colors.scss and separate entry points (auto.scss, dark.scss, light.scss) that apply the appropriate color scheme. Users can now enjoy a dark interface that respects their OS settings or manually select their preferred theme, improving readability and visual comfort.

src/main/webapp/sass/tango · high confidence

Tomcat deployment with virtual threads and systemd hardening

The deployment now includes a dedicated Tomcat configuration (server.xml) and systemd unit file (tomcat-opt.service). The server configuration enables virtual threads via a StandardVirtualThreadExecutor and configures connectors for HTTP (port 8080) and HTTPS (port 8444) with specific proxy and security settings. The systemd unit ensures Tomcat starts after PostgreSQL and applies strict security hardening measures, including read-only file system protection, restricted capabilities, and private temporary directories.

deploy · high confidence

Security

Security hardening and URL parsing improvements

This update introduces several security and reliability improvements to the site's utility layer. A new BinderControllerAdvice enforces a strict denylist on Spring data binding to prevent mass-assignment vulnerabilities. URL handling has been overhauled with the introduction of LorURI and LorURL, which replace the deprecated commons-httpclient library with a lenient java.net.URI parser to better handle malformed links and improve robustness. Additionally, password generation now uses SecureRandom for better cryptographic strength, and activation/reset codes have been upgraded from MD5 to SHA-256 with backward-compatible verification to address known hash collision weaknesses.

src/main/java/ru/org/linux/util · high confidence

Architecture

Introduction of Liquibase for database schema management

The SQL layer now uses Liquibase to manage database schema changes, replacing ad-hoc SQL scripts with a structured migration approach. This change introduces the Liquibase configuration files (liquibase.config, main.xml) and a .gitignore rule to exclude the production Liquibase config, establishing a new standard for applying and tracking database updates.

sql · high confidence

Refactored LORCODE parser into a node-based tree structure

The LORCODE parsing engine has been restructured from a flat processing model into a hierarchical node tree, introducing new classes in the \ru.org.linux.util.bbcode.nodes\ package. \Node\ serves as the base for the tree, while \RootNode\ centralizes parsing context (such as RSS mode, nofollow settings, and cut options) and manages user replier tracking. \TagNode\ handles specific BBCode tags by delegating rendering to their definitions, and \TextNode\/\TextCodeNode\ manage text content, ensuring proper HTML escaping and auto-linking. This change enables more robust handling of nested tags, consistent rendering across HTML/BBCode/OpenGraph outputs, and better separation of parsing logic from rendering concerns.

src/main/java/ru/org/linux/util/bbcode/nodes · high confidence

Refactoring of JavaScript into modular components

The monolithic \lor.js\ file has been split into distinct, loadable modules within the \src/main/webapp/js/lor/\ directory, including \ads.js\, \disabled-btn.js\, \forms.js\, \images.js\, \memories.js\, \navigation.js\, \notifications.js\, \reactions.js\, \spoilers.js\, \theme.js\, and \timezone.js\. This modularization organizes specific client-side behaviors—such as AJAX-based notification handling, theme switching, and reaction management—into separate files that are combined during the build process, improving code maintainability without changing the user-facing functionality.

src/main/webapp/js/lor · high confidence

Behavioural changes

14 commits (1 fix) modifying src/main/webapp/tango/img

A change to existing behaviour in src/main/webapp/tango/img — 14 commits (1 fix), 43 files: “замена "Коммерческого ПО" на "Проприетарное ПО"”; “новый логотип для "Линукс в России" от klogg4”; “run optipng on png images”; and 11 more (refs \#1056).

src/main/webapp/tango/img · medium confidence · unverified

2 commits (0 fixes) modifying src/main/scala/ru/org/linux/csrf

A change to existing behaviour in src/main/scala/ru/org/linux/csrf — 2 commits, 3 files: “замена собственной CSRF-защиты на Spring Security CsrfFilter”; “перевод CSRFProtectionService на Scala”.

src/main/scala/ru/org/linux/csrf · medium confidence · unverified

4 commits (0 fixes) modifying src/main/scala/ru/org/linux/admin

A change to existing behaviour in src/main/scala/ru/org/linux/admin — 4 commits, 2 files: “оптимизация b\_ips: кеш IpBlockService для getBlockInfo и батч-запись TOR-обновления”; “валидация IP и экранирование вывода в /delip.jsp (XSS)”; “code cleanup”; and 1 more.

src/main/scala/ru/org/linux/admin · medium confidence · unverified

Add static 502 error page

A new static HTML page (502.html) is now served for 502 Bad Gateway errors, replacing the previous dynamic JSP-based error handling. This page includes localized error messages in Russian and English, a consistent site header and footer, and links to the forum rules (now referencing rules.md instead of rules.jsp).

src/main/webapp/qrerror · high confidence

Authentication and security subsystem migrated to Scala

The authentication and security components in the auth package have been rewritten in Scala, introducing several behavioral and security improvements. Login handling now uses a Caffeine-based cache to atomically gate concurrent login attempts, requiring CAPTCHA for parallel requests from the same IP or username to prevent race conditions. Password hashing has shifted to BCrypt with a legacy Jasypt fallback, and long passwords are now safely truncated to the 72-byte BCrypt limit rather than causing errors. Session management now clears CSRF and session cookies on logout and actively closes WebSocket connections for the user upon logout or password change. Security headers, including Content Security Policy and HTTP Strict Transport Security, are now enforced via interceptors, and image access (gallery and userpics) is strictly gated by topic and user permissions.

src/main/scala/ru/org/linux/auth · high confidence

Black theme header layout and navigation updated

The black theme's header has been restructured with new JSP templates (head-main.jsp and head.jsp) that introduce a mobile-friendly viewport meta tag and update the copyright year to 2026. The navigation menu now includes a link to the 'Articles' section (/articles/) and reflects the server page URL change to '/about'. Additionally, the header layout has been cleaned up by removing floating elements and replacing inline image attributes with CSS classes for better styling.

src/main/webapp/WEB-INF/jsp/black · high confidence

Centralized exception handling with improved error reporting and security

The application now uses a custom ExceptionResolver to standardize how errors are handled and displayed. Unexpected server errors are logged and reported via email, while specific exceptions like invalid request parameters or script errors are handled gracefully without exposing sensitive internal details to the user. This change ensures that error pages return the correct HTTP status codes (e.g., 400 for bad requests, 500 for internal errors) and prevents information leakage by hiding exception class names and stack traces from the end-user interface.

src/main/java/ru/org/linux/exception · high confidence

Database schema migrations and permission updates

This update applies a series of Liquibase database migrations that modify the schema and permissions. Key changes include renaming the poll tables (votenames to polls, votes to polls\_variants), adding a scroll\_mode column to sections, and introducing a user\_tags table to support favorite and ignored tags. The system now tracks comment edits via new columns in the edit\_info table and stores image metadata in a dedicated images table. Security and access controls are updated with the creation of a persistent\_logins table for session management, new grants for wiki and tag operations, and the removal of the groups.stat4 column. Performance is improved through several new indexes on topics, memories, and vote\_users, alongside optimizations to the stat\_update functions.

sql/updates · high confidence

Email notifications now include login alerts and use HTTPS

Users will now receive an email notification when a new login occurs on their account, enhancing account security awareness. Additionally, all email templates and links have been migrated to use HTTPS, ensuring secure communication channels for registration, password reset, and activation processes.

src/main/scala/ru/org/linux/email · high confidence

Enhanced authentication security and session management

The authentication module now enforces SHA-256 signatures for remember-me cookies, rejecting older MD5-based tokens to improve security. A new custom remember-me service introduces a token generation counter, allowing users to invalidate all active sessions simultaneously. Additionally, the system now includes a dedicated entry point for handling unauthenticated access and a user details implementation that integrates user profiles and account status checks.

src/main/java/ru/org/linux/auth · high confidence

Error pages moved to dedicated errors directory with consistent styling and XSS fixes

Error pages (403, 404, 410, bad-parameter, upload-size, user-banned, and common) have been moved into a new \src/main/webapp/WEB-INF/jsp/errors/\ subdirectory. All pages now use \session="false"\ and display a consistent layout featuring the \good-penguin.png\ logo. Security is improved by escaping HTML in error messages (e.g., \StringUtil.escapeHtml\, \c:out escapeXml="true"\) to prevent XSS, and the \user-banned\ page now uses the \lor:date\ tag for date formatting.

src/main/webapp/WEB-INF/jsp/errors · high confidence

The gallery image handling logic (controllers, services, and data access) has been rewritten in Scala. This migration introduces stricter validation for image uploads, including checks for aspect ratio and dimensions, and ensures that missing images return a 404 status instead of a 500 error. Additionally, the system now includes scheduled cleaners for old preview files and physically purging image files from topics or images that have been deleted for over three years, helping to manage disk space more effectively.

src/main/scala/ru/org/linux/gallery · high confidence

Group module migrated to Scala with tag filtering and caching

The group-related controllers, data access objects, and services have been rewritten in Scala. This migration introduces a Caffeine-based cache in GroupService to improve performance for group lookups. Additionally, the forum view now supports filtering topics by tag, returning a 404 error if the specified tag does not exist, and the group modification interface now validates the URL name format.

src/main/scala/ru/org/linux/group · high confidence

HTTP firewall and image access control updates

The application now uses a StrictHttpFirewall that allows all header values, relaxing previous restrictions on HTTP headers. Additionally, image and gallery resource access is now protected by new permission interceptors (GalleryPermissionInterceptor and UserpicPermissionInterceptor) that enforce access rules based on user, topic, and group permissions, while also integrating an Akka-based actor for advertising counter tracking.

src/main/scala/ru/org/linux · high confidence

Improved typography and safer URL handling in post formatting

The formatter now applies Russian typographic conventions by replacing standard quotes with proper guillemets (« » and „ “) and converting double hyphens (--) into em-dashes (—). URL processing has been hardened to prevent stack exhaustion from long tokens and to restrict link schemes to safe protocols, mitigating XSS risks. Additionally, the system now correctly handles nested quotes and escapes code blocks to preserve formatting integrity.

src/main/java/ru/org/linux/util/formatter · high confidence

Introduction of PagesInfo model for pagination logic

A new PagesInfo class has been added to the paginator package to encapsulate pagination state, including page links, current page index, and previous/next navigation URLs. This change moves the logic for constructing pagination information out of the view layer into a dedicated data model, providing a structured representation of page navigation that can be used by templates or other components.

src/main/java/ru/org/linux/paginator · high confidence

Introduction of dedicated request models for user registration and profile editing

The user module now uses specific request data classes to handle input for account creation and profile updates. A new \RegisterRequest\ class manages registration fields (email, nickname, password, and rules acceptance), while a new \EditProfileRequest\ class handles profile update fields (email, name, URL, town, bio, nickname, and password changes). Additionally, \UserConstants\ defines shared configuration such as the maximum nickname length (19 characters) and the anonymous user ID.

src/main/java/ru/org/linux/user · high confidence

Logging configuration updated for Pekko migration and debug control

The application now uses a new logging setup in src/main/resources to support the migration from Akka to Pekko and to refine log verbosity. A new application.conf sets Pekko's log level to DEBUG, while log4j2.xml introduces two rolling file appenders (lor-new.log and lor-debug-new.log) with 100 MB size-based rotation. Specific loggers are tuned: Spring, Apache HTTP, and HikariCP are set to INFO, while authentication token generation is set to DEBUG and WebSocket handshake logs are suppressed. The root logger remains at DEBUG, directing general output to the debug file and INFO-level output to the main log file.

src/main/resources · high confidence

LorCodeService migrated to Scala with new Mode enum

The LorCodeService implementation has been rewritten in Scala, introducing a new \Mode\ enum (Plain, Ulb, Lorcode) that controls how input text is prepared before parsing. This change updates the service's internal logic for handling different text formats while maintaining the same public API for converting LORCODE to HTML and extracting plain text.

src/main/scala/ru/org/linux/util/bbcode · high confidence

Markdown renderer rewritten in Scala with new extensions

The markdown rendering engine in src/main/scala/ru/org/linux/util/markdown has been replaced with a new Scala-based implementation (FlexmarkMarkdownFormatter) that introduces several new capabilities: a custom 'cut' extension for collapsing content, fenced code block support with language highlighting, automatic user mention detection and linking, and safe link rendering that suppresses dangerous URL schemes. The renderer also includes extensions for nofollow attributes on links and suppression of image tags, while maintaining compatibility with existing formatting features like autolinks and typography.

src/main/scala/ru/org/linux/util/markdown · high confidence

Migrate actor infrastructure from Akka to Apache Pekko

The application's actor system has been replaced with Apache Pekko, a community-driven fork of Akka. This change is implemented via a new \PekkoConfiguration\ class that initializes the \ActorSystem\ and \Scheduler\ as Spring beans, and updates actor implementations (such as the advertisement counter) to use the Pekko API. This migration ensures the platform remains on a supported actor framework while maintaining existing asynchronous processing behaviors.

repository · high confidence

Migrate exception handling to Scala and add scheduled task error reporting

The exception handling infrastructure has been rewritten in Scala, introducing a new ExceptionController to route HTTP errors and updating the configuration to use Apache Pekko actors instead of Akka. Additionally, a TaskScheduler bean is now registered with a custom error handler that logs periodic task failures and sends detailed stack traces to the exception mailing actor, ensuring that background job errors are captured and reported.

src/main/scala/ru/org/linux/exception · high confidence

Migrate message and user-agent data access to ScalikeJDBC

The data access layer for message content and user agents in the message base module has been rewritten to use ScalikeJDBC instead of the previous Spring JDBC approach. This change updates MsgbaseDao and UserAgentDao to leverage ScalikeJDBC's SQL interpolation and result mapping, while still operating within Spring-managed database sessions via the SpringDB wrapper. For users, this ensures consistent transactional behavior and potentially improved performance for message retrieval and user-agent tracking operations.

src/main/scala/ru/org/linux/msgbase · high confidence

Migrate section management logic to Scala

The section management components (controller, service, DAO, and enums) have been rewritten from Java to Scala. This migration introduces lazy initialization for section data in the service layer to defer database access until needed, replaces the previous DAO implementation with a scalikejdbc-based approach, and updates the forum page controller to use constructor injection for retrieving and displaying section groups.

src/main/scala/ru/org/linux/section · high confidence

Migrate site error handling and date formatting to Scala

The site's core error handling and date formatting logic has been rewritten in Scala. New Scala classes (BadInputException, BadParameterException, MessageNotFoundException, MissingParameterException, ScriptErrorException) now manage user-facing error messages, replacing the previous Java-based exceptions. Additionally, a new DateFormats object centralizes date rendering using java.time, introducing specific formatting rules such as displaying technical dates in MSK and using fuzzy intervals (e.g., "recently", "yesterday") for user content. The DefaultProfile object also sets new defaults, including the 'tango-auto' style and markdown as the default format mode.

src/main/scala/ru/org/linux/site · high confidence

Migrated advertising counter to Pekko and ScalikeJDBC

The advertising counter implementation has been refactored to use the Pekko actor system instead of Akka for handling count updates, and the data access layer now uses ScalikeJDBC via a new AdvCounterDao. This change introduces an AdvCounterInterceptor that sends count messages to the actor, replacing the previous synchronous database operations with an asynchronous, buffered approach.

src/main/scala/ru/org/linux/adv · high confidence

Migrated boxlet controllers to Scala

The ArticlesBoxlet and TopTenBoxlet controllers have been rewritten from Java to Scala. This change updates the implementation of the articles column and the top 10 topics list on the main page to use Scala syntax and Spring annotations, while preserving the existing user-facing behavior for displaying these content lists.

src/main/scala/ru/org/linux/boxlets · high confidence

Migrated to Jakarta EE 6.1 and Spring Security with stateless sessions

The application has been upgraded to the Jakarta EE 6.1 web profile, replacing the legacy Servlet 2.5 configuration with modern Jakarta namespaces. This change introduces Spring Security with stateless session management, meaning user sessions are no longer stored server-side. The security configuration now explicitly permits unauthenticated access to static assets (CSS, JS, images, fonts) and enforces HTTPS redirection for production hosts. Additionally, the deployment now uses a HikariCP connection pool for PostgreSQL and configures an embedded ActiveMQ broker for search queue processing, while standardizing error handling for 404 and 403 responses.

src/main/webapp/WEB-INF · high confidence

Migrated utility classes to Scala and hardened URL validation

The utility classes in src/main/scala/ru/org/linux/util have been rewritten from Java to Scala, introducing new exception types (such as BadDateException, BadURLException, and ServletParameterException) and a RichFuture extension for handling timeouts via Pekko. Additionally, URLUtil now enforces a strict allowlist for link schemes (http, https, ftp, mailto, news), blocking dangerous protocols like javascript: and data: to prevent injection attacks.

src/main/scala/ru/org/linux/util · high confidence

Migration of Spring controllers and configuration to Scala

The main page, server info, JSON configuration, site configuration, and statistics updater have been rewritten from Java to Scala. This change introduces a custom Circe-based HTTP message converter for JSON handling, updates the main page controller to display 10 main news items and brief titles for additional stories, and moves configuration logic (including settings for cleaning inactive users and old content) into a Scala service. The statistics updater now uses ScalikeJDBC for database interactions.

src/main/scala/ru/org/linux/spring · high confidence

Modernized comment forms with live preview and upgraded syntax highlighting

Comment and topic forms now feature a tabbed interface for switching between the editor and a live preview, with keyboard accessibility and a warning if the user attempts to leave the page with unsaved changes. The preview functionality relies on an updated version of Highlight.js (v11.12.0) for code syntax highlighting, and the form submission process includes a visual spinner and button disabling to prevent duplicate submissions. Additionally, the tag autocomplete feature has been replaced with a modern implementation using the autoComplete.js library, providing a smoother tagging experience for users.

src/main/webapp/js · high confidence

New 'Zomg Ponies' site header with updated branding and navigation

A new JSP template (head-main.jsp) has been added for the 'zomg\_ponies' section, introducing a redesigned site header. This change updates the branding by replacing the previous logo file with twilight\_logo.png and modifies the navigation menu to include a link to the 'Articles' section (/articles/). The template also implements session-based authentication checks to display personalized greetings for logged-in users and provides registration/login links for guests, while setting the session attribute to false for this view.

_src/main/webapp/WEB-INF/jsp/zomg\ponies · high confidence

New IntelliJ IDEA-style syntax highlighting and Tango icon integration

The white2 theme now includes a new CSS stylesheet that applies an IntelliJ IDEA-inspired color scheme to syntax-highlighted code blocks, and it switches the theme's icon set to use Tango icons via a new symbolic link in the img directory.

src/main/webapp/white2 · high confidence

The site now uses dedicated JSP boxlet templates in src/main/webapp/WEB-INF/jsp/boxlets to render key homepage widgets. The gallery boxlet displays recent screenshots with lazy-loaded images, responsive sizing via srcset, and links to the full gallery. The poll boxlet shows the current poll with a voting form, result links (differing for multi-select vs single-select polls), and a link to past poll results. The tag cloud boxlet renders clickable tags with weights and a link to the full tag list. The topic list boxlet displays recent topics with titles, comment counts, and pagination links where applicable. All templates include session="false" and updated copyright headers.

src/main/webapp/WEB-INF/jsp/boxlets · high confidence

New JSP tag library for comments, reactions, and forms

The site now uses a new set of JSP tags in src/main/webapp/WEB-INF/tags to render comments, reactions, and forms. The new comment.tag displays comments with proper deletion reasons, reply links, and edit history, while commentForm.tag handles comment submission with CSRF protection and lazy captcha loading. The reactions.tag enables users to interact with content through emoji reactions, and poll.tag/poll-form.tag manage voting with proper CSRF tokens. Date formatting is centralized through date.tag, dateinterval.tag, and dateonly.tag using java.time APIs. The captcha.tag integrates hCaptcha with lazy loading support, and csrf.tag provides consistent CSRF token handling across forms.

src/main/webapp/WEB-INF/tags · high confidence

New SpringDB abstraction for ScalikeJDBC integration

A new SpringDB component has been added to bridge Spring JDBC sessions with ScalikeJDBC, providing run and localTx methods to execute database operations within existing Spring transaction contexts. This change introduces support for HStore data types and handles transactional exceptions properly, enabling the migration of data access objects from Spring JDBC to ScalikeJDBC while maintaining compatibility with Spring's transaction management.

src/main/scala/ru/org/linux/scalikejdbc · high confidence

New comment handling infrastructure and validation

This change introduces a new package structure for comment management, including a CommentRequest model for form data, a CommentRequestValidator to enforce rules (such as preventing empty messages, ensuring topics are not expired or deleted, and validating reply targets), and supporting classes like CommentFilter, DeleteCommentResult, and ReplyInfo to handle filtering, deletion outcomes, and reply context. This refactoring centralizes validation logic and improves the robustness of comment submission and deletion processes.

src/main/java/ru/org/linux/comment · high confidence

New granular permission-checking framework for posting and editing

The rights module now uses a dedicated permission-checking framework (Permission, RestrictionChain) to enforce posting and editing rules with specific, user-facing reasons. New checkers (AddCommentChecker, AddTopicChecker, EditTopicChecker, EditProfileChecker, TopicPublishChecker) and shared validators (FrozenUserChecker, IpBlockChecker, PostScoreChecker, SlowModeChecker) centralize logic for comment/topic posting, profile edits, and topic publishing. Users will see precise restriction messages (e.g., IP-blocked anonymous posting, frozen accounts, score thresholds, daily topic limits, and edit windows) instead of generic denials.

src/main/scala/ru/org/linux/rights · high confidence

New syntax highlighting theme for code blocks

A new CSS stylesheet (syntax.css) has been added to the Waltz web application, providing an IntelliJ Idea-like visual style for syntax-highlighted code. This change updates the appearance of code snippets to use specific colors for keywords, strings, comments, and other elements, improving readability and consistency with the IntelliJ aesthetic.

src/main/webapp/waltz · high confidence

New tango header layout with notification badge and user icon

The tango theme now uses a new head-main.jsp template that renders a header with a notification bell icon displaying the count of unread events for logged-in users, and replaces the username text with a user-circle icon in the profile link. The navigation menu includes a new 'Articles' section and reorders existing links. The header also includes login/register links for unauthenticated users and sets the session attribute to false for this JSP.

src/main/webapp/WEB-INF/jsp/tango · high confidence

New web server configuration and SEO files added

The webapp root now includes an .htaccess file that configures custom 404 error pages, redirects legacy info and RSS URLs, rewrites profile paths, and sets one-week caching for images. A robots.txt file has been added to disallow crawling of administrative, editing, and API endpoints (such as /edit.jsp, /api/, /reactions, and /people/\*/settings). Additionally, a Google site verification file and a manifest.json for Yandex Tableau integration have been introduced.

src/main/webapp · high confidence

Poll voting logic and data access migrated to Scala

The poll subsystem's core components—including the VoteController, PollDao, and supporting services—have been rewritten from Java to Scala. This migration introduces stricter validation for voting actions, specifically preventing votes on deleted, unconfirmed, or expired topics, and enforces single-choice constraints for non-multi-select polls. The data access layer now uses ScalikeJDBC for database interactions, and transaction management has been updated to use SpringDB.localTx.

src/main/scala/ru/org/linux/poll · high confidence

Project modernization: Spring 7, Scala 3, and OpenSearch migration

The application stack has been significantly upgraded: the framework is now Spring 7 (with Spring Security 7), the primary language is Scala 3 (with strict formatting via .scalafmt.conf), and the search backend has migrated from elastic4s to the OpenSearch Java client. The build system is standardized on Maven (with a wrapper), and tests have been consolidated to MUnit. Additionally, a devcontainer environment is now provided for consistent local development, and the project license has been set to Apache 2.0.

(repo-wide) · high confidence

Redesigned white2 header with SVG logo and updated navigation

The white2 theme's main header component (head-main.jsp) has been replaced, introducing a new layout that features an SVG Tux penguin logo in the top-left corner. The navigation menu now includes a link to the new 'Articles' section (/articles/) and the 'Tracker' (/tracker), while removing the 'Wiki' link. User authentication UI has been updated to show a personalized welcome message with a profile link for logged-in users, and registration/login links for guests. The header also sets the viewport for mobile responsiveness and uses a clearfix div to manage layout flow.

src/main/webapp/WEB-INF/jsp/white2 · high confidence

Refactored BBCode parser to use configurable parameters and immutable tag definitions

The BBCode parsing logic has been restructured to separate parser configuration from the core engine. A new \ParserParameters\ interface and \DefaultParserParameters\ implementation now define tag behaviors (such as inline vs. block-level, allowed list parameters, and auto-linking contexts) using Guava's \ImmutableSet\ and \ImmutableMap\. The \Parser\ class now accepts these parameters, allowing for more modular and thread-safe tag processing. This change also introduces \NodeUtils\ for node inspection and standardizes the handling of paragraph breaks and tag nesting rules within the LORCODE-to-HTML conversion.

src/main/java/ru/org/linux/util/bbcode · high confidence

Refactored BBCode tag rendering with new base classes and updated \[code\] language support

The BBCode tag implementation in this package has been restructured to use new base classes: \HtmlEquivTag\ for tags that map directly to HTML elements (used by \CutTag\, \LiTag\, \ListTag\), and \InlineTag\ for inline code-like content. The \CodeTag\ now supports a significantly expanded list of syntax-highlighted languages (including abnf, bnf, ebnf, julia, nim, nix, vala, wasm, and others) via an updated \langHash\ map. Additionally, the \MemberTag\ now uses a cached user service lookup, and the \UrlWithParamTag\ handles quoted URL parameters and short host display for links with minimal text.

src/main/java/ru/org/linux/util/bbcode/tags · high confidence

Refactored boxlet architecture to use Spring MVC controllers

The boxlet system has been restructured to leverage Spring MVC, introducing an abstract base controller that standardizes request handling and edit-mode detection. Specific boxlets, such as the Tag Cloud, are now implemented as annotated Spring controllers, allowing for cleaner separation of concerns and easier integration with the Spring framework.

src/main/java/ru/org/linux/boxlets · high confidence

Refactored edit history view logic and permissions

The edit history pages for topics and comments now use a new authorization context and updated service dependencies. The controller replaces the previous group permission checks with a new GroupService and UserService, and delegates content-edit permission logic to EditTopicChecker. Users will see the same history views, but the underlying permission checks for viewing history and determining if a message can be restored have been updated to align with the new service architecture.

src/main/scala/ru/org/linux/edithistory · medium confidence

Refactored image processing with APNG support and transparency handling

The image utility module has been refactored to introduce new classes (ImageInfo, ImageParam, ImageUtil) that replace previous ad-hoc parsing. This change adds support for validating animated PNG (APNG) avatars and ensures that transparency is removed from preview images before saving as JPEG, preventing potential rendering or compatibility issues with OpenJDK.

src/main/java/ru/org/linux/util/image · high confidence

Restored legacy header layout for Waltz pages

The Waltz section now uses a restored 'old' header structure (head-main.jsp) instead of the previous theme files. This change reverts the visual layout of the navigation bar, site title, and user profile links to the earlier design, ensuring consistency with the site's historical appearance for Waltz-specific pages.

src/main/webapp/WEB-INF/jsp/waltz · high confidence

Same-IP feature migrated to Scala with unified topic/comment listing and score filtering

The Same-IP functionality has been rewritten in Scala, introducing a new data model (PostListItem, PreparedPostListItem) and a ScalikeJDBC-based DAO (SameIpDao) for database access. This change unifies topics and comments into a single list view and adds filtering by user score, while also extending the lookback window for matching activity from 3 to 5 days.

src/main/scala/ru/org/linux/sameip · high confidence

Sass stylesheets migrated to modern module syntax and CSS Grid layouts

The site's styling has been refactored from legacy CSS/Sass into a modular Sass architecture using @use imports, replacing older @import patterns. This change introduces CSS Grid layouts for the main page, tag pages, and tracker, replacing previous float or table-based structures. Additionally, the autocomplete widget now has dedicated styling, and the fontello icon set has been updated to include new icons such as Telegram and tag symbols.

src/main/webapp/sass · high confidence

Search backend migrated from Elasticsearch to OpenSearch

The search infrastructure has been replaced with OpenSearch, including new Scala-based configuration, index creation, and indexing services. The search index mappings and analyzers have been updated to support the new engine, and the search query logic has been rewritten to use the OpenSearch Java client. This change also includes a migration of the search controllers and request handling to Scala, along with updated sorting and filtering behaviors to align with the new backend.

src/main/scala/ru/org/linux/search · high confidence

Slow request logging threshold reduced to 250ms with view timing

The monitoring interceptor in the Scala codebase now logs slow requests when they exceed 250ms, down from the previous 300ms threshold. It also distinguishes between controller execution time and view preparation time, logging warnings for each if they individually exceed the threshold, and ignores slow requests during the first 2 minutes of application startup.

src/main/scala/ru/org/linux/monitoring · high confidence

Tag management module migrated to Scala

The tag management functionality—including the tag cloud, tag listing, tag page display, and tag modification services—has been rewritten from Java to Scala. This migration introduces ScalikeJDBC for database access, replaces Spring's @Transactional with SpringDB.localTx, and updates the codebase to use Scala 3 syntax (e.g., given/using, extension methods). The change also includes updated copyright years and minor cleanup of deprecation warnings.

src/main/scala/ru/org/linux/tag · high confidence

Tag synonym handling during deletion

The tag management logic now supports creating a synonym when a tag is deleted. A new TagRequest class defines a Delete action that includes a createSynonym flag, allowing the system to preserve the tag's identity by mapping it to a new name rather than removing it entirely.

src/main/java/ru/org/linux/tag · high confidence

Topic management logic migrated to Scala

The topic management components in the \ru.org.linux.topic\ package have been rewritten from Java to Scala. This migration includes the conversion of controllers (such as \AddTopicController\, \EditTopicController\, \DeleteTopicController\, and \ArchiveController\), data access objects (like \ArchiveDao\ and \BoxletTopicDao\), and request models (including \AddTopicRequest\ and \EditTopicRequest\). The change introduces Scala-specific patterns, such as case classes for data structures and the use of \SpringDB\ for database interactions, while maintaining the existing user-facing functionality for creating, editing, deleting, and viewing topics.

src/main/scala/ru/org/linux/comment · high confidence

Topic management logic migrated to Scala

The topic management components in the \ru.org.linux.topic\ package have been rewritten from Java to Scala. This migration includes the conversion of controllers (such as \AddTopicController\, \EditTopicController\, \DeleteTopicController\, and \ArchiveController\), data access objects (like \ArchiveDao\ and \BoxletTopicDao\), and request models (including \AddTopicRequest\ and \EditTopicRequest\). The change introduces Scala-specific patterns, such as case classes for data structures and the use of \SpringDB\ for database interactions, while maintaining the existing user-facing functionality for creating, editing, deleting, and viewing topics.

src/main/scala/ru/org/linux/topic · high confidence

Tracker view refactored with new filtering and moderation features

The tracker module has been rewritten in Scala, introducing a new 'tracker-new' view that supports filtering topics by categories (all, main, no talks, tech) and implements pagination with offset limits. For moderators and correctors, the tracker now displays additional management information, including lists of new, frozen, recently blocked/unblocked users, recent user avatars, and blocked IP addresses, as well as counts of uncommitted topics.

src/main/scala/ru/org/linux/tracker · high confidence

Updated list of post deletion reasons

The system's predefined list of reasons for deleting posts has been updated. Notably, the reason previously referred to as 'Offtopic' is now labeled 'Офтопик' (Offtopic), and additional rule-based deletion options have been added to the available choices for moderators.

src/main/scala/ru/org/linux/common · high confidence

User management and profile features migrated to Scala

The user-facing components for account management, including registration, profile editing, settings, password recovery, account deregistration, and user remarks, have been rewritten in Scala. This migration introduces stricter validation for profile fields (such as email and URL formats), enforces minimum password lengths, and updates the underlying data access layer to use ScalikeJDBC. Users will experience these changes through the existing profile and settings interfaces, which now rely on the new Scala-based controllers and validators.

src/main/scala/ru/org/linux/user · high confidence

White2 theme refactored to use CSS custom properties

The white2 theme's styling has been restructured to replace SASS color variables with CSS custom properties (CSS variables). A new \\_colors.scss\ file defines the theme's palette and exposes it via \:root\ variables, while \\_style.scss\ and \main.scss\ have been updated to consume these variables. This change centralizes color definitions and modernizes the theme's implementation without altering the visual appearance.

src/main/webapp/sass/black, src/main/webapp/sass/white2 · high confidence

Test coverage

2 commits adding/updating tests in src/test/scala/ru/org/linux/csrf; 2 commits adding/updating tests in src/test/scala/ru/org/linux/exception; Added Scala MUnit tests for Markdown link security and formatting; Added Scala-based tests for gallery image management; Added Scala-based tests for group functionality; Added Scala/MUnit tests for BBCode parsing and security validation; Added Scala/MUnit tests for topic management and deletion logic; Added integration and concurrency tests for the reaction DAO; Added integration and unit tests for tag management; Added integration tests for PollDao using Scala and Munit; Added test coverage for comment preview security, DAO operations, and deletion cleanup; Added tests for OpenSearch integration and WebSocket session closure; Added tests for Section DAO and Service; Added tests for URL rewrite security and normalization rules; Added tests for authentication security and behavior; Added tests for canonical URL redirects and date formatting; Added tests for edit history DAO, service, and web permissions; Added tests for warning system DAO and web interactions; Added unit tests for the Help controller; Added unit tests for topic posting and editing permission checkers; Migrated utility tests to Scala MUnit; Test infrastructure migrated to Scala and MUnit; User module tests migrated to Scala MUnit.

Dependencies

Upgrade to Spring 7, Scala 3, and Pekko

The project's dependency manifest has been updated to use Spring Framework 7.0.9 and Spring Security 7.0.7, migrating from the previous Spring 6.x versions. The Scala runtime has been upgraded to version 3.9.0, and the Akka actor library has been replaced with Apache Pekko 1.7.0. Other notable dependency updates include the PostgreSQL JDBC driver to 42.7.13, Log4j to 2.26.1, and Jackson to 2.22.3.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.

Score

  • CAI 42 → 41 (-0.8)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 33 → 32 (-0.9)
  • Architecture 83 → 82 (-0.2)
  • Maturity 59 → 55 (-4.1)
  • Readiness 40 → 40 (-0.1)
  • Security 90 → 87 (-3.0)
  • Accessibility 43 → 43 (+0.1)
  • Performance 100 → 100 (+0.0)

Resolved (69)

  • (anonymous) (cyclomatic 60) (src/main/webapp/js/add-form.js)
  • Hotspot: src/main/java/ru/org/linux/util/bbcode/tags/UrlWithParamTag.java (src/main/java/ru/org/linux/util/bbcode/tags/UrlWithParamTag.java)
  • Hotspot: src/main/scala/ru/org/linux/user/WhoisController.scala (src/main/scala/ru/org/linux/user/WhoisController.scala)
  • Low: security finding (details withheld)
  • Low: security finding (details withheld)
  • Medium: security finding (details withheld)
  • Outdated (compile -- module autolink (auto)): org.nibor.autolink:autolink
  • Outdated (compile -- module com.fasterxml.jackson.core): com.fasterxml.jackson.core:jackson-core
  • Outdated (compile -- module com.fasterxml.jackson.databind): com.fasterxml.jackson.core:jackson-databind
  • Outdated (compile -- module com.rometools.rome [auto]): com.rometools:rome
  • Outdated (compile -- module com.rometools.rome.utils [auto]): com.rometools:rome-utils
  • Outdated (compile -- module d3.bower (auto)): org.webjars.bowergithub.mbostock-bower:d3-bower
  • Outdated (compile -- module d3js (auto)): org.webjars:d3js
  • Outdated (compile -- module jakarta.el): jakarta.el:jakarta.el-api
  • Outdated (compile -- module java.transaction [auto]): jakarta.transaction:jakarta.transaction-api
  • Outdated (compile -- module jquery (auto)): org.webjars:jquery
  • Outdated (compile -- module js.cookie (auto)): org.webjars.npm:js-cookie
  • Outdated (compile -- module lucene.core (auto)): org.apache.lucene:lucene-core
  • Outdated (compile -- module micrometer.commons [auto]): io.micrometer:micrometer-commons
  • Outdated (compile -- module micrometer.observation [auto]): io.micrometer:micrometer-observation
  • …and 49 more

New (5)

  • (anonymous) (cyclomatic 67) (src/main/webapp/js/add-form.js)
  • Dependency hygiene PARTLY measured — Maven/Gradle declarations read, no dependency graph resolved
  • Hotspot: src/main/scala/ru/org/linux/admin/DelIPController.scala (src/main/scala/ru/org/linux/admin/DelIPController.scala)
  • Low cohesion: CommentDao (LCOM4 5) (src/main/scala/ru/org/linux/comment/CommentDao.scala)
  • SearchController.search (cognitive 17) (src/main/scala/ru/org/linux/search/SearchController.scala)

Changes since last survey

  • 25 commits — 25 feature/other, 0 fixes

By area

  • src/main — 21 commits
  • (root) — 2 commits
  • doc/data-retention.md — 1 commit
  • src/test — 1 commit

Notable commits

  • change: CommentReadService: увеличил размер кеша
  • change: RealtimeEventHub: logging cleanup
  • change: SectionRssWebTest: создаём топик в тесте — не зависит от данных демо-БД
  • change: retention: 6-месячный порог давности удаления для заблокированных авторов
  • change: retention: уведомления (спецификация)
  • change: slow log: query параметры и пользователь
  • change: twitter:card summary_large_image и og:image:width/height для топиков с изображениями
  • change: update Spring
  • change: атомарная проверка отсутствия ответов при самоудалении тем и комментариев
  • change: валидация IP и экранирование вывода в /delip.jsp (XSS)
  • change: валидация filter и удаление output в редиректе /view-message.jsp (CRLF)
  • change: валидация nick в редиректе /show-topics.jsp (CRLF)
  • change: генерация RSS ленты разделов (section-rss.jsp) через ROME вместо JSP
  • change: денормализация topics.score_loss вместо запроса DeleteInfoDao.scoreLoss
  • change: дружелюбная страница ошибки для форм комментирования по устаревшим темам
  • change: замена собственной CSRF-защиты на Spring Security CsrfFilter
  • change: замороженные не могут голосовать
  • change: индикация загрузки и сетевой ошибки hCaptcha
  • change: настройка обработки исключений: чистка резолверов и статусы ответов
  • change: обновление moment.js 2.31.0 и js-cookie 3.0.8 ([CVE redacted], [CVE redacted])
  • …and 5 more

Architecture

  • Unchanged — 0 containers · 2 contexts · 0 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

maxcom/lorsource was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 7 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit a9d8f1a5b441606e2b5a6d500f2df9f6bae9966c — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-5f8314471808.