question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Floccus Unable to Remove Bookmarks

See original GitHub issue

Hello there. Before you read any further, I would like to thank you for taking the time to review this issue. I understand that your time is valuable and want to make sure that I am thorough and clear in documentation. Let me know if anything needs clarification

Notes about Bookmark API Support

I noticed while writing this issue up that the API documentation changed about eight days ago at the time of writing. Checking out your GitHub profile I can see you do contribue to both the Bookmarks app for Nextcloud and Floccus. I am unsure however if you have had time to adapt to those changes with this new API in place.

Main Issue

With this, know that some of the data I have provided is obfuscated/changed. This includes the username (changed to somepoorbastard), some IPs (different network address and/or subnet), and some timezone information. Other than this, all information should be unmodified.

I am using Mozilla Firefox with Floccus 2.0.0 installed. I am unable to synchronize the removal of bookmarks from the Nextcloud server. Hovering over the error reports that “Removing a bookmark on the server failed. remoteid=<#>”, where # is the id of the bookmark in question.

The debugging console accessed through about:debugging for Floccus revealed the following information:

Figure 1: Floccus Debug Log

Starting sync process for account somepoorbastard@https://192.168.2.251  Account.js:112:6
SERVERDELETE Auco3kb9ZJdZ 4  Account.js:145:10
SERVERDELETE Qrc7WBYmfzla 2  Account.js:145:10
SERVERDELETE -lEY1iUR2CA7 11  Account.js:145:10
SERVERDELETE U7nzVuxdYude 7  Account.js:145:10
Response { type: "basic", url: "https://192.168.2.251/index.php/apps/bookmarks/public/rest/v2/bookmark/4", redirected: false, status: 400, ok: false, statusText: "Bad request", headers: Headers, bodyUsed: false }  Nextcloud.js:265:4
Syncing failed with Error: Removing a bookmark on the server failed. remoteId=4
Stack trace:
_callee5$@moz-extension://c2c2db29-f4d1-4310-a497-0fd27388a489/dist/js/background-script.js:7036:23
tryCatch@moz-extension://c2c2db29-f4d1-4310-a497-0fd27388a489/dist/js/polyfill.js:6150:37
invoke@moz-extension://c2c2db29-f4d1-4310-a497-0fd27388a489/dist/js/polyfill.js:6424:22
defineIteratorMethods/</prototype[method]@moz-extension://c2c2db29-f4d1-4310-a497-0fd27388a489/dist/js/polyfill.js:6183:16
step@moz-extension://c2c2db29-f4d1-4310-a497-0fd27388a489/dist/js/background-script.js:6443:183
step/<@moz-extension://c2c2db29-f4d1-4310-a497-0fd27388a489/dist/js/background-script.js:6443:361
run@moz-extension://c2c2db29-f4d1-4310-a497-0fd27388a489/dist/js/polyfill.js:3911:22
notify/<@moz-extension://c2c2db29-f4d1-4310-a497-0fd27388a489/dist/js/polyfill.js:3924:28
flush@moz-extension://c2c2db29-f4d1-4310-a497-0fd27388a489/dist/js/polyfill.js:1209:9
  Account.js:132:6
	_callee9$ Account.js:132:6
	tryCatch moz-extension://c2c2db29-f4d1-4310-a497-0fd27388a489/dist/js/polyfill.js:6150:37
	invoke moz-extension://c2c2db29-f4d1-4310-a497-0fd27388a489/dist/js/polyfill.js:6424:22
	defineIteratorMethods/</prototype[method] moz-extension://c2c2db29-f4d1-4310-a497-0fd27388a489/dist/js/polyfill.js:6183:16
	step moz-extension://c2c2db29-f4d1-4310-a497-0fd27388a489/dist/js/background-script.js:4400:183
	step/< moz-extension://c2c2db29-f4d1-4310-a497-0fd27388a489/dist/js/background-script.js:4400:402
	run moz-extension://c2c2db29-f4d1-4310-a497-0fd27388a489/dist/js/polyfill.js:3911:22
	notify/< moz-extension://c2c2db29-f4d1-4310-a497-0fd27388a489/dist/js/polyfill.js:3924:28
	flush moz-extension://c2c2db29-f4d1-4310-a497-0fd27388a489/dist/js/polyfill.js:1209:9
Response { type: "basic", url: "https://192.168.2.251/index.php/ap…", redirected: false, status: 400, ok: false, statusText: "Bad request", headers: Headers, bodyUsed: false }  Nextcloud.js:265:4
Response { type: "basic", url: "https://192.168.2.251/index.php/ap…", redirected: false, status: 400, ok: false, statusText: "Bad request", headers: Headers, bodyUsed: false }  Nextcloud.js:265:4
Response { type: "basic", url: "https://192.168.2.251/index.php/ap…", redirected: false, status: 400, ok: false, statusText: "Bad request", headers: Headers, bodyUsed: false }  Nextcloud.js:265:4

Note that the version of Firefox is the latest currently available at the time of this report. Figure 2: about:support tab from Firefox

