Hello there,
anyone who's up for a bit of testing in order to get an earlier glimpse at the new features of the upcoming floccus (folder sync ;)) version can follow the guide below.
Folders are now synced by utilizing specialized tags that contain the path of the folder the bookmark is in, e.g. floccus:>your>folder.
Note: You'll need the latest changes of the bookmarks app on the server as well. version 0.11.0 of the bookmarks app in your nextcloud .
chrome://extensions/Load unpacked extension and select the root folder of the floccus buildchrome://extensions/.crx file into the page to installabout:debuggingLoad tempoprary addon and select the manifest file in the root folder of the floccus buildIn case you experience problems, file an issue on this repo. In order to aid in debugging, please provide client-side logs:
about:debuggingdebug button next to floccus entryforce Sync for the account of your choice.chrome://extensionsDeveloper modedist/html/background.html button in floccus' entry next to "Inspect views: "force Sync for the account of your choiceCheers!
Marcel
It turns out the choice of magic string (__floccus-path:) was a bit too verbose, it leads some users to think there's something wrong and clutters up the UI with useless text, so I'm thinking about changing it to something like floccus:/foo/bar
Sounds good to me.
I getting some error in chrome.
Error loading extension
Impossible to load extension from source folder...
Impossible to load page on backgroud „dist/html/background.html“.
tried from unpacked zip
@jookk ah, my bad. I forgot to add the zipped build to the release (the zipped source will not work). Here you go :)
@marcelklehr Thank You! Beta created new folder on my chrome bookmarks and downloaded all nc bookmarks to that.
But, I missing mobile sync (import bookmarks to mobile ff or chrome) :(
@jookk Yes, ideally you would be able to install floccus on firefox for android (see #3). Until Firefox for android supports this, you can make use of the following android app: https://github.com/theScrabi/OCBookmarks It's not the same, but it works.
Unfortunately, I've discovered that having tags with slashes in them breaks the nextcloud REST API, due to Apache decoding even the urlencoded slashes and treating them as path separators. The result is that people cannot delete the tags floccus sets in nextcloud. It's still possible to remove tags from a bookmark, but deleting a tag from the app directly is not possible when it contains slashes. (see https://github.com/nextcloud/bookmarks/issues/441)
So, I'm also considering changing the path separator for these tags, even though I'm unhappy about that. I'm thinking maybe >, as it indicates a direction?
so, e.g. instead of floccus:/blog articles/technology/ it'd be floccus:>blog articles>technology>.
Using colons might be easier on the eyes, though: floccus::blog articles:technology:,
or even the infamous backslash: floccus:\blog articles\technology\
Hi!
I tried your latest dev branch and I am hitting the following error intermittently:
Fetching bookmarks Object { type: "nextcloud", url: "https://www/nextcloud", username: "user", password: "password", syncing: true, error: "creatUrl is not defined" }
Any idea what is going wrong? Sometimes when I start all over and just add one bookmark it fails like this. Other times it works. I don't even add a folder. I have the latest bookmarks app github source on my Nextcloud server.
Hey @SoftwareEngineer
thanks for reporting this. I've just fixed the typo :)
@marcelklehr Appreciate the quick fix! Now it starts to sync but then I run into the following error (no message found in nextcloud.log):
Fetching bookmarks Object { type: "nextcloud", url: "https://www/nextcloud", username: "user", password: "pass", syncing: true, error: "nextcloud API returned error" }
But then I also see the following afterwards:
Object { data: Array[274], status: "success" }
@SoftwareEngineer Since you appear to be acquainted with the browser dev tools, you could check the Network tab to see exactly what happens to the request that gets an error response. ;)
@marcelklehr So I found one bookmark causing an error presumably because there were some strange characters in the title ("—"). So I deleted it and removed everything and synced again. I am still getting "error" in the GUI but don't see an error in the Network tab anymore after removing the mentioned bookmark. However, I am sync'ing a lot of bookmarks and my server is fairly slow so it is taking a long time. Do you have a timeout that is kicking in or something that is causing it to show error in the GUI?
@SoftwareEngineer Can you post the error caused by the bookmark with the strange title? regarding the large set of bookmarks, I think it's unlikely that's causing problems. There might simply be other client-side bugs. What does the error message say? (Hover over the Error in the GUI.)
@SoftwareEngineer I just found an error concerning the creation of bookmarks on the server, in the develop branch. That might have been the bug you ran into. Should be fixed now.
@marcelklehr Regarding strange title issue. Here is the request:
"postData": {
"mimeType": "multipart/form-data; boundary=---------------------------164086561520606906801937991141",
"params": [],
"text": "-----------------------------164086561520606906801937991141\r\nContent-Disposition: form-data; name=\"url\"\r\n\r\nfile:///home/abc/nextcloud/file.html\r\n-----------------------------164086561520606906801937991141\r\nContent-Disposition: form-data; name=\"title\"\r\n\r\nFile's — abc\r\n-----------------------------164086561520606906801937991141\r\nContent-Disposition: form-data; name=\"item[tags][]\"\r\n\r\nfloccus:/foldername/\r\n-----------------------------164086561520606906801937991141--\r\n"
Response:
"response": {
"status": 400,
"statusText": "Bad request",
"httpVersion": "HTTP/1.1",
"headers": [
...
],
"cookies": [],
"content": {
"mimeType": "application/json; charset=utf-8",
"size": 18,
"text": "{\"status\":\"error\"}"
},
"redirectURL": "",
"headersSize": 2282,
"bodySize": 2300
},
@marcelklehr Thanks for fixing the issue concerning the creation of bookmarks on the server! It seems to be working now. The only issue is the one with the strange title but that is not a big deal at all. The title should be cleaned up anyway.
However, one thing is that when sync'ing the bookmarks firefox pegs the cpu @ 100% and firefox becomes very unresponse. Is there something that can be done about that?
@SoftwareEngineer Good news: The problem with the title is already fixed in nextcloud/bookmarks#424 :tada: (Without intending to :D)
I'll see what I can do about that cpu blockage :)
Beta 2 is out now, with custom folders, polished UI, the new tag prefix, and smarter syncing. :tada:
The beta should work with the bookmarks app out of the box, now, starting with the new version: v0.11.0 :)
Hi,
i'm getting issues with spaces and latin chars in folders.
Nextcloud version: 13.0.0
Bookmarks app: 0.11.0
Floccus version: 2.0.0 beta2
It does sync (and freezes! for about half a minute).
By the way, thanks for it! If there is anything to help with debuging just let me know.
I discovered the develop branch some days ago and finally can sync my bookmarks again across my devices and browsers. Big thx for your work here. The issues I came across:
Thanks for the feedback, folks!
@ffuentes The %-encoded characters are by design for now, but I will fix that. The freezing is fixed already, but hasn't made it into the beta 2 release :)
@phreaker0 I will look into the automatic folder removal. I would rather fix the problems with acceptance of protocols on the server-side (the complete break of the sync process is a safety measure for now, but will probably be a good opportunity for improvement). The error message is fixed now, though. :)
You mean that the error message should be fixed in the current develop HEAD, because I'm running that :-)
@phreaker0 Sorry, I meant I've fixed it locally. I've just pushed to the repo, so if you pull from the repo now it should be fixed for you, too :)
btw, don't run develop in a production environment, mind you, it will eat your bookmarks! :D (Especially the changes I've just pushed shouldn't be run with an account that's already been setup...)
thx.
no risk no fun :-D I'm aware of the bleeding edge status, I have backups for that.
i like the new status icons and the folder removal works for me, great stuff!
So, on the protocol front we decided to not add file or javascript to the accepted protocols on the server: https://github.com/nextcloud/bookmarks/issues/454
Thanks for the feedback on the badges :)
this is a pity, thanks for considering it.
I think I'll opt to ignore those bookmarks then, since throwing errors might be useless as most users
probably don't even want to remove those bookmarks.
That would be nice, as I could move back the unsupported bookmarks to the toolbar.
.......aaand it's out there. v2.0.0 is released! Thanks for your help testing the changes :heart: :)
Most helpful comment
Beta 2 is out now, with custom folders, polished UI, the new tag prefix, and smarter syncing. :tada: