Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trimming sheetnames > 31 chars #273

Closed
wants to merge 3 commits into from

Conversation

manticore-projects
Copy link

Warn about trimmed sheet names
Throw exception when trimmed sheetname collides with existing sheet
Implement sheetname trimming for HSSFWorkbook
Add use case tests

Warn about trimmed sheet names
Throw exception when trimmed sheetname collides with existing sheet
Implement sheetname trimming for HSSFWorkbook
Add use case tests
@centic9
Copy link
Member

centic9 commented Nov 7, 2021

Applied most of the changes, however throwing an Exception was not necessary as both HSSF and XSSF already validate for existing sheetnames with taking the max-length into account properly.

@manticore-projects
Copy link
Author

Awesome! Thank you for looking into this and giving feedback.
Cheers!

snsinahub pushed a commit to snsinahub-org/poi that referenced this pull request Feb 28, 2023
Define Constant MAX_SENSITIVE_SHEET_NAME_LEN = 31
Warn about trimmed sheet names
Implement sheetname trimming for HSSFWorkbook
Add use case tests

Closes apache#273

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894817 13f79535-47bb-0310-9956-ffa450edef68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants