Lost password? | Help

[ advanced search ]

Go to last post

Thursday, 7. February 2008, 12:27:50

johnnysaucepn

In a maze of twisty little messages, all alike

avatar

Posts: 5578

United Kingdom

Thursday, 7. February 2008, 12:42:26

johnnysaucepn

In a maze of twisty little messages, all alike

avatar

Posts: 5578

United Kingdom

Is there any kind of security model on this? Basically, is there anything restricting a widget to only reading/writing data it created?
Can another widget read or write my data - can a second widget read my GMail login from a first widget, or is it up to the author to make sure nothing sensitive gets stored online?

Saturday, 9. February 2008, 10:26:40

Xaer

avatar

Posts: 11

Norway

Opera Software
The security model is rather simple. By default all data is private with regards to the user. There is no identification other than by username. Widgets have now unique ID.

If you want to, you can set permissions on a data collection per my.opera group to allow other users to create, read, update and delete documents in the collection. Data collections can also be marked as public, so anyone can read it, regardless of beeing logged in or not or group memberships.

Please keep in mind that this is a labs service, that is, it is an experimental service delievered "as is" and in particular there are no guarantees, so please do not save your social security number or a list of your passwords in the Opera XML Store.

Saturday, 14. February 2009, 21:59:36

I'm trying to save and retrieve a widget preference from the xml store, but running into issues.

I'm following the documentation and using the following xml to save: <?xml version="1.0" encoding="UTF-8"?><p:preferences xmlns:p="http://oxs.opera.com/ns/preferences" id="widgetname"><p:entry><p:key>alias</p:key><p:value>foobar</p:value></p:entry><p:entry><p:key>level</p:key><p:value>10</p:value></p:entry></p:preferences>

When I log into the xml store directly I see the new widget preference in the list, but the link seems to be wrong, I get a "no such user" error when I click on it.

Is there any example that people could point me to that shows how to get / set widget preferences in the xml store?

Monday, 16. February 2009, 12:03:45

iYondaime

avatar

Posts: 1

Poland

Hi, nomadicsettler!

Bookmarks widget:
http://widgets.opera.com/widget/11832/
and Sudoku-X widget:
http://widgets.opera.com/widget/11331/
are using XML Store preferences collection.

I am sure, however, that you're doing everything right. There's a bug in XML Store that makes links point to some strange location like:
http://xmlstore.labs.opera.com/user/preferences/%20%20...%20c23d8513d22898c7e6b2d23d7a515bd2

What you need to do in order to see your preferences is change the url to:
http://xmlstore.labs.opera.com/user/YOURUSERNAME/preferences/default/c23d8513d22898c7e6b2d23d7a515bd2

You can retrieve the id (c23d...) from the link by removing white spaces (%20). Also, add your username to the url. You can do it manually (and paste the new string to address bar) or you can write user javascript to do it for you (that's what i did).

Monday, 16. February 2009, 16:24:29

Thanks for the heads up, much appreciated.

Tuesday, 17. February 2009, 13:33:32

For_d

avatar

Posts: 201

Norway

Opera Software
I'd just like to pop in to re-iterate that the XML Store is a labs released service. I'm sorry to say that we don't have capacity to maintain it or fix bugs on a regular basis right now. The issues above are in our bug tracker, but don't expect fixes in the very near future.

Wednesday, 18. February 2009, 03:18:47

That's understood... I wanted to make sure that I was going down the right path with using the service, and the examples that I have with the Bookmarks widget should be a good starting point.

Cheers.

Wednesday, 9. December 2009, 16:04:04

XML Store is off. Shopping list widget can´t connect.

Forums » Opera Community » General Opera topics » Opera Widgets