Git Product home page Git Product logo

Comments (8)

koniu avatar koniu commented on May 10, 2024

duplicate of #26, pushed a suggested fix. please try if it works now.

from recoll-webui.

Percent01 avatar Percent01 commented on May 10, 2024

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.

koniu avatar koniu commented on May 10, 2024

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.

Percent01 avatar Percent01 commented on May 10, 2024

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.

Percent01 avatar Percent01 commented on May 10, 2024

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.

Percent01 avatar Percent01 commented on May 10, 2024

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.

 avatar commented on May 10, 2024

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.

koniu avatar koniu commented on May 10, 2024

no reply

from recoll-webui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.