mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-25 00:30:09 +08:00
When discovered dataset designations are very long (e.g., taxonomic names),
the job output association name (__new_primary_file_{name}|{designation}__)
can exceed the VARCHAR(255) column limit, causing StringDataRightTruncation
which corrupts the SQLAlchemy session and triggers PendingRollbackError.
Add name length validation in Job.add_output_dataset and related methods
that raises ValueError before the DB INSERT. Catch the error in both the
normal and extended metadata code paths to fail the job with a clear error
message instead of crashing the transaction session.
Fixes https://github.com/galaxyproject/galaxy/issues/22045
14 lines
432 B
XML
14 lines
432 B
XML
<tool id="discover_long_name" name="discover_long_name" version="0.1.0" profile="20.09">
|
|
<command><![CDATA[
|
|
echo "data" > '${output_name}.txt'
|
|
]]></command>
|
|
<inputs>
|
|
<param name="output_name" type="text" label="Output name" />
|
|
</inputs>
|
|
<outputs>
|
|
<data format="txt" name="output">
|
|
<discover_datasets pattern="__name_and_ext__" visible="true" />
|
|
</data>
|
|
</outputs>
|
|
</tool>
|