Skip to content

Trying to create a URL that is already bookmarked. #70

@SomePoorBastard

Description

@SomePoorBastard

Software versions

  • Browser:
Google Chrome | 65.0.3325.181 (Official Build) (64-bit)
           -- | --
     Revision | dc3469be277cc962ba01d9c0cb5bb1a265676c36-refs/branch-heads/3325@{#725}
           OS | Linux
   JavaScript | V8 6.5.254.41
  • Nextcloud: 13.0.1
  • Nextcloud Bookmarks app: 0.11
  • Version has not changed since last report to nextcloud/bookmarks
  • Floccus: 2.0.5
  • Installed from release folder from github.

Steps to reproduce

  1. Start with two different directories with a variety of bookmarks in them on the browser side. At least one of those bookmarks between the two directories is a duplicate. The server bookmark structure and client bookmark structure should match.
  2. Remove the account from Floccus, then remove the current Floccus version from the browser.
  3. Move local bookmarks in a manner where the two directories are merged together.
  4. Reinstall Floccus. (In my case, it was from 2.0.2 to 2.0.5)
  5. Start the sync process.

Expected outcome

Expected that if a bookmark was already present on the server that that bookmark's information would be read { id, url, hash, etc... }, then updated locally
...

Actual outcome

I got a nice, pretty exception message :-)
...

Browser Log Trace

SERVERUPDATE Bookmarkdirty: truehashValue: 505180223id: 490localId: "787"path: "/Other bookmarks/Nextcloud (SomePoorBastard@https:\/\/nextcloud.example.com)"title: "Bookmark 1"url: "https://www.example.com/1"__proto__: Object BookmarkhashValue: 4238389446id: 490localId: "787"path: "/Other bookmarks/Nextcloud (SomePoorBastard@https:\/\/nextcloud.example.com)"title: "Bookmark 1"url: "https://www.example.com/1"__proto__: Object
Nextcloud.js:177 Fetching single bookmark Objecterror: nulllastSync: 1522721488796localRoot: "614"password: "$eCr3t"syncing: "initial"type: "nextcloud"url: "https://nextcloud.example.com"username: "SomePoorBastard"__proto__: Object
Account.js:233 SERVERUPDATE Bookmarkdirty: truehashValue: 1962405944id: 489localId: "762"path: "/Other bookmarks/Nextcloud (SomePoorBastard@https:\/\/nextcloud.example.com)"title: "Bookmark 2"url: "https://www.example.com/2"__proto__: Object BookmarkhashValue: 1174666737id: 489localId: "762"path: "/Other bookmarks/Nextcloud (SomePoorBastard@https:\/\/nextcloud.example.com)"title: "Bookmark 2"url: "https://www.example.com/2"__proto__: Object
Nextcloud.js:177 Fetching single bookmark Objecterror: nulllastSync: 1522721488796localRoot: "614"password: "$eCr3t"syncing: "initial"type: "nextcloud"url: "https://nextcloud.example.com"username: "SomePoorBastard"__proto__: Object
Account.js:249 Trying to create a URL that is already bookmarked. This shouldn't happen! Please tell the developer about this! url=https://medium.freecodecamp.org/
_callee15$ @ Account.js:249

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions