Skip to content

Python rejects valid camel-case VFS resource types #8237

Description

@carloea2

Feature Summary

VFSURIFactory.decode_uri lowercases the resource suffix before constructing VFSResourceType, but two valid shared protocol values are camel case. Python therefore rejects Scala-produced runtime statistics and console message URIs.

Before: runtimeStatistics or consoleMessages -> lowercase suffix -> unknown resource type

After: preserve the encoded suffix -> valid resource type is decoded

Expected behavior:

Every resource suffix emitted by the shared Scala VFS protocol should decode to the matching Python enum value.

Reproduction evidence:

Decode the four resource URI suffixes defined by VFSResourceType.

Observed on 50321e403c82df299a13deb50a7f9849dd93bdba:

result=result
state=state
runtimeStatistics_error=ValueError: Unknown resource type: runtimestatistics
consoleMessages_error=ValueError: Unknown resource type: consolemessages

Version and commit evidence:

1.3.0-incubating-SNAPSHOT (main)

Commit Hash (Optional)

50321e403c82df299a13deb50a7f9849dd93bdba

Proposed Solution or Design

After: preserve the encoded suffix -> valid resource type is decoded

Expected behavior:

Affected Area

Workflow Engine (Amber)

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions