Skip to content

[rfile] Put(TNamed): forbid names containing '/' - #24036

Open
silverweed wants to merge 1 commit into
root-project:masterfrom
silverweed:rfile_tnamed_slash
Open

silverweed wants to merge 1 commit into
root-project:masterfrom
silverweed:rfile_tnamed_slash

Conversation

@silverweed

Copy link
Copy Markdown
Contributor

We don't want to accept TNamed objects with / in their name, as they would be stored unexpectedly under a fully split path.
To prevent this sort of confusion, we throw if the object has '/' in its name.

@silverweed silverweed self-assigned this Nov 6, 2026
@silverweed silverweed added this to the 6.42.00 milestone Nov 6, 2026
Comment thread io/io/inc/ROOT/RFile.hxx Resolved

@pcanal pcanal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@vepadulano vepadulano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment thread io/io/test/rfile.cxx
EXPECT_THAT(ex.what(), testing::HasSubstr("Invalid object path"));
}
try {
file->Put(named3);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is invalid because of the . character in the name? I'm not opposed to it, I just wonder because it's not included in the PR/commit description.

This branch has not been deployed

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants