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

QTVCP - Multiple Periods in File Names Causing Crashes #1082

Merged
merged 4 commits into from Feb 12, 2021

Conversation

satiowadahc
Copy link
Contributor

  1. Our Millwright were trying to save files with multiple periods. This ended with some unwanted behavior and crashed Linuxcnc on occasion.

  2. Class methods by definition can't access themselves, renaming local variable to clear warnings

Chad Woitas added 4 commits January 26, 2021 19:59
Our millwrights have been trying to name files in a mm.dd.yyyy.ngc File Format. Catching this here
# Conflicts:
#	lib/python/qtvcp/core.py
@satiowadahc satiowadahc changed the title Multiple Periods in File Names Causing Crashes QTVCP - Multiple Periods in File Names Causing Crashes Feb 12, 2021
@c-morley c-morley merged commit 61c016d into LinuxCNC:master Feb 12, 2021
@c-morley
Copy link
Collaborator

Thank you

@c-morley
Copy link
Collaborator

It seems this breaks on paths with ../ which are legal. Could you address this?

@c-morley
Copy link
Collaborator

reference:
https://forum.linuxcnc.org/qtvcp/41425-file-editor-open-error

But hey maybe it's a unicode problem ... I'll look into it further.

@c-morley
Copy link
Collaborator

the problem you were trying to fix was something like 'test.2.ngc' ?

@satiowadahc
Copy link
Contributor Author

My apologies I forgot about that case. Yes test.2.ngc was one I tested repeatedly. or test.mm.dd.yyyy.ngc

@c-morley
Copy link
Collaborator

No problem. it showed a problem with file_manager that would add weird /../home paths.
In fact I never did change your code (I probably should cover the possibility I guess)
Thanks

@satiowadahc
Copy link
Contributor Author

Can I suggest this for edge case protection? https://github.com/satiowadahc/linuxcnc/tree/cw-period

@c-morley
Copy link
Collaborator

That looks good. Do you want to pull request or shall I just add the changes myself.

@satiowadahc satiowadahc deleted the cw-classCheks branch February 15, 2021 15:00
@c-morley
Copy link
Collaborator

Can you remember why multiple .. broke linuxcnc?
I have reports that in 2.8 they were being used successfully and of course they are not happy to change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants