GithubHelp home page GithubHelp logo

grosjo / nextcloud-grauphel Goto Github PK

View Code? Open in Web Editor NEW
54.0 9.0 9.0 247 KB

Tomboy note synchronization REST server nextcloud app

Home Page: http://cweiske.de/grauphel.htm

License: GNU Affero General Public License v3.0

PHP 87.97% CSS 2.83% JavaScript 2.57% HTML 3.63% XSLT 3.00%
synchronization php nextcloud

nextcloud-grauphel's Introduction

grauphel - tomboy REST server

nextCloud application implementing the Tomboy REST API for syncing notes.

Pretty stable.

I have taken over the repository.

Please submit requests/bugs via the [GitHub issue tracker](https://github.com/grosjo/nextcloud-grauphel/issues). A Matrix Room exists also at : #nextcloud-grauphel:matrix.grosjo.net

  • Note synchronization
  • OAuth token management interface
  • Database management interface (reset)
  • Viewing notes
  • Searching notes
  • Downloading notes as HTML and reStructuredText
  • Web interface to edit notes. I will probably not implement this. Patches welcome :-)

grauphel 1.0.0 is known to work with:

  • Tomboy 1.15.2, Linux
  • Tomboy 1.15.1, Windows
  • Tomdroid 0.7.5, Android 4.4.1

See the HowTo document for client-specific configuration instructions.

You can use nextCloud's global search on the top right.

During search, the note's titles, tags and content are searched.

Search syntax:

foo
Search for notes containing "foo"
foo bar
Search for notes containing "foo" and "bar"
"foo bar" baz
Search for notes containing "foo bar" and "baz"
foo -bar
Search for notes containing "foo" but not "bar"

Note

grauphel needs to be activated for all users. It will not work with the "enable only for specific groups" setting.

  1. Log into nextcloud as administrator
  2. Goto "Apps"
  3. Enable experimental apps in the settings
  4. Click "Productivity"
  5. Look for "grauphel - Tomboy sync server"
  6. Click "Activate"
  1. SSH onto your web server

  2. Navigate to the nextcloud apps directory, often in /var/www/nextcloud/apps

  3. Download the latest release from https://github.com/grosjo/nextcloud-grauphel/releases/ and extract it. For example:

    $ wget https://github.com/grosjo/fts-xapian/archive/refs/tags/1.0.0.tar.gz -O grauphel-1.0.0.tar.gz
    $ tar xjvf grauphel-1.0.0.tar.gz
    $ rm grauphel-1.0.0.tar.gz
    

    You do have a directory /var/www/nextcloud/apps/grauphel now.

  4. Using your browser, login as administrator into nextCloud and click the "Apps" icon in the main menu ("+" icon).

  5. Click on "Grauphel: Tomboy note server" and then on the "Enable" button.

  6. In the main menu, click the "Tomboy notes" icon.

It may be that grauphel now shows you an error message:

PHP extension "oauth" is required

You have to install the PHP PECL oauth extension now. On Debian 9 or higher, do the following:

$ apt install php-oauth
$ phpenmod oauth
$ /etc/init.d/apache2 restart

Reload the nextCloud page in your browser now.

Note

oauth-1.2.3 is only needed on PHP 5.x For PHP 7 simply use pecl install oauth.

See https://github.com/grosjo/nextcloud-grauphel/releases/ for all released versions.

Joan Moreau, [email protected]

Christian Weiske, [email protected], http://cweiske.de/

  • JSON coming from Tomboy: Title is html-escaped already (e.g. > is >). We store it that way in the database, so there is no need to escape the output.
  • latest-sync-revision sent from Tomboy during PUT sync is already incremented by 1.
  1. Validate appinfo/info.xml:

    $ xmllint --noout --schema tools/info.xsd appinfo/info.xml
    
  2. Validate appinfo/database.xml:

    $ xmllint --noout --schema tools/database.xsd appinfo/database.xml
    
  3. Fill the ChangeLog file with the changes since the last release, mention the new version number.

  4. Update README.rst and increase the version number

  5. Create the grauphel release file with:

    $ phing
    

    The file will be in dist/

nextcloud-grauphel's People

Contributors

cweiske avatar grosjo avatar joshp23 avatar magicfab avatar mwerle avatar ramcq avatar timeraider4u avatar vinzv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nextcloud-grauphel's Issues

time problem

OS: opensuse tumbleweed-april 2016 - Kernel 4.5.0

Server: Apache 2.4 - PHP Version 5.6.20 - Owncloud 9.0.1 - Grauphel 0.6.3

Client: Tomboy Windows and Tomdroid aswell

Trying to register tomboy with grauphel got this error with mysql, tomboy-client said "Server not responding, Try again later".
#1292 - Incorrect datetime value: '2016-05-06T09:27:15+00:00' for column 'token_lastuse' at row 1