Name 	Firefox
Version 	59.0.1
Build ID 	20180317143930
Update History 	
User Agent 	Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0
OS 	Linux 4.15.9-300.fc27.x86_64
Extensions:
Floccus (nextcloud Sync)	2.0.0	true	floccus@handmadeideas.org

I did use a development branch of the Bookmarks for Nextcloud App, following the instructions for manual deployment. The Git revision is specified at the bottom.

Figure 3: Bookmarks for Nextcloud App Information

Bookmark App Information:
less info.xml
<?xml version="1.0"?>
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
        <id>bookmarks</id>
        <name>Bookmarks</name>
        <summary>A Bookmark manager for Nextcloud</summary>
        <description><![CDATA[Bookmark manager for Nextcloud]]></description>
        <version>0.11.0</version>
        <licence>agpl</licence>
        <author mail="blizzz@arthur-schiwon.de" homepage="https://www.arthur-schiwon.de">Arthur Schiwon</author>
        <author mail="mklehr@gmx.net">Marcel Klehr</author>
        <author>Marvin Thomas Rabe</author>
        <author>Stefan Klemm</author>
        <category>organization</category>
        <website>https://github.com/nextcloud/bookmarks</website>
        <bugs>https://github.com/nextcloud/bookmarks/issues</bugs>
        <repository type="git">https://github.com/nextcloud/bookmarks.git</repository>
        <screenshot small-thumbnail="https://raw.githubusercontent.com/nextcloud/bookmarks/master/screenshots/Bookmarks-small.png">https://raw.githubusercontent.com/nextcloud/bookmarks/master/screenshots/Bookmarks.png</screenshot>
        <dependencies>
                <owncloud min-version="9.0" max-version="9.2" />
                <nextcloud min-version="9" max-version="14" />
        </dependencies>
</info>
Git Revision: bdd0d06ee62791a58824a61cef2e050dc3107736

Figure 4: Nextcloud Version.php

$OC_Version = array(13,0,1,1);
$OC_VersionString = '13.0.1';
$OC_Edition = '';
$OC_Channel = 'stable';
$OC_VersionCanBeUpgradedFrom = array (
  'nextcloud' => 
  array (
    '12.0' => true,
    '13.0' => true,
  ),
  'owncloud' => 
  array (
  ),
);
$OC_Build = '2018-03-13T18:49:57+00:00 c2cea293d54bbbdf908346cdf3acc2a545142ba1';
$vendor = 'nextcloud';

I don’t believe this is a server-side issue from my interpretation of the HTTP 400 error returned by the response seen in the Floccus Debug Log. The nginx log itself is of no apparent use:

Figure 5: nginx.log (snipped section)

