Skip to content

Mapping extensions to languages is broken #1483

Open

Description

@gollux

In PR #1464, I discovered that cmsAddSubmission without --lang defaults to the first language on the list which matches the filename extension, regardless of what is enabled in the contest. The test suite did not originally catch this, because it used C which has only one version enabled.

All callers of cms.grading.languagemanager.filename_to_language seem to be affected, in particular cmsMake and cmstestsuite/web/CWSRequests.py.

cmsAddSubmission is already fixed by PR #1464, but the other places need attention, too.

@veluca93 mentioned that cmsMake can be probably removed.

Activity

  1. CristianCantoro commented on Sep 3, 2025

    @CristianCantoro
    Contributor

    cmsMake is currently broken in v1.5.1, see #1546.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions