synchrone / sandstorm-radicale

A calendars and contacts app for Sandstorm.io
https://apps.sandstorm.io/app/8kr4rvyrggvzfvc160htzdt4u5rfvjc2dgdn27n5pt66mxa40m1h
13 stars 3 forks source link

After upgrade to latest version on sandstorm platform, i met an issue. #22

Closed eddyx closed 8 years ago

eddyx commented 8 years ago

I can't modify or delete any information, in the log, i saw the following lines.

File "/opt/app/env/lib/python3.4/tempfile.py", line 538, in func_wrapper return func(_args, *_kwargs) UnicodeEncodeError: 'ascii' codec can't encode characters in position 137-139: ordinal not in range(128)

I am using Chinese letters as first name and last name etc. It worked well in previous version.

Please help to take a look at this issue.

Thank you.

keybits commented 8 years ago

I think I have a duplicate of this. After upgrade to latest version I cannot create new Contacts or edit existing conacts. On click Save I get:

Error unable to save the contact - Internal server error

This is on hosted Oasis.

synchrone commented 8 years ago

Indeed, the current version does not handle UTF-8

Traceback (most recent call last):
  File "/opt/app/main.py", line 22, in __call__
    return self.radicale.__call__(environ, start_response)
  File "/opt/app/env/lib/python3.4/site-packages/radicale/__init__.py", line 332, in __call__
    user)
  File "/opt/app/env/lib/python3.4/site-packages/radicale/__init__.py", line 588, in do_PUT
    xmlutils.put(environ["PATH_INFO"], content, collection)
  File "/opt/app/env/lib/python3.4/site-packages/radicale/xmlutils.py", line 453, in put
    collection.append(name, ical_request)
  File "/opt/app/env/lib/python3.4/site-packages/radicale/ical.py", line 361, in append
    self.write()
  File "/opt/app/env/lib/python3.4/site-packages/radicale/ical.py", line 377, in write
    self.save(text)
  File "/opt/app/env/lib/python3.4/site-packages/radicale/storage/filesystem.py", line 101, in save
    fd.write(text)
  File "/opt/app/env/lib/python3.4/tempfile.py", line 538, in func_wrapper
    return func(*args, **kwargs)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 209861-209871: ordinal not in range(128)
keybits commented 8 years ago

Thanks for the quick reply. Ah the joys of character encoding!

What's the best way forward?

synchrone commented 8 years ago

I'm tempted to rollback the v12 release from oasis, since I screwed up back-porting an upstream patch for issue #21. Will be able to do it in 9 hours earliest.

keybits commented 8 years ago

Sounds like a good plan. No rush. :-) Thanks for your work on this - very useful app.

eddyx commented 8 years ago

Thank you for the reply.

zeigerpuppy commented 8 years ago

same here, can't access contacts. I thought it was a good opportunity to bring up the issue of rollbacks in sandstorm in general too (see referenced issue)

2016-08-06 11 49 56 am

eddyx commented 8 years ago

Yes, that's also what i thought. If Sandstorm has the mechanism to rollback to previous version, it will be helpful to protect the data. I am nearly going to delete the app for i can't use it.

synchrone commented 8 years ago

Ok, v13 was released yesterday. UTF-8 support is back, so I am closing this issue

zeigerpuppy commented 7 years ago

thanks, working well

eddyx commented 7 years ago

Thank you, will the new release be pushed by the sandstorm?

synchrone commented 7 years ago

@eddyx you will need to click "Upgrade grains" in the usual Bell notification dropdown in the top bar.

eddyx commented 7 years ago

It runs well now, thank you.