Bug 433956 - "?" question mark wilcard, not working over FTP remote folders
Summary: "?" question mark wilcard, not working over FTP remote folders
Status: REPORTED
Alias: None
Product: krusader
Classification: Applications
Component: search (other bugs)
Version First Reported In: 2.7.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-04 13:42 UTC by Rafael Linux User
Modified: 2021-03-20 11:18 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Linux User 2021-03-04 13:42:17 UTC
SUMMARY
I was trying to search for a text inside files with extension ".php", ".inc", ".htm" and ".html", so I put as filename "*.php *.inc *.htm?". However, after trying several times to guess why I didn't get expected results, I realized that Krusader is ignoring "?" wilcards when searching.

STEPS TO REPRODUCE
1. Create file "example.htm" and put inside text "This is 12345". Save file and copy that file as "example.html"
2. Launch Krusader and open folder containing those files created.
3. Go to "Tools, Search"
4. In filename, write "*.htm?"
5. In "having text" section, in "Having" field, put "12345"

OBSERVED RESULT
No files in "Result" tab

EXPECTED RESULT
To show both files ("example.htm" and "example.html")

SOFTWARE/OS VERSIONS
Operating System: openSUSE Leap 15.2
KDE Plasma Version: 5.21.0
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.3.18-lp152.63-default
OS Type: 64-bit
Graphics Platform: X11
ADDITIONAL INFORMATION
Comment 1 Davide Gianforte 2021-03-04 18:25:28 UTC
I did the same test with the -dev version of Krusader and the latest Neon User image (with 2.7.2 installed) and I cannot replicate the issue, the search return the .htm file in both cases.

The expected result you wrote is wrong: with "*.htm?" you cannot match a file named "example.htm", you can check from a terminal with "ls *.htm?"

To search both .htm and .html files, the right pattern is *.htm*

Does it work?
Comment 2 Rafael Linux User 2021-03-05 08:03:27 UTC
My fault. I didn't tried locally. My issue is related when working in remote folders (FTP), that usually is my day to day work, so I didn't mention that this issue is when searching in remote folders thru FTP. FTP server are Debian Linux servers with proFTPd service.
Comment 3 Rafael Linux User 2021-03-05 08:16:03 UTC
More info about this issue (searching for ftp possible limits).
In StackOverflow site https://stackoverflow.com/questions/9282753/ftp-directory-partial-listing-with-wildcards 

user Martin Prikryl wrote about it:
"In practice though many FTP servers do support wilcards in the argument. But as the specification does not allow that, there's obviously no set standard for the wildcards supported.

vsftpd supports *, ? and {} with the LIST. vsftpd does not support the modern MLSD.

proftpd supports *, ? and []. But for the LIST only. It explicitly does not allow wildcards with the modern MLSD with a comment:

    RFC3659 explicitly does NOT support glob characters. So warn about this, but let the command continue as is.

pureftpd supports *, ? and [] for both the LIST and the MLSD.

FileZilla server supports * only both the LIST and the MLSD."

I don't know how works internally Krusader when asking to remote FTP servers, if using LIST or MLSD, so I can't help more about it  :(
Comment 4 Bug Janitor Service 2021-03-20 04:33:45 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Rafael Linux User 2021-03-20 11:18:31 UTC
I put all info I can give. Don't know what more could I do. Issue is verifiable.