Exception: {"Exception":"Doctrine\DBAL\Exception\DriverException","Message":"An exception occurred while executing 'INSERT INTO oc_grauphel_oauth_tokens(token_user, token_type, token_key, token_secret, token_verifier, token_callback, token_client, token_lastuse) VALUES(?, ?, ?, ?, ?, ?, ?, ?)' with params [null, "temp", "rc2e4681974540792", "sddcd21c7d1f79cd9", "", "http:\/\/localhost:8000\/tomboy-web-sync\/", "", "2016-05-06T09:27:15+00:00"]:\n\nSQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '2016-05-06T09:27:15+00:00' for column 'token_lastuse' at row 1","Code":0,"Trace":"#0 /srv/www/htdocs/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(116): Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException))\n#1 /srv/www/htdocs/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(836): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Driver\PDOException), 'INSERT INTO oc...', Array)\n#2 \/srv\/www\/htdocs\/owncloud\/lib\/private\/db\/connection.php(184): Doctrine\\DBAL\\Connection->executeQuery('INSERT INTOoc...', Array, Array, NULL)\n#3 /srv/www/htdocs/owncloud/apps/grauphel/lib/tokenstorage.php(81): OC\DB\Connection->executeQuery('INSERT INTO `*P...', Array)\n#4 /srv/www/htdocs/owncloud/apps/grauphel/controller/oauthcontroller.php(266): OCA\Grauphel\Lib\TokenStorage->store(Object(OCA\Grauphel\Lib\Token))\n#5 [internal function]: OCA\Grauphel\Controller\OauthController->requestToken()\n#6 /srv/www/htdocs/owncloud/lib/private/appframework/http/dispatcher.php(159): call_user_func_array(Array, Array)\n#7 /srv/www/htdocs/owncloud/lib/private/appframework/http/dispatcher.php(89): OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Grauphel\Controller\OauthController), 'requestToken')\n#8 /srv/www/htdocs/owncloud/lib/private/appframework/app.php(110): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Grauphel\Controller\OauthController), 'requestToken')\n#9 /srv/www/htdocs/owncloud/lib/private/appframework/routing/routeactionhandler.php(45): OC\AppFramework\App::main('OauthController', 'requestToken', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)\n#10 [internal function]: OC\AppFramework\routing\RouteActionHandler->__invoke(Array)\n#11 /srv/www/htdocs/owncloud/lib/private/route/router.php(273): call_user_func(Object(OC\AppFramework\routing\RouteActionHandler), Array)\n#12 /srv/www/htdocs/owncloud/lib/base.php(873): OC\Route\Router->match('/apps/grauphel/...')\n#13 /srv/www/htdocs/owncloud/index.php(39): OC::handleRequest()\n#14 {main}","File":"/srv/www/htdocs/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php","Line":115}

Error during first access: Call to undefined method ... ConnectionWrapper::executeQuery()

Hi,

I've installed Tomboy without problems but during the first access I get a blank page and the owncloud logfile contains the following information:

{"app":"PHP","message":"Call to undefined method OC\\DB\\ConnectionWrapper::executeQuery() at \/srv\/www\/ssl\/owncloud\/apps\/grauphel\/lib\/notestorage.php#63","level":3,"time":"2016-06-04T10:20:42+00:00"}

I'm running Owncloud 7.0.10

Regards
Lakri

Authentication problem on Webfaction

Hi,

I have owncloud 8 + grauphel installed on webfaction.
Due to the way Webfaction serves PHP applications [1] I had to use the workaround described in [2].
This works for calendar and file sync, but I think that it messes up oauth/grauphel: when I visit https://OWNCLOUD/index.php/apps/grauphel/api/1.0 I get a JSON document that looks correct, but https://OWNCLOUD/index.php/apps/grauphel/oauth/request_token results in an empty page (with no errors in owncloud.log). The rest of the grauphel app seems to be working OK.
As a result I cannot sync neither with Tomboy (I see 400 Bad Request in the messages) nor with tomdroid.
Is there a workaround?

[1] https://community.webfaction.com/questions/7249/is-possible-http-authentication-with-php
[2] http://theneum.com/blog/owncloud-7-webfaction/

oauth problem with basic auth

@theooze wrote:
Similar issue. i have:
server1, apache server w/ proxypass set to send server1/owncloud to server2/owncloud
server2, owncloud 7 installed. centos 6 php 5.3.3, oauth 1.2.3

w/ the new oauth.php in place when I hit the api/1.0 link on my server i get:

array(35) {
["HTTP_AUTHORIZATION"]=> string(26) "Basic [[HASH REMOVED]]"
["htaccessWorking"]=> string(4) "true"
["HTTP_HOST"]=> string(14) "[[server2.foo.com]]"
["HTTP_USER_AGENT"]=> string(68) "Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0"
["HTTP_ACCEPT"]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8" ["HTTP_ACCEPT_LANGUAGE"]=> string(14) "en-US,en;q=0.5"
["HTTP_ACCEPT_ENCODING"]=> string(13) "gzip, deflate"
["HTTP_COOKIE"]=> string(88) "oc507c3fb20d=p6kgksqavjl7j1ctt8vettfav1; kt_language=en; _ga=GA1.2.1920593290.1415926623"
["HTTP_X_FORWARDED_FOR"]=> string(13) "[[CLIENT_IP_REMOVED]]" ["HTTP_X_FORWARDED_HOST"]=> string(16) "[[server1.foo.com]]" ["HTTP_X_FORWARDED_SERVER"]=> string(16) "[[server1.foo.com]]"
["HTTP_CONNECTION"]=> string(10) "Keep-Alive"
["PATH"]=> string(29) "/sbin:/usr/sbin:/bin:/usr/bin"
["SERVER_SIGNATURE"]=> string(75) "Apache/2.2.15 (CentOS) Server at [[server2.foo.com]]Port 80
"
["SERVER_SOFTWARE"]=> string(22) "Apache/2.2.15 (CentOS)"
["SERVER_NAME"]=> string(14) "[[server2.foo.com]]"
["SERVER_ADDR"]=> string(12) "[[server1.foo.com]]"
["SERVER_PORT"]=> string(2) "80"
["REMOTE_ADDR"]=> string(12) "[[server1.foo.com]]"
["DOCUMENT_ROOT"]=> string(13) "/var/www/html"
["SERVER_ADMIN"]=> string(14) "root@localhost"
["SCRIPT_FILENAME"]=> string(32) "/var/www/html/owncloud/index.php"
["REMOTE_PORT"]=> string(5) "45743"
["GATEWAY_INTERFACE"]=> string(7) "CGI/1.1"
["SERVER_PROTOCOL"]=> string(8) "HTTP/1.1"
["REQUEST_METHOD"]=> string(3) "GET"
["QUERY_STRING"]=> string(0) ""
["REQUEST_URI"]=> string(41) "/owncloud/index.php/apps/grauphel/api/1.0"
["SCRIPT_NAME"]=> string(19) "/owncloud/index.php" ["PATH_INFO"]=> string(22) "/apps/grauphel/api/1.0"
["PATH_TRANSLATED"]=> string(35) "/var/www/html/apps/grauphel/api/1.0"
["PHP_SELF"]=> string(41) "/owncloud/index.php/apps/grauphel/api/1.0"
["PHP_AUTH_USER"]=> string(4) "[[user removed]]"
["PHP_AUTH_PW"]=> string(9) "[[passwd removed]]"
["REQUEST_TIME"]=> int(1417191369) } array(0) { }

