Comments (8)
duplicate of #26, pushed a suggested fix. please try if it works now.
from recoll-webui.
Almost complete solution, but...
I replace with this webui.py line 151
qs += " dir:"%s" " % q['dir'].decode('utf-8')
Now the search is fine, but unfortunately I can't download or preview the file yet.
This is the error message, what I get when I would like to preview the file:
Error 500: Internal Server Error
Sorry, the requested URL 'http://xxxxxx.com/preview/0?query=a&dir=outputxxxxxxxx&after=&before=&sort=relevancyrating&ascending=0&page=1' caused an error:
Internal Server Error
Exception:
AttributeError('internfile failure',)
Traceback:
Traceback (most recent call last):
File "Desktop/recoll/recoll-webui/bottle.py", line 744, in _handle
return route.call(*_args)
File "Desktop/recoll/recoll-webui/bottle.py", line 1479, in wrapper
rv = callback(_a, **ka)
File "Desktop/recoll/recoll-webui/webui.py", line 267, in preview
tdoc = xt.textextract(doc.ipath)
AttributeError: internfile failure
This error message get
<title>Error 500: Internal Server Error</title> <style type="text/css"> html {background-color: #eee; font-family: sans;} body {background-color: #fff; border: 1px solid #ddd; padding: 15px; margin: 15px;} pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;} </style>Error 500: Internal Server Error
Sorry, the requested URL 'http://xxxxxxxx.com/download/1?query=a&dir=output%2Fxxxxxxxxxx&after=&before=&sort=relevancyrating&ascending=0&page=1' caused an error:
Internal Server Error
Exception:
UnicodeEncodeError('ascii', u'Sending /srv/output/xxxxx.eml with mimetype message/rfc822', 59, 60, 'ordinal not in range(128)')
Traceback:
Traceback (most recent call last): File "Desktop/recoll/recoll-webui/bottle.py", line 744, in _handle return route.call(*_args) File "Desktop/recoll/recoll-webui/bottle.py", line 1479, in wrapper rv = callback(_a, **ka) File "Desktop/recoll/recoll-webui/webui.py", line 298, in edit print >> sys.stderr, "Sending %s with mimetype %s" % (path, doc.mimetype) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 59: ordinal not in range(128)
from recoll-webui.
I cannot reproduce this error, just checked with the latest webui code and it works fine here. Looking at the error messages I gather you're using an older revision or a fork - is there a specific reason for that or can you pull the latest revision and test?
from recoll-webui.
I use the newest !official! version, but I will check again very soon.
This code snippet solve the problem, when I would like to search in directory, where directory name's contain special character: .decode('utf-8')
But when I would like to download or preview one of the result I get the error message above.
I think the problem these characters: ˇ ^ °
Could you try it, when you have a file with special character with a special chacter directory and indexing and after would like download with recoll-webui? For example:
<directory'+!(ˇ^°name>/<file'+!(ˇ^°name>
Thanks in advance for any help you are able to provide.
from recoll-webui.
I think in the new version you miss the "Download" button from the "result.tpl"
Please put this line into result.tpl under the 'preview' part:
< a href="download/{{number-1}}?{{query_string}}">Download< /a>
from recoll-webui.
I would like to clarify the problem:
I can't download files when the objects in the a specific file. For example I search in emails attachment and the directory or the file name contain "*" asterisk character.
from recoll-webui.
Hi,
I'd gladly look at the issue, but I'd need a sample of a document which exhibiting the problem.
Either attach it here or send it to me by email: jf at dockes . org
If the sample document is an email, please don't forward it, as this might cause re-encoding somewhere along the transfer. Save it to an mbox or eml file, zip or gzip it, and send the result.
jf
from recoll-webui.
no reply
from recoll-webui.
Related Issues (20)
- query performance CLI vs. webui HOT 3
- WSGI path problems
- Open file in browser without the need for local files. To be used as a service on a server HOT 1
- Recoll Web UI Error 500 (WSGI) HOT 3
- NOTE: A (Python 3) fork is actively maintained here HOT 3
- AttributeError("'NoneType' object has no attribute 'ipath'",) HOT 2
- The koniu repository on GitHub has not been updated for some time
- Permanent locations settings for all users HOT 2
- License missing HOT 1
- Fallback to operation without rclextract fails
- HTTP 500 after saving settings HOT 1
- How to run using https? HOT 1
- linux error trying to run webui HOT 1
- After indexing the first file, webui no longer works HOT 3
- Recoll WebUI for windows server HOT 1
- Recoll WebUi - Need one for mobile HOT 4
- Fails to start with Python 3.10 HOT 1
- except re.error, e: HOT 3
- Any new release is possible or planned? HOT 1
- Recoll is not indexing my Matlab code files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recoll-webui.