{"reqId":"jnZpo0bCKQczOAPtrPGt","level":1,"time":"March 20, 2018 01:09:42","remoteAddr":"192.168.1.39","user":"--","app":"admin_audit","method":"DELETE","url":"\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark\/4","message":"Login attempt: \"somepoorbastard\"","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"LHJ7zAiHZgD8mHYYGT5L","level":1,"time":"March 20, 2018 01:09:42","remoteAddr":"192.168.1.39","user":"--","app":"admin_audit","method":"DELETE","url":"\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark\/2","message":"Login attempt: \"somepoorbastard\"","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"9v4OwH6aZmzQZRCo9Cka","level":1,"time":"March 20, 2018 01:09:42","remoteAddr":"192.168.1.39","user":"--","app":"admin_audit","method":"DELETE","url":"\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark\/11","message":"Login attempt: \"somepoorbastard\"","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"jnZpo0bCKQczOAPtrPGt","level":1,"time":"March 20, 2018 01:09:42","remoteAddr":"192.168.1.39","user":"somepoorbastard","app":"admin_audit","method":"DELETE","url":"\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark\/4","message":"Login successful: \"somepoorbastard\"","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"LHJ7zAiHZgD8mHYYGT5L","level":1,"time":"March 20, 2018 01:09:42","remoteAddr":"192.168.1.39","user":"somepoorbastard","app":"admin_audit","method":"DELETE","url":"\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark\/2","message":"Login successful: \"somepoorbastard\"","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"9v4OwH6aZmzQZRCo9Cka","level":1,"time":"March 20, 2018 01:09:42","remoteAddr":"192.168.1.39","user":"somepoorbastard","app":"admin_audit","method":"DELETE","url":"\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark\/11","message":"Login successful: \"somepoorbastard\"","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"jnZpo0bCKQczOAPtrPGt","level":1,"time":"March 20, 2018 01:09:42","remoteAddr":"192.168.1.39","user":"somepoorbastard","app":"admin_audit","method":"DELETE","url":"\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark\/4","message":"Logout occurred","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"LHJ7zAiHZgD8mHYYGT5L","level":1,"time":"March 20, 2018 01:09:42","remoteAddr":"192.168.1.39","user":"somepoorbastard","app":"admin_audit","method":"DELETE","url":"\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark\/2","message":"Logout occurred","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"9v4OwH6aZmzQZRCo9Cka","level":1,"time":"March 20, 2018 01:09:42","remoteAddr":"192.168.1.39","user":"somepoorbastard","app":"admin_audit","method":"DELETE","url":"\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark\/11","message":"Logout occurred","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"nzlIh3kU1TDl4sClAoCM","level":1,"time":"March 20, 2018 01:09:43","remoteAddr":"192.168.1.39","user":"--","app":"admin_audit","method":"DELETE","url":"\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark\/7","message":"Login attempt: \"somepoorbastard\"","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"nzlIh3kU1TDl4sClAoCM","level":1,"time":"March 20, 2018 01:09:43","remoteAddr":"192.168.1.39","user":"somepoorbastard","app":"admin_audit","method":"DELETE","url":"\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark\/7","message":"Login successful: \"somepoorbastard\"","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"nzlIh3kU1TDl4sClAoCM","level":1,"time":"March 20, 2018 01:09:43","remoteAddr":"192.168.1.39","user":"somepoorbastard","app":"admin_audit","method":"DELETE","url":"\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark\/7","message":"Logout occurred","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"jnZpo0bCKQczOAPtrPGt","level":1,"time":"March 20, 2018 01:09:43","remoteAddr":"192.168.1.39","user":"--","app":"admin_audit","method":"DELETE","url":"\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark\/4","message":"Login attempt: \"somepoorbastard\"","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"LHJ7zAiHZgD8mHYYGT5L","level":1,"time":"March 20, 2018 01:09:43","remoteAddr":"192.168.1.39","user":"--","app":"admin_audit","method":"DELETE","url":"\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark\/2","message":"Login attempt: \"somepoorbastard\"","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"9v4OwH6aZmzQZRCo9Cka","level":1,"time":"March 20, 2018 01:09:43","remoteAddr":"192.168.1.39","user":"--","app":"admin_audit","method":"DELETE","url":"\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark\/11","message":"Login attempt: \"somepoorbastard\"","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"jnZpo0bCKQczOAPtrPGt","level":1,"time":"March 20, 2018 01:09:43","remoteAddr":"192.168.1.39","user":"somepoorbastard","app":"admin_audit","method":"DELETE","url":"\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark\/4","message":"Login successful: \"somepoorbastard\"","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"LHJ7zAiHZgD8mHYYGT5L","level":1,"time":"March 20, 2018 01:09:43","remoteAddr":"192.168.1.39","user":"somepoorbastard","app":"admin_audit","method":"DELETE","url":"\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark\/2","message":"Login successful: \"somepoorbastard\"","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"9v4OwH6aZmzQZRCo9Cka","level":1,"time":"March 20, 2018 01:09:43","remoteAddr":"192.168.1.39","user":"somepoorbastard","app":"admin_audit","method":"DELETE","url":"\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark\/11","message":"Login successful: \"somepoorbastard\"","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"nzlIh3kU1TDl4sClAoCM","level":1,"time":"March 20, 2018 01:09:44","remoteAddr":"192.168.1.39","user":"--","app":"admin_audit","method":"DELETE","url":"\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark\/7","message":"Login attempt: \"somepoorbastard\"","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"nzlIh3kU1TDl4sClAoCM","level":1,"time":"March 20, 2018 01:09:44","remoteAddr":"192.168.1.39","user":"somepoorbastard","app":"admin_audit","method":"DELETE","url":"\/index.php\/apps\/bookmarks\/public\/rest\/v2\/bookmark\/7","message":"Login successful: \"somepoorbastard\"","userAgent":"Mozilla\/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}

I believe the versions are compatible with each other, but cannot figure out what request is being sent to the server. Looking for guidance on where to look next.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
SomePoorBastardcommented, Mar 21, 2018

@aktentasche The ID number of the bookmarks in question are not displayed in the UI of the Nextcloud Bookmarks app in browser. This would make it tedious to determine which ones to delete; assuming you have access and authorization to Nextcloud’s database backend. If the URL or the ID were shown (since both are considered unique) it wouldn’t be as big an issue.

0reactions
marcelklehrcommented, Mar 24, 2018

Ok, thanks for the feedback 😃 Looking forward to your new issue 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Floccus 3.2.0: Error when deleting bookmarks #216 - GitHub
As the "cannot delete bookmarks" bug #213 was supposed to be fixed in Floccus 3.2.0, the first thing I tried was to delete...
Read more >
FAQ - floccus.org
When using Nextcloud Bookmarks you currently can only have one separator per folder. How are browser-internal URLs treated?
Read more >
Bookmarks app with floccus creates extra items and missing ...
Deleting all bookmarks and disabling the Bookmark app and not using Flocuss is the only way I've found to allow Nextcloud the be...
Read more >
3 Best Ways to Fix Chrome Bookmarks Not Deleting Issue
Unable to delete bookmarks in Chrome permanently? Here are three best fixes when Chrome Bookmarks don't get deleted properly.
Read more >
Deleting bookmarks from home screen - Apple Community
I accidentally added a bookmark from safari to my Home Screen and I cannot figure out how to delete it. When I hold...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found