on server1 i do have http basic auth setup for some uris, but not for /owncloud. so i cleared out my current logins in firefox and it was able to work. note that it failed w/ the updated oauth.php, worked w/ the 29-OCT version.

Weird repeated warning in owncloud.log: array_shift() expects exactly 1 parameter, 2 given at \/var\/www\/html\/owncloud\/apps\/grauphel\/lib\/converter\/html.php#110

{"reqId":"VfZfTh5PgEHFEcrSJ4D9jwAAAAM","remoteAddr":"192.168.xxx.xxx","app":"PHP","message":"array_shift() expects exactly 1 parameter, 2 given at /var/www/html/owncloud/apps/grauphel/lib/converter/html.php#110","level":3,"time":"2015-09-14T05:46:54+00:00","method":"GET","url":"/owncloud/index.php/apps/grauphel/note/75aa6d2b-44ac-4a86-8b4b-fdcc4399191f"}

owncloud 8.1.1
grauphel 0.5.1
centos 7 (7.1.1503)
PHP 5.4.16

Document oauth setup via .deb package

On Debian and derivatives, the oauth dependency can be satisfied by installing the php5-oauth package, which has a couple of advantages over the manual way you describe:

  • The first step of the manual procedure, apt-get install libpcre3-dev php-pear php5-dev, will, among others, install the full autotools suite—which may not be desirable on a production server
  • Installing the .deb package will allow you to benefit from automatic updates—potentially desirable for a security component
  • Some people (like me) simply prefer to do as much as possible through .deb packages

It would be great if you could include that method in the installation instructions, next to the PECL way.

Known Issue: TomDroid support

I just wanted to leave you some information from the log after an attempt to sync TomDroid and to help with TomDroid support and have an issue to track it's progress. :-)

This is on OC 7.0.2 w/ postgres + php 5.6

Error   PHP     Undefined property: OAuthProvider::$verifier at apps/grauphel/lib/oauth.php#88  2014-09-14T19:11:39+00:00
Error   PHP     Argument 1 passed to OCA\Grauphel\Lib\TokenStorage::store() must be an instance of OCA\Grauphel\Lib\OAuth_Token, instance of OCA\Grauphel\Lib\Token given, called in apps/grauphel/controller/oauthcontroller.php on line 178 and defined at apps/grauphel/lib/tokenstorage.php#36  2014-09-14T19:11:38+00:00
Error   PHP Argument 1 passed to OCA\Grauphel\Lib\TokenStorage::store() must be an instance of OCA\Grauphel\Lib\OAuth_Token, instance of OCA\Grauphel\Lib\Token given, called in apps/grauphel/controller/oauthcontroller.php on line 248 and defined at apps/grauphel/lib/tokenstorage.php#36  2014-09-14T19:11:31+00:00

Sharing single notes with other users

I am running an owncloud instance for my family, and I am looking for a note synchronization solution that would allow me to share selected notes with other users or group of users, just like I can share files on owncloud. Judging from the screenshots grauphel does not support that. If that is correct, consider this a kind feature request.

error inserting notes on postgres

I get this message in the OC log when I press the sync button in Tomboy.

Any clues on how to fix this?

 {"app":"index","message":"Doctrine\\DBAL\\DBALException: An exception occurred while executing 'INSERT INTO \"oc_grauphel_notes\" (\"note_guid\", \"note_title\", \"note_content\", \"note_content_version\", \"note_create_date\", \"note_last_change_date\", \"note_last_metadata_change_date\", \"note_open_on_startup\", \"note_pinned\", \"note_tags\", \"note_last_sync_revision\", \"note_user\") VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)':\n\nSQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: \"\"","level":4,"time":"2014-09-09T18:31:42+00:00"}

From: http://apps.owncloud.com/content/show.php?content=166654

Error on Enabling in apps admin

*** This may be caused by previous installation of Grauphel ***

I have installed the app by following the procedure on
http://cweiske.de/grauphel.htm#manual

The following error message is given when trying to enable it though

An exception occurred while executing
 'CREATE TABLE `oc_grauphel_oauth_tokens`
 (`token_id` BIGINT AUTO_INCREMENT NOT NULL,
  `token_user` VARCHAR(64) DEFAULT NULL,
  `token_type` VARCHAR(16) NOT NULL,
  `token_key` VARCHAR(128) NOT NULL,
  `token_secret` VARCHAR(128) NOT NULL,
  `token_verifier` VARCHAR(128) NOT NULL,
  `token_callback` VARCHAR(2048) NOT NULL,
  `token_client` VARCHAR(256) NOT NULL,
  `token_lastuse` DATETIME NOT NULL,
  PRIMARY KEY(`token_id`)
 )
 DEFAULT CHARACTER SET utf8 COLLATE utf8_bin ENGINE = InnoDB':
 SQLSTATE[42S01]: Base table or view already exists:
 1050 Table 'oc_grauphel_oauth_tokens' already exists

Can you please advise procedure to remove error. I have backup copies of notes so not worried about losing them.

php extension oauth required

I am running owncloud on top of an ubuntu 14.04 server. I already installed the package php5-oauth via apt-get. However I always will get this error message if I click on the tomboy notes icon on owncloud:
PHP extension "oauth" is required

However there is still an other package available called:
php-horde-oauth - Horde OAuth client/server

I assume this is not the package I need to install?

Do you have an Idea how to figure out what to do in order to investigate this problem?

Titled blank notes cause error

Tomboy 1.15.4
Tomdroid 0.7.5
Grauphel 0.2.0
owncloud 7.0.2
postgresql 9.4

I could not get all my notes to sync from tomboy to grauphel and tomdroid would say sync complete with zero notes. Upon looking at the owncloud log I see this...

https://gist.github.com/mitzip/bf9a2d2542a7b1940191

It is a titled, but blank note. I started it and never added anything to it. I deleted that note and all devices started working.

Getting a 404 from the url

On 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux (Mint 17 distro)

