authentic-theme icon indicating copy to clipboard operation
authentic-theme copied to clipboard

19.32 - File Manager search functionality

Open BackPacker777 opened this issue 7 years ago • 32 comments

I had to downgrade to 19.31 because the search function was not working at all. Kept telling me that nothing was found after searching. 19.31 works great!

BackPacker777 avatar Apr 30 '19 16:04 BackPacker777

What is your request string that you're trying to find?

iliaross avatar Apr 30 '19 17:04 iliaross

Well, I was trying to do a search and replace for apostrophes and replace them with a single quote like I always have to do. That stopped working after the 19.32 upgrade. On a whim, I tried simply searching for file names and that didn't work either. Query mask I used was an *

BackPacker777 avatar Apr 30 '19 17:04 BackPacker777

There is no need for masking (using *) anymore.

Can you try without it.

iliaross avatar Apr 30 '19 17:04 iliaross

Will do. I will report back soon.

BackPacker777 avatar Apr 30 '19 17:04 BackPacker777

It wont let my put anything in the 'find in results' box unless there is something in the 'Query mask' box. It is allowing me to put a file name in the 'Query mask' box and do a search.

BackPacker777 avatar Apr 30 '19 17:04 BackPacker777

Search and replace returns "Error: 200 - Document follows" on a red bar on the bottom of the page. error

BackPacker777 avatar Apr 30 '19 17:04 BackPacker777

I'll check.

iliaross avatar Apr 30 '19 18:04 iliaross

I made a quick patch to let you use * for all files. There was unquoted user input. Please pull latest development version to give it a try.

While in the theme just hit Ctrl+Shift+Alt+Cmd(Meta)+U to update to latest beta.

I will see if it's possible to add full regex support, like all files ending with digit \d$.

iliaross avatar Apr 30 '19 19:04 iliaross

I've run the update, but I'm still at 19.32....? Anyway, I tried search again and I'm experiencing the same issues. Sorry. I do appreciate your customer service though!

BackPacker777 avatar Apr 30 '19 19:04 BackPacker777

I haven't changed the version yet.

Are you sure that you have installed latest development version and not stable? Try using theme configuration instead.

iliaross avatar Apr 30 '19 20:04 iliaross

I double checked. It should work!

iliaross avatar Apr 30 '19 20:04 iliaross

Sorry. I've performed the CTRL+SHIFT+ALT+WINDOWS KEY+U several times and I am still experiencing the same issues. I even did the "Force update theme" with no luck.

force

BackPacker777 avatar May 01 '19 10:05 BackPacker777

Okay, what is the output of

For Debian:

cat /usr/share/webmin/authentic-theme/extensions/file-manager/file-manager-lib.pm |grep "eq \"\*\""

or

For RHEL:

cat /usr/libexec/webmin/authentic-theme/extensions/file-manager/file-manager-lib.pm |grep "eq \"\*\""

What if you just search * in your folder, does it return you all results?

What is the exact string that you're trying to replace?

iliaross avatar May 01 '19 10:05 iliaross

* gives me no results.

The cat command returns nothing. I also redirected the output to a file and it was empty.

If you go to https://codedelegance.com you will see that my Hexo blog theme inserts apostrophes instead of single quotes in my articles after generating the html from my md files. Prior to 19.32, I'd use your search capability to replace all of them easily by editing the index.html file, copying the offending character, pasting it into your search tool and typing a ' in the replace box. Always worked great. (I used * as the query mask).

BackPacker777 avatar May 01 '19 11:05 BackPacker777

Okay, nice site by the way.

I have just released 19.33-alpha1 go and upgrade to the latest development version. After update you should see that you are running 19.33-alpha1 (on Dashboard for example).

About the search. With latest commit you can use regex to search for file name.

For example to get all files ending with digit go with \d$. To get all possible matches use *. Using wild char and regex might lead to DoS, as of big chunk of data to be processed, so use it with care.


About your issue. What is the exact file name that you are searching for? What is the exact string that you are trying to find to replace later and what is the replacement itself?

iliaross avatar May 01 '19 11:05 iliaross

Thanks!

Ok, I see the update now and file searching works. Replace still returns a 200 error though.

I paste in ‘ to the "find in results" box and I type ' in the "Replace in results" box.

BackPacker777 avatar May 01 '19 11:05 BackPacker777

I did it exactly what you said and it was replaced correctly.

The "error" seems to me like a bug. I will check.

Are you sure that nothing is replaced?

iliaross avatar May 01 '19 11:05 iliaross

Please run another update to see if you still having this "error" showing.

iliaross avatar May 01 '19 11:05 iliaross

I made you a video!

https://drive.google.com/file/d/1mOSrUJsU1n2Xn083i4LMR5QvvO4xylQx/view

BackPacker777 avatar May 01 '19 11:05 BackPacker777

New video after updating per your request: https://drive.google.com/file/d/1HIbNu_mz4xFWlGHSc6xuXi-03yjLAVag/view

BackPacker777 avatar May 01 '19 11:05 BackPacker777