running wdfs from command line:
wdfs -o accept_sslcert -D https://cloud.infoscienceinc.com/index.php/apps/grauphel testGrauphe
wdfs settings:
program_name: wdfs
webdav_resource: https://cloud.infoscienceinc.com/index.php/apps/grauphel
accept_certificate: true
username: NULL
password: NULL
redirect: true
svn_mode: false
locking_mode: 0
locking_timeout: 300
WARNING: untrusted server certificate for 'cloud.infoscienceinc.com':
certificate is valid from Fri, 27 Jun 2014 07:15:17 GMT to Sat, 27 Jun 2015 07:15:17 GMT
issued to: InfoScience Inc, Fort Lauderdale, Florida, US
issued by: InfoScience Inc, Fort Lauderdale, Florida, US

error: could not mount remote server 'https://cloud.infoscienceinc.com/index.php/apps/grauphel'. reason: 404 Not Found.

(same response with user/pw given)

On the server, log says:
203.217.112.14 - - [12/Oct/2014:17:10:54 +0000] "OPTIONS /index.php/apps/grauphel HTTP/1.1" 404 5754

grauphel version: 2014-10-03

owncloud version : ownCloud 7.0.2 (stable)

Thanks

Tomboy (Linux) 1.15.4 does not sync

I couldnt get Tomboy to sync using a really old set of notes i dug up, (but it works fine with Tomdroid 0.7.5). relevant debug output is below. Unsure of where to start debugging. Would try with gnote but it doesnt have API sync.

I have not yet tried to downgrade my version to a known-good one ( 1.15.2 is stated to work in the README)

Suggestions appreciated. I have not yet filed a bug report for Tomboy.

[DEBUG 15:33:39.191] SyncThread using SyncServiceAddin: Tomboy Web
[DEBUG 15:33:39.197] Building web request for URL: https://my.domain/owncloud/index.php/apps/grauphel/api/1.0/
[DEBUG 15:33:40.604] Building web request for URL: https://my.domain/owncloud/index.php/apps/grauphel/api/1.0/username
[DEBUG 15:33:40.672] 8
[DEBUG 15:33:40.673] Sync: GetNoteUpdatesSince rev -1
[DEBUG 15:33:40.674] Building web request for URL: https://my.domain/owncloud/index.php/apps/grauphel/api/1.0/username/notes?include_notes=true

(Tomboy:8234): GLib-CRITICAL **: Source ID 182 was not found when attempting to remove it

(Tomboy:8234): GLib-CRITICAL **: Source ID 172 was not found when attempting to remove it

(Tomboy:8234): GLib-CRITICAL **: Source ID 194 was not found when attempting to remove it

(Tomboy:8234): GLib-CRITICAL **: Source ID 56 was not found when attempting to remove it

(Tomboy:8234): GLib-CRITICAL **: Source ID 48 was not found when attempting to remove it
[ERROR 15:33:41.223] Synchronization failed with the following exception: a name did not start with a legal character 38 (&)  Line 6, position 2.
  at Mono.Xml2.XmlTextReader.ReadName (System.String& prefix, System.String& localName) [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadName () [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadEntityReference (Boolean ignoreEntityReferences) [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadReference (Boolean ignoreEntityReferences) [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadText (Boolean notWhitespace) [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
  at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
  at Tomboy.Sync.NoteUpdate..ctor (System.String xmlContent, System.String title, System.String uuid, Int32 latestRevision) [0x00000] in <filename unknown>:0 
  at Tomboy.WebSync.WebSyncServer.GetNoteUpdatesSince (Int32 revision) [0x00000] in <filename unknown>:0 
  at Tomboy.Sync.SyncManager.SynchronizationThread () [0x00000] in <filename unknown>:0 

(Tomboy:8234): GLib-CRITICAL **: g_source_remove: assertion 'tag > 0' failed
[DEBUG 15:49:11.887] SyncThread using SyncServiceAddin: Tomboy Web
[DEBUG 15:49:11.887] Building web request for URL: https://my.domain/owncloud/index.php/apps/grauphel/api/1.0/
[DEBUG 15:49:12.183] Building web request for URL: https://my.domain/owncloud/index.php/apps/grauphel/api/1.0/username
[DEBUG 15:49:12.239] 8
[DEBUG 15:49:12.240] Sync: GetNoteUpdatesSince rev -1
[DEBUG 15:49:12.240] Building web request for URL: https://my.domain/owncloud/index.php/apps/grauphel/api/1.0/username/notes?include_notes=true

(Tomboy:8234): GLib-CRITICAL **: Source ID 198 was not found when attempting to remove it

(Tomboy:8234): GLib-CRITICAL **: Source ID 200 was not found when attempting to remove it

(Tomboy:8234): GLib-CRITICAL **: Source ID 204 was not found when attempting to remove it

(Tomboy:8234): GLib-CRITICAL **: Source ID 453 was not found when attempting to remove it

(Tomboy:8234): GLib-CRITICAL **: Source ID 203 was not found when attempting to remove it

(Tomboy:8234): GLib-CRITICAL **: Source ID 454 was not found when attempting to remove it

(Tomboy:8234): GLib-CRITICAL **: Source ID 459 was not found when attempting to remove it
[ERROR 15:49:12.813] Synchronization failed with the following exception: a name did not start with a legal character 38 (&)  Line 6, position 2.
  at Mono.Xml2.XmlTextReader.ReadName (System.String& prefix, System.String& localName) [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadName () [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadEntityReference (Boolean ignoreEntityReferences) [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadReference (Boolean ignoreEntityReferences) [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadText (Boolean notWhitespace) [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
  at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
  at Tomboy.Sync.NoteUpdate..ctor (System.String xmlContent, System.String title, System.String uuid, Int32 latestRevision) [0x00000] in <filename unknown>:0 
  at Tomboy.WebSync.WebSyncServer.GetNoteUpdatesSince (Int32 revision) [0x00000] in <filename unknown>:0 
  at Tomboy.Sync.SyncManager.SynchronizationThread () [0x00000] in <filename unknown>:0 

(Tomboy:8234): GLib-CRITICAL **: g_source_remove: assertion 'tag > 0' failed
[DEBUG 15:52:14.257] SyncThread using SyncServiceAddin: Tomboy Web
[DEBUG 15:52:14.257] Building web request for URL: https://my.domain/owncloud/index.php/apps/grauphel/api/1.0/
[DEBUG 15:52:14.723] Building web request for URL: https://my.domain/owncloud/index.php/apps/grauphel/api/1.0/username
[DEBUG 15:52:14.777] 8
[DEBUG 15:52:14.778] Sync: GetNoteUpdatesSince rev -1
[DEBUG 15:52:14.778] Building web request for URL: https://my.domain/owncloud/index.php/apps/grauphel/api/1.0/username/notes?include_notes=true

(Tomboy:8234): GLib-CRITICAL **: Source ID 582 was not found when attempting to remove it

(Tomboy:8234): GLib-CRITICAL **: Source ID 594 was not found when attempting to remove it

(Tomboy:8234): GLib-CRITICAL **: Source ID 581 was not found when attempting to remove it

(Tomboy:8234): GLib-CRITICAL **: Source ID 41 was not found when attempting to remove it

(Tomboy:8234): GLib-CRITICAL **: Source ID 171 was not found when attempting to remove it

(Tomboy:8234): GLib-CRITICAL **: Source ID 451 was not found when attempting to remove it

(Tomboy:8234): GLib-CRITICAL **: Source ID 11 was not found when attempting to remove it
[ERROR 15:52:15.197] Synchronization failed with the following exception: a name did not start with a legal character 38 (&)  Line 6, position 2.
  at Mono.Xml2.XmlTextReader.ReadName (System.String& prefix, System.String& localName) [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadName () [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadEntityReference (Boolean ignoreEntityReferences) [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadReference (Boolean ignoreEntityReferences) [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadText (Boolean notWhitespace) [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
  at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
  at Tomboy.Sync.NoteUpdate..ctor (System.String xmlContent, System.String title, System.String uuid, Int32 latestRevision) [0x00000] in <filename unknown>:0 
  at Tomboy.WebSync.WebSyncServer.GetNoteUpdatesSince (Int32 revision) [0x00000] in <filename unknown>:0 
  at Tomboy.Sync.SyncManager.SynchronizationThread () [0x00000] in <filename unknown>:0 

(Tomboy:8234): GLib-CRITICAL **: g_source_remove: assertion 'tag > 0' failed

oauth problem with php7

(Moved comment from #36 into a new issue.)

Hm, here it doesn't work anymore since updating to php7.

Debian 8 with php 7.0.5-1 from dotdeb, owncloud 9.0.1, grauphel 0.6.2, oauth 2.0.1 installed via pecl, and tomboy 1.15.4 (on Fedora).

A call to /index.php/apps/grauphel/oauth/request_token gets a 400 Bad Request, with this body

94
oauth_problem=parameter_absent&oauth_parameters_absent=oauth_consumer_key%26oauth_signature%26oauth_signature_method%26oauth_nonce%26oauth_timestamp
0

although the request itself contained all these fields:

POST /index.php/apps/grauphel/oauth/request_token HTTP/1.1
Authorization: OAuth realm="Snowy",oauth_callback="http%3A%2F%2Flocalhost%3A8000%2Ftomboy-web-sync%2F",oauth_consumer_key="anyone",oauth_nonce="...",oauth_signature="...",oauth_signature_method="HMAC-SHA1",oauth_timestamp="...",oauth_version="1.0"
Content-Type: application/json
Content-Length: 0
Host: ...

Any idea what's going wrong here?

Syncing Tomdroid with grauphel on nextcloud 11

I installed grauphel on my nextcloud 11 (running on an armbian system).
Installation went fine and when i pointed my TomDroid to the server I could authenticate and everything.
But whenever I try to sync, I get an error-message:

Fehler beim Verarbeiten der Antwort von Online-Synchronisation
(Sorry don't know the English version of that message)

Do you have any idea where that comes from?

Sync error owncloud 9.0.1 grauphel 0.6.2

Hi Christian!
Since my owncloud and grauphel upgrade i get an error message on every sync complaining about an missing argument for some constructor. Are you aware of this issue?

{"reqId":"fdsfdsfdsfsdf","remoteAddr":"xxx.xxx.xxx.xxx","app":"PHP","message":"Missing argument 1 for OCA\Grauphel\Lib\TokenStorage::__construct(), called in /mnt/data/www/owncloud/apps/grauphel/lib/dependencies.php on line 69 and defined at /mnt/data/www/owncloud/apps/grauphel/lib/tokenstorage.php#34","level":3,"time":"timestamp","method":"GET","url":"/owncloud/index.php/apps/grauphel/api/1.0/user/notes","user":"--"}

Thanks for this great app... i already feel bad for not maintaining tomdroid properly :-( I really should change this!
Greetings,
Stefan

no minimal version defined

Diese App hat keine minimale ownCloud Version zugeordnet. Dies wird ein Fehler in ownCloud 11 und später sein.

PHP 7 compatibility

It looks like PHP 7 and/or oauth-2.0.0 (lower versions don't build with PHP 7) break clients' synchronization (tested on Tomboy and Tomdroid).
All I see in logs is: "GET /index.php/apps/grauphel/api/1.0/ HTTP/1.1" 401 294.
ownCloud version is 8.2.2. With PHP 5 all was fine.

Get "PHP extension "oauth" is required" after reboot

Hi,

i want to install grauphel on a vServer from server4you - Ubuntu 12.04 + Plesk. Owncloud 7.0.2.
I installed oauth with pecl install oauth.
Put /etc/init.d/apache2 restart to console and after that shutdown -r 0.

phpinfo() wrote
OAuth
OAuth support enabled
PLAINTEXT support enabled
RSA-SHA1 support enabled
HMAC-SHA1 support enabled
Request engine support php_streams
source version $Id: oauth.c 325799 2012-05-24 21:07:51Z jawed $
version 1.2.3

Still getting "PHP extension "oauth" is required".

System.Net.WebException: The remote server returned an error: (400) Bad Request.

I have upgraded grauphel to 0.6.1 and yet I get the same "bad request" error.

06.10.2015 16:59:53 [ERROR]: Caught exception. Message: The remote server returned an error: (400) Bad Request.
06.10.2015 16:59:53 [ERROR]: Stack trace for previous exception:   at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00000] in <filename unknown>:0 
06.10.2015 16:59:53 [ERROR]: Rest of stack trace for above exception:    at System.Environment.get_StackTrace()
   at Tomboy.WebSync.Api.OAuth.MakeWebRequest(RequestMethod method, System.String url, System.Collections.Generic.List`1 parameters, System.String postData)
   at Tomboy.WebSync.Api.OAuth.WebRequest(RequestMethod method, System.String url, System.String postData)
   at Tomboy.WebSync.Api.OAuth.Post(System.String uri, IDictionary`2 queryParameters, System.String postValue)
   at Tomboy.WebSync.Api.OAuth.GetAuthorizationUrl()
   at Tomboy.WebSync.WebSyncPreferencesWidget.OnAuthButtonClicked(System.Object sender, System.EventArgs args)
   at System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod , System.Object , System.Object[] , System.Exception ByRef )
   at System.Reflection.MonoMethod.Invoke(System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(System.Object obj, System.Object[] parameters)
   at System.Delegate.DynamicInvokeImpl(System.Object[] args)
   at System.MulticastDelegate.DynamicInvokeImpl(System.Object[] args)
   at System.Delegate.DynamicInvoke(System.Object[] args)
   at GLib.Signal.ClosureInvokedCB(System.Object o, GLib.ClosureInvokedArgs args)
   at GLib.SignalClosure.Invoke(GLib.ClosureInvokedArgs args)
   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Tomboy.GnomeApplication.StartMainLoop()
   at Tomboy.Application.StartMainLoop()
   at Tomboy.Tomboy.StartTrayIcon()
   at Tomboy.Tomboy.Main(System.String[] args)
06.10.2015 16:59:53 [ERROR]: Failed to get auth URL from https://owncloud.****.org/index.php/apps/grauphel. Exception was: System.Net.WebException: The remote server returned an error: (400) Bad Request.
  at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00000] in <filename unknown>:0 
06.10.2015 17:00:01 [ERROR]: Caught exception. Message: The remote server returned an error: (400) Bad Request.
06.10.2015 17:00:01 [ERROR]: Stack trace for previous exception:   at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00000] in <filename unknown>:0 
06.10.2015 17:00:01 [ERROR]: Rest of stack trace for above exception:    at System.Environment.get_StackTrace()
   at Tomboy.WebSync.Api.OAuth.MakeWebRequest(RequestMethod method, System.String url, System.Collections.Generic.List`1 parameters, System.String postData)
   at Tomboy.WebSync.Api.OAuth.WebRequest(RequestMethod method, System.String url, System.String postData)
   at Tomboy.WebSync.Api.OAuth.Post(System.String uri, IDictionary`2 queryParameters, System.String postValue)
   at Tomboy.WebSync.Api.OAuth.GetAuthorizationUrl()
   at Tomboy.WebSync.WebSyncPreferencesWidget.OnAuthButtonClicked(System.Object sender, System.EventArgs args)
   at System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod , System.Object , System.Object[] , System.Exception ByRef )
   at System.Reflection.MonoMethod.Invoke(System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(System.Object obj, System.Object[] parameters)
   at System.Delegate.DynamicInvokeImpl(System.Object[] args)
   at System.MulticastDelegate.DynamicInvokeImpl(System.Object[] args)
   at System.Delegate.DynamicInvoke(System.Object[] args)
   at GLib.Signal.ClosureInvokedCB(System.Object o, GLib.ClosureInvokedArgs args)
   at GLib.SignalClosure.Invoke(GLib.ClosureInvokedArgs args)
   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Tomboy.GnomeApplication.StartMainLoop()
   at Tomboy.Application.StartMainLoop()
   at Tomboy.Tomboy.StartTrayIcon()
   at Tomboy.Tomboy.Main(System.String[] args)
06.10.2015 17:00:01 [ERROR]: Failed to get auth URL from https://owncloud.*****.org/index.php/apps/grauphel. Exception was: System.Net.WebException: The remote server returned an error: (400) Bad Request.
  at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00000] in <filename unknown>:0

This is the kind of entry I see in the webserver log:

217.95.221.202 - - [06/Oct/2015:17:35:35 +0200] "GET /index.php/apps/grauphel/api/1.0 HTTP/1.1" 200 4462 "-" "-"
217.95.221.202 - - [06/Oct/2015:17:35:36 +0200] "POST /index.php/apps/grauphel/oauth/request_token HTTP/1.1" 400 1076 "-" "-"

I don't see anything in the owncloud log file.

Tomboy ciphers

Thanks for that nice app!

This is slightly off topic, but I didn't find any information about the problem.

The problem is with the SSL ciphers Tomboy supports. I got the following error trying to sync with this app:
SSL_do_handshake() failed (SSL: error:1408A0C1:SSL routines:SSL3_GET_CLIENT_HELLO:no shared cipher) while SSL handshaking

So obviously Tomboy is expecting ciphers that my server doesn't provide. Do you know which ciphers Tomboy supports? I really don't want to activate TLS_RSA_WITH_RC4_128_MD5 only to get the sync running...

Thanks a lot!

Tabs ignored

As Tomboy doesn't have support for tables, I sometimes use sections formatted in monospace, and then tabs to obtain pseudo tables. In Grauphel, the tabs are not honoured.

The Tomboy HTML export uses <span style="font-family:monospace">...</span> for monospaced regions, and also sets the white-space style to pre-wrap, which causes the tabs to be displayed properly by modern browsers.

A similar approach could easily be used by Grauphel. However, it currently uses nl2br(), which, in combination with white-space: pre-wrap, leads to too many newlines.

As a side note, Grauphel currently uses <tt> which will not be supported in HTML5.

Slash in notebook name (Tomboy) makes Grauphel fail

I created a notebook on Tomboy with name "LS_11/12", containing a note named "Note3". The note does seem to sync over to Grauphel, because I can acess it from Tomdroid without a problem.

However, when trying to open Tomboy notes the Owncloud web interface, I get the following error:
Parameter "rawtag" for route "grauphel.gui.tag" must match "[^/]+?" ("system:notebook:LS_11/12" given).
This is on Owncloud 7.

I would expect Grauphel to handle notebook names the same way that Tomboy does.

Run the App without PHP PECL oauth extension?

Hi!
I am a full hearted user of this app for about 2 years now and still like tomboy stuff…Anyway, i bought myself some webspace but unfortunately i am not able to do the installation routine when it comes to PHP PECL oauth extension, because i am only a costumer and not an admin of the webspace....
Sooo…Is there a way to get the app running without installing oauth?

Thanks, Benjamin.

Checkboxes in Grauphel/Tomboy

It would be great to have a checkbox formatting option as offered for example in the "Denkzettel" Android app https://play.google.com/store/apps/details?id=com.silli.notizen&hl=en ? As in where [] is transformed into clickabe checkbox? This question is more about a Tomboy core functionality but since I found discussions online http://osdir.com/ml/gnome.tomboy/2005-02/msg00033.html, but no solution I thought I d ask in the owncloud app forum. I remembered some developers complaining about the comment section there so I came here to open an issue. I m sure this is of interest for people who consider tomboy/Grauphel as note taking app...thanks in advance!

Unable to connect using IP

I set up owncloud and grauphel on my computer. When I connected via localhost, everything worked as expected. Then I wanted to sync via LAN, using the internal IP 192.168.1.4. It failed on Conboy and Tomboy (N900 and LM 17.2 respectively)

Are there any ports which need to be freed in my router?

Tomboy synchronizes sometimes from old to new

Hi Christian,

I edited a note X on my PC and synchronized it with our Tomboy server. The first synchronization worked fine. But when I edit the note again and try to synchronize it with the server Tomboy insists on replacing my newer local version with the older one from the server.

Both computers have the same time zone and nearly the same time. I could reproduce the behavior several times and it is still present.

Upgrade problem from 0.2 to 0.4

I successfully used version 0.2 of grauphel and wanted to upgrade to the current version 0.4:

  1. I deleted the 'grauphel' directory within the 'app' directory.
  2. I unzipped graupelk in a new folder called 'graupel' at the same place the olde folder was before.
  3. I opened the main page of my owncloud installation in the browser. -> There I am asked to perform an update. Once I run thid update I am getting this error message:

Updating ownCloud to version 7.0.2, this may take a while.

Wartungsmodus eingeschaltet
Datenbank-Schemenaktualisierung geprüft
An exception occurred while executing 'INSERT INTO oc_grauphel_oauth_tokens ("token_id", token_user, token_type, token_key, token_secret, token_verifier, token_callback) SELECT token_id, token_user, token_type, token_key, token_secret, token_verifier, token_callback FROM __temp__oc_grauphel_oauth_tokens': SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: oc_grauphel_oauth_tokens.token_client

The update was unsuccessful.Please report this issue to the ownCloud community.

As soon as I delete the grauphel directory again I am able to use owncloud without any issue.

Do you have an idea what is the problem here?
Is there a general upgrade guide for this app?

Thanks and kind regards Uwe

wrong scheme in grauphel's URL

My owncloud instance does https,

under 'index.php/apps/grauphel' the sync-server URL shown there is http, not https.

Is this supposed to be the case?

thanks,
udo.

SSL problem: Tomboy cannot connect to grauphel

Hello,
first thanks for your great app.
Unfortunately it is not working for me with tomboy, whereas it works fine with android.
The problem is the same as in tomboy-notes/tomboy#7, but there is no solution :/
Maybe you have an idea?
It happens when I try to connect to the server on the synchronisation tab of tomboy.

[ERROR 18:05:36.080] Caught exception. Message: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure
[ERROR 18:05:36.080] Stack trace for previous exception:   at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0 
  at Tomboy.WebSync.Api.AnonymousConnection.WebRequest (System.String method, System.String uri) [0x00000] in <filename unknown>:0 
[ERROR 18:05:36.080] Failed to get Root resource https://owncloud.server.de/index.php/apps/grauphel/api/1.0. Exception was: System.Net.WebException: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed.
  at Mono.Security.Protocol.Tls.RecordProtocol.ProcessAlert (AlertLevel alertLevel, AlertDescription alertDesc) [0x00000] in <filename unknown>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0 
  at Tomboy.WebSync.Api.AnonymousConnection.WebRequest (System.String method, System.String uri) [0x00000] in <filename unknown>:0 

Thank you!

Problem to auth with Tomdroid on OVH server

I installed it on owncloud and it's seems to work ok
i installed Tomdroid on my phone

and when i enter my URL
http://MYCLOUD/index.php/apps/grauphel i get a credentials errors

I see a "Manage access tokens" part in owncloud but how is it working ?


And when i go to
http://MYCLOUD/index.php/apps/grauphel/api/1.0 like written on the app first page

i get an blank page with just
"oauth_problem=signature_method_rejected"


Hi again,
saw your anwser on owncloud but it was already was i was doing :

if i enter the url in a browser i'm on your app main page without problem so the url is good

tried in browser to go to the api url you tell on the main page but i get a blank page with just written "oauth_problem=signature_method_rejected"

jquery-1.10.0.min.map missing

Hi,

I have the problem that I can not read or write notes in the web interface.
I can see the list of notebooks I created in Tomboy but when I click on one nothing happens.
They are full of notes and all work in tomboy.
Browsers developer console tells me that
core/js/jquery-1.10.0.min.map is missing.
Indeed, it is not there and it is not included in the zip file I can download here either.
Any clue if this is connected? And if so, where I get this map from?

Thanks a lot in advance!

Unable to register tomdroid 0.7.5 with grauphel 0.5.1 on owncloud 8.1.1

When registering for a new sync server on my android (4.1.2) phone, tomdroid would open a web browser to get a new oauth key. I login, get to the authorize page to give my device a name and click "yes authorize" but I keep getting an "authorization failed" on tomdroid side.

Following are some logs:

{"reqId":"VfZACP4xK5gDpQvzRGc@GQAAAAY","remoteAddr":"192.168.xxx.xxx","app":"PHP","message":"array_shift() expects exactly 1 parameter, 2 given at /var/www/html/owncloud/apps/grauphel/lib/converter/html.php#110","level":3,"time":"2015-09-14T03:33:28+00:00"}

{"reqId":"VfZXe0quGyLMNtWxnCLtXgAAAAM","remoteAddr":"192.168.xxx.xxx","app":"no app in context","message":"Current user is not logged in","level":0,"time":"2015-09-14T05:13:31+00:00","method":"GET","url":"/owncloud/index.php/apps/grauphel/oauth/authorize?client=org.tomdroid+v0.7.5%2C+build+14%2C+Android+v4.1.2%2C+Sony%2FST27i&oauth_token=r933519dd0f197d16"}

HTTP 400 Bad Request

Hi,

I have a problem setting up the sync, both Tomdroid and Tomboy fails to connect to my server.
I get a 400 Bad Request from Tomboy.
I don't see other errors in my server logs, or in OwnCloud log.
I was experiencing this issue with OwnCloud 7, and testing on another server and upgrading to OwnCloud 8 didn't solve my problem.

Maybe I'm missing something obvious...

Could you please help me ?
Tell me if you need any information.

Thank you

Edit :
I've just found this thread https://bugzilla.redhat.com/show_bug.cgi?id=1241172
Maybe it is related to a bug on CentOS...
Edit 2 :
I've applied a temporary fix https://forum.owncloud.org/viewtopic.php?f=31&t=29185#p91250
It solves some problems I had with OwnCloud, but I still get the same error with Tomboy :

[DEBUG 17:26:09.190] Building web request for URL: https://owncloud.MYWEBSITE.com/index.php/apps/grauphel/oauth/request_token
[ERROR 17:26:09.534] Caught exception. Message: The remote server returned an error: (400) Bad Request.

Thanks for any advice

Openshift installation

Hi

I'm keen to try Grauphel but my OwnCloud instance is on Red Hat's OpenShift PaaS and I'm struggling to install the oauth package. I'm not familiar with PHP dependency management but it seems that OpenShift recommends Pear and does not support PECL.

Are Grauphel's dependencies available as Pear packages or can you give any advice on installing Grauphel on OpenShift?

Thanks
Anthony

Standalone version

So I really love this idea. However, I am not very interested in installing an own-cloud instance in order to implement this. It seems to me like a full blown owncloud install would be a rather heavy handed approach to gain the function of one app. Perhaps someone can help answer a question for me, is there a way to export this so that it runs as a standalone app? or, alternatively, is there a way to strip owncloud down to a very bare-bone, minimal environment to reduce it's footprint, thereby making this install easier to swallow for me?

Thanks

Internal Server Error: ownCloud 8.1.0.8 & grauphel 0.5.1: UrlGenerator: Escaping Problem?

Hi Christian,

I just installed grauphel, synced some notes and tried to access grauphel from within OwnCloud. I got an internal server error; seemingly because some problem with the Symfony UrlGenerator. It looks to me that it might be a problem with the escaping.

Here is the relevant part of the log:

Technische Details

    Entfernte Adresse: x.x.x.x
    Anforderungskennung: xxx/xxxx
    Typ: Symfony\Component\Routing\Exception\InvalidParameterException
    Code: 0
    Nachricht: Parameter "rawtag" for route "grauphel.gui.tag" must match "[^/]++" ("system:notebook:Kultur / Feuilleton" given) to generate a corresponding URL.
    Datei: /var/www/owncloud/3rdparty/symfony/routing/Symfony/Component/Routing/Generator/UrlGenerator.php
    Zeile: 167


Spur

#0 /var/www/owncloud/3rdparty/symfony/routing/Symfony/Component/Routing/Generator/UrlGenerator.php(140): Symfony\Component\Routing\Generator\UrlGenerator->doGenerate(Array, Array, Array, Array, Array, 'grauphel.gui.ta...', false, Array, Array)
#1 /var/www/owncloud/lib/private/route/router.php(306): Symfony\Component\Routing\Generator\UrlGenerator->generate('grauphel.gui.ta...', Array, false)
#2 /var/www/owncloud/lib/private/urlgenerator.php(65): OC\Route\Router->generate('grauphel.gui.ta...', Array)
#3 /var/www/owncloud/apps/grauphel/controller/guicontroller.php(292): OC\URLGenerator->linkToRoute('grauphel.gui.ta...', Array)
[...]

OwnCloud: "Error enabling app" error

I am trying to install Grauphel on an original Raspberry Pi Model B.

I'm able to get to the very end of the installation instructions, but when I try to enable Grauphel, rather than getting an error about the PECL oauth extension, I get a popup that simply indicates "Error enabling app" whose title is "Error".

I then tried installing the PECL oauth extension according to the instructions anyway, which appears to have succeeded, but I still get the same problem enabling Grauphel.

I realize that is very little error information to go on, but I don't know where ownCloud logs are stored, if anywhere. I'm happy to send more details if you can let me know what would be helpful. Thanks!

Nginx & php5-fpm, Debian Jessie, can't Authorized new Client

Hi there.
I cannot authorize any new client with grauphel. A previously registered tomdroid still works fine.

Infrastructure:
Internet -> nignx-loadbalancer -> onwcloudhost with nignx and php-fpm

Owncloud Host:
Debian Jessie
owncloud 8.2.x (8.2.1, 8.2.2)
grauphel (master, 0.6.1)

Clients:
tomdroid
tomboy 1.15.4
In Tomboy, I get "Server not responding".
Both clients do not redirect to the authorization page.

Servermessage: nothing in owncloud's logs
nginx logs:

x.x.x.x - cpalmer [13/Jan/2016:12:56:09 +0100] "PROPFIND /remote.php/webdav/KMM%20Portal HTTP/1.0" 404 238 "-" "Mozilla/5.0 (Macintosh) mirall/2.0.1"
x.x.x.x - - [13/Jan/2016:12:56:09 +0100] "GET /index.php/apps/grauphel/api/1.0 HTTP/1.0" 200 326 "-" "-"
x.x.x.x - - [13/Jan/2016:12:56:09 +0100] "GET /index.php/apps/grauphel/oauth/request_token HTTP/1.0" 405 0 "-" "-"

I guess this is somehow related to the last patches with the Authorization headers not being passed.
I have

    fastcgi_pass_header Authorization;

in the loadbalancer's and onwcloud host's nginx config.

Thanks for any help.

Provide download via https URL

Please provide a downlink over an URL that can be authenticated and/or provide some kind of checksum so we can verify that we have downloaded what you intended for us to download.

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.