[GH-ISSUE #157] Error: "xbelObj is undefined" #148

Closed
opened 2026-02-25 22:36:17 +03:00 by kerem · 50 comments
Owner

Originally created by @anmith on GitHub (Aug 27, 2018).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/157

Software versions

  • Browser: Firefox 61.0.2 (64-Bit)
  • Nextcloud: 13.0.5
  • Nextcloud Bookmarks app: -
  • Floccus: 3.0.3

Steps to reproduce

I installed Floccus using the Mozilla Add-Ons-page, added a WebDAV account and started an initial sync which worked as expected and showed that the sync went fine.

After a while, I noticed an exclaimation mark on the Floccus icon and when clicking on the Floccus icon I get the error: "xbelObj is undefined"

Originally created by @anmith on GitHub (Aug 27, 2018). Original GitHub issue: https://github.com/floccusaddon/floccus/issues/157 <!-- Hello there! Thank you for providing feedback! Please answer the below questions to allow for as smooth a process of tackling the issue as possible :) (Note: Everything surrounded by arrows, like this text for example, will not be visible.) --> ### Software versions <!-- Please provide the versions of the following software products in your set up --> * Browser: Firefox 61.0.2 (64-Bit) * Nextcloud: 13.0.5 * Nextcloud Bookmarks app: - * Floccus: 3.0.3 ### Steps to reproduce <!-- What did you do? Be as specific as possible --> I installed Floccus using the Mozilla Add-Ons-page, added a WebDAV account and started an initial sync which worked as expected and showed that the sync went fine. After a while, I noticed an exclaimation mark on the Floccus icon and when clicking on the Floccus icon I get the error: "xbelObj is undefined"
kerem closed this issue 2026-02-25 22:36:17 +03:00
Author
Owner

@anmith commented on GitHub (Aug 27, 2018):

Just had a look at the debug log. It starts with:

Starting sync process for account myaccount@https://mydomain/remote.php/webdav/
...
Successfully ended sync process for account myaccount@https://mydomain/remote.php/webdav/

After the first successful sync, there's 9 times the line:

Starting sync process for account myaccount@https://mydomain/remote.php/webdav/
Starting sync process for account myaccount@https://mydomain/remote.php/webdav/
Starting sync process for account myaccount@https://mydomain/remote.php/webdav/
Starting sync process for account myaccount@https://mydomain/remote.php/webdav/
Starting sync process for account myaccount@https://mydomain/remote.php/webdav/
Starting sync process for account myaccount@https://mydomain/remote.php/webdav/
Starting sync process for account myaccount@https://mydomain/remote.php/webdav/
Starting sync process for account myaccount@https://mydomain/remote.php/webdav/
Starting sync process for account myaccount@https://mydomain/remote.php/webdav/

<!-- gh-comment-id:416267253 --> @anmith commented on GitHub (Aug 27, 2018): Just had a look at the debug log. It starts with: Starting sync process for account myaccount@https://mydomain/remote.php/webdav/ ... Successfully ended sync process for account myaccount@https://mydomain/remote.php/webdav/ After the first successful sync, there's 9 times the line: Starting sync process for account myaccount@https://mydomain/remote.php/webdav/ Starting sync process for account myaccount@https://mydomain/remote.php/webdav/ Starting sync process for account myaccount@https://mydomain/remote.php/webdav/ Starting sync process for account myaccount@https://mydomain/remote.php/webdav/ Starting sync process for account myaccount@https://mydomain/remote.php/webdav/ Starting sync process for account myaccount@https://mydomain/remote.php/webdav/ Starting sync process for account myaccount@https://mydomain/remote.php/webdav/ Starting sync process for account myaccount@https://mydomain/remote.php/webdav/ Starting sync process for account myaccount@https://mydomain/remote.php/webdav/
Author
Owner

@marcelklehr commented on GitHub (Aug 27, 2018):

Mmh. It looks like there's an error parsing the XBEL file :/ Could you take a look at the file or perhaps post a redacted version here?

<!-- gh-comment-id:416324791 --> @marcelklehr commented on GitHub (Aug 27, 2018): Mmh. It looks like there's an error parsing the XBEL file :/ Could you take a look at the file or perhaps post a redacted version here?
Author
Owner

@anmith commented on GitHub (Aug 28, 2018):

Hmmm. Opening and closing tags are there, here's a shortened version:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xbel PUBLIC "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML" "http://www.python.org/topics/xml/dtds/xbel-1.0.dtd">
<xbel version="1.0">
<!--- highestId :245: for Floccus bookmark sync browser extension -->
<folder id="1">
    <title>Bookmarks Bar</title>
    <bookmark href="http://www.discogs.com/" id="124">
    <title>Discogs</title>
    </bookmark>
...
<folder id="244">
    <title>Other Bookmarks</title>
    <bookmark href="https://www.debian.org/" id="245">
    <title>Debian -- Das universelle Betriebssystem</title>
    </bookmark>
</folder>

</xbel>
<!-- gh-comment-id:416472610 --> @anmith commented on GitHub (Aug 28, 2018): Hmmm. Opening and closing tags are there, here's a shortened version: ``` <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xbel PUBLIC "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML" "http://www.python.org/topics/xml/dtds/xbel-1.0.dtd"> <xbel version="1.0"> <!--- highestId :245: for Floccus bookmark sync browser extension --> <folder id="1"> <title>Bookmarks Bar</title> <bookmark href="http://www.discogs.com/" id="124"> <title>Discogs</title> </bookmark> ... <folder id="244"> <title>Other Bookmarks</title> <bookmark href="https://www.debian.org/" id="245"> <title>Debian -- Das universelle Betriebssystem</title> </bookmark> </folder> </xbel> ```
Author
Owner

@jlbprof commented on GitHub (Aug 28, 2018):

It should be valid XML, so can you take that file and go to a website xml
validator upload it and check for errors?

Thanx

Julian

On Tue, Aug 28, 2018 at 1:57 AM anmith notifications@github.com wrote:

Hmmm. Opening and closing tags are there, here's a shortened version:

...


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/marcelklehr/floccus/issues/157#issuecomment-416472610,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJS39QzMbgYCSsqxE-EQYkI4-oQrd7BGks5uVOnvgaJpZM4WN1xK
.

<!-- gh-comment-id:416557562 --> @jlbprof commented on GitHub (Aug 28, 2018): It should be valid XML, so can you take that file and go to a website xml validator upload it and check for errors? Thanx Julian On Tue, Aug 28, 2018 at 1:57 AM anmith <notifications@github.com> wrote: > Hmmm. Opening and closing tags are there, here's a shortened version: > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE xbel PUBLIC "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML" "http://www.python.org/topics/xml/dtds/xbel-1.0.dtd"> > <xbel version="1.0"> > <!--- highestId :245: for Floccus bookmark sync browser extension --> > <folder id="1"> > <title>Bookmarks Bar</title> > <bookmark href="http://www.discogs.com/" id="124"> > <title>Discogs</title> > </bookmark> > ... > <folder id="244"> > <title>Other Bookmarks</title> > <bookmark href="https://www.debian.org/" id="245"> > <title>Debian -- Das universelle Betriebssystem</title> > </bookmark> > </folder> > > </xbel> > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <https://github.com/marcelklehr/floccus/issues/157#issuecomment-416472610>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AJS39QzMbgYCSsqxE-EQYkI4-oQrd7BGks5uVOnvgaJpZM4WN1xK> > . >
Author
Owner

@anmith commented on GitHub (Aug 28, 2018):

Hi,
thanks for the hint.

I used the PERL module XML::Validate to check the file and it reported some errors related to the HTML entity " " being used in the Bookmark title:

:394: parser error : Entity 'nbsp' not defined

I edited the two bookmarks where errors had been reported (replacing " " by " "), deleted the file on the Nextcloud-Server and triggered a new sync with option "trigger sync from scratch". The initial sync resulted in "all good".

A manual sync afterwards using the "Sync now" button also was "all good".

So it seems there's a need for HTML-entity handling in titles.

<!-- gh-comment-id:416585705 --> @anmith commented on GitHub (Aug 28, 2018): Hi, thanks for the hint. I used the PERL module XML::Validate to check the file and it reported some errors related to the HTML entity "&nbsp;" being used in the Bookmark title: :394: parser error : Entity 'nbsp' not defined I edited the two bookmarks where errors had been reported (replacing "&nbsp;" by " "), deleted the file on the Nextcloud-Server and triggered a new sync with option "trigger sync from scratch". The initial sync resulted in "all good". A manual sync afterwards using the "Sync now" button also was "all good". So it seems there's a need for HTML-entity handling in titles.
Author
Owner

@jlbprof commented on GitHub (Aug 28, 2018):

We may have to deal with that.

Can you find the exact lines in the XML file that caused the issue and post
them here?

Thanx

Julian

On Tue, Aug 28, 2018 at 8:34 AM anmith notifications@github.com wrote:

Hi,
thanks for the hint.

I used the PERL module XML::Validate to check the file and it reported
some errors related to the HTML entity " " being used in the Bookmark title:

:394: parser error : Entity 'nbsp' not defined

I edited the two bookmarks where errors had been reported (replacing " "
by " "), deleted the file on the Nextcloud-Server and triggered a new sync
with option "trigger sync from scratch". The initial sync resulted in "all
good".

A manual sync afterwards using the "Sync now" button also was "all good".

So it seems there's a need for HTML-entity handling in titles.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/marcelklehr/floccus/issues/157#issuecomment-416585705,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJS39WT3R3_klbBYhe9eCJ-Ou2gSTdiFks5uVUbNgaJpZM4WN1xK
.

<!-- gh-comment-id:416594292 --> @jlbprof commented on GitHub (Aug 28, 2018): We may have to deal with that. Can you find the exact lines in the XML file that caused the issue and post them here? Thanx Julian On Tue, Aug 28, 2018 at 8:34 AM anmith <notifications@github.com> wrote: > Hi, > thanks for the hint. > > I used the PERL module XML::Validate to check the file and it reported > some errors related to the HTML entity " " being used in the Bookmark title: > > :394: parser error : Entity 'nbsp' not defined > > I edited the two bookmarks where errors had been reported (replacing " " > by " "), deleted the file on the Nextcloud-Server and triggered a new sync > with option "trigger sync from scratch". The initial sync resulted in "all > good". > > A manual sync afterwards using the "Sync now" button also was "all good". > > So it seems there's a need for HTML-entity handling in titles. > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <https://github.com/marcelklehr/floccus/issues/157#issuecomment-416585705>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AJS39WT3R3_klbBYhe9eCJ-Ou2gSTdiFks5uVUbNgaJpZM4WN1xK> > . >
Author
Owner

@anmith commented on GitHub (Aug 28, 2018):

Sadly no, as I deleted the wrong xbel-File before syncing (see above).

But I just noticed another problem:

There seems to be a problem with HTML entities in the title in general. After closing and opening Firefox, the title "Postbank Banking & Brokerage" had been corrupted to "Postbank Banking &amp;amp;amp; Brokerage".

Corresponding entry in the xbel-file is:

        <bookmark href="https://meine.postbank.de/#/login" id="436">
        <title>Postbank Banking &amp;amp;amp;amp;amp; Brokerage</title>
        </bookmark>
<!-- gh-comment-id:416653998 --> @anmith commented on GitHub (Aug 28, 2018): Sadly no, as I deleted the wrong xbel-File before syncing (see above). But I just noticed another problem: There seems to be a problem with HTML entities in the title in general. After closing and opening Firefox, the title "Postbank Banking & Brokerage" had been corrupted to "Postbank Banking &amp;amp;amp;amp; Brokerage". Corresponding entry in the xbel-file is: ``` <bookmark href="https://meine.postbank.de/#/login" id="436"> <title>Postbank Banking &amp;amp;amp;amp;amp; Brokerage</title> </bookmark> ```
Author
Owner

@marcelklehr commented on GitHub (Aug 30, 2018):

I've just released v3.0.5 which should fix this.

<!-- gh-comment-id:417419000 --> @marcelklehr commented on GitHub (Aug 30, 2018): I've just released v3.0.5 which should fix this.
Author
Owner

@jd666 commented on GitHub (Aug 30, 2018):

Still getting same error with 3.0.5. Is there a some kind of test parser to find the bookmark where it breaks?

<!-- gh-comment-id:417459208 --> @jd666 commented on GitHub (Aug 30, 2018): Still getting same error with 3.0.5. Is there a some kind of test parser to find the bookmark where it breaks?
Author
Owner

@marcelklehr commented on GitHub (Aug 30, 2018):

mmmh.

@jd666 Try https://xmlvalidation.com/ or any result of your favorite search engine for "xml validation"

<!-- gh-comment-id:417462204 --> @marcelklehr commented on GitHub (Aug 30, 2018): mmmh. @jd666 Try https://xmlvalidation.com/ or any result of your favorite search engine for "xml validation"
Author
Owner

@jd666 commented on GitHub (Aug 30, 2018):

https://xmlvalidation.com/ errors because it doesn't use the referenced dtd:

  3: 21 Element type "xbel" must be declared.
  5: 16 Element type "folder" must be declared.
  6: 12 Element type "title" must be declared.
  7: 76 Element type "bookmark" must be declared.
  8: 12 Element type "title" must be declared.
  10: 60 Element type "bookmark" must be declared.
....

However xlint --validate bookmarks.xbel shows me no error.

<!-- gh-comment-id:417495746 --> @jd666 commented on GitHub (Aug 30, 2018): https://xmlvalidation.com/ errors because it doesn't use the referenced dtd:   | 3: | 21 | Element type "xbel" must be declared. -- | -- | -- | --   | 5: | 16 | Element type "folder" must be declared.   | 6: | 12 | Element type "title" must be declared.   | 7: | 76 | Element type "bookmark" must be declared.   | 8: | 12 | Element type "title" must be declared.   | 10: | 60 | Element type "bookmark" must be declared. .... However `xlint --validate bookmarks.xbel` shows me no error.
Author
Owner

@jlbprof commented on GitHub (Aug 30, 2018):

I wonder if the dtd line is getting removed or corrupted some how.
Because that is the only thing I can think of, since this has to be that it
is not being parsed.

On Thu, Aug 30, 2018 at 6:06 PM jd666 notifications@github.com wrote:

https://xmlvalidation.com/ errors because it doesn't use the referenced
dtd:
3: 21 Element type "xbel" must be declared.
5: 16 Element type "folder" must be declared.
6: 12 Element type "title" must be declared.
7: 76 Element type "bookmark" must be declared.
8: 12 Element type "title" must be declared.
10: 60 Element type "bookmark" must be declared.
....

However xlint --validate bookmarks.xbel shows me no error.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/marcelklehr/floccus/issues/157#issuecomment-417495746,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJS39VhlGE7y2dP-qHtoccsz4orEY9HXks5uWG_lgaJpZM4WN1xK
.

<!-- gh-comment-id:417498372 --> @jlbprof commented on GitHub (Aug 30, 2018): I wonder if the dtd line is getting removed or corrupted some how. Because that is the only thing I can think of, since this has to be that it is not being parsed. On Thu, Aug 30, 2018 at 6:06 PM jd666 <notifications@github.com> wrote: > https://xmlvalidation.com/ errors because it doesn't use the referenced > dtd: > 3: 21 Element type "xbel" must be declared. > 5: 16 Element type "folder" must be declared. > 6: 12 Element type "title" must be declared. > 7: 76 Element type "bookmark" must be declared. > 8: 12 Element type "title" must be declared. > 10: 60 Element type "bookmark" must be declared. > .... > > However xlint --validate bookmarks.xbel shows me no error. > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <https://github.com/marcelklehr/floccus/issues/157#issuecomment-417495746>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AJS39VhlGE7y2dP-qHtoccsz4orEY9HXks5uWG_lgaJpZM4WN1xK> > . >
Author
Owner

@jlbprof commented on GitHub (Aug 30, 2018):

You seem to be somewhat skilled.

If you are able to do this, please do. If you are not able to do this,
that is ok.

  1. Turn developer mode on for the Floccus extension
  2. Click on "Inspect Views: dist/html/background.html"
  3. Switch to console.
  4. Do the sync.
  5. You will see a red section talking about getting a 404 error with
    bookmarks.xbel.lock, this is not an error, it just means everything is ok.
  6. But immediately afterwards I bet you will see other errors, if you do
    can you take a screenshot of it?

Thank you

Julian

On Thu, Aug 30, 2018 at 6:18 PM Julian Brown julian@jlbprof.com wrote:

I wonder if the dtd line is getting removed or corrupted some how.
Because that is the only thing I can think of, since this has to be that it
is not being parsed.

On Thu, Aug 30, 2018 at 6:06 PM jd666 notifications@github.com wrote:

https://xmlvalidation.com/ errors because it doesn't use the referenced
dtd:
3: 21 Element type "xbel" must be declared.
5: 16 Element type "folder" must be declared.
6: 12 Element type "title" must be declared.
7: 76 Element type "bookmark" must be declared.
8: 12 Element type "title" must be declared.
10: 60 Element type "bookmark" must be declared.
....

However xlint --validate bookmarks.xbel shows me no error.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/marcelklehr/floccus/issues/157#issuecomment-417495746,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJS39VhlGE7y2dP-qHtoccsz4orEY9HXks5uWG_lgaJpZM4WN1xK
.

<!-- gh-comment-id:417500668 --> @jlbprof commented on GitHub (Aug 30, 2018): You seem to be somewhat skilled. If you are able to do this, please do. If you are not able to do this, that is ok. 1) Turn developer mode on for the Floccus extension 2) Click on "Inspect Views: dist/html/background.html" 3) Switch to console. 4) Do the sync. 5) You will see a red section talking about getting a 404 error with bookmarks.xbel.lock, this is not an error, it just means everything is ok. 6) But immediately afterwards I bet you will see other errors, if you do can you take a screenshot of it? Thank you Julian On Thu, Aug 30, 2018 at 6:18 PM Julian Brown <julian@jlbprof.com> wrote: > I wonder if the dtd line is getting removed or corrupted some how. > Because that is the only thing I can think of, since this has to be that it > is not being parsed. > > On Thu, Aug 30, 2018 at 6:06 PM jd666 <notifications@github.com> wrote: > >> https://xmlvalidation.com/ errors because it doesn't use the referenced >> dtd: >> 3: 21 Element type "xbel" must be declared. >> 5: 16 Element type "folder" must be declared. >> 6: 12 Element type "title" must be declared. >> 7: 76 Element type "bookmark" must be declared. >> 8: 12 Element type "title" must be declared. >> 10: 60 Element type "bookmark" must be declared. >> .... >> >> However xlint --validate bookmarks.xbel shows me no error. >> >> — >> You are receiving this because you commented. >> Reply to this email directly, view it on GitHub >> <https://github.com/marcelklehr/floccus/issues/157#issuecomment-417495746>, >> or mute the thread >> <https://github.com/notifications/unsubscribe-auth/AJS39VhlGE7y2dP-qHtoccsz4orEY9HXks5uWG_lgaJpZM4WN1xK> >> . >> >
Author
Owner

@anmith commented on GitHub (Aug 31, 2018):

Hi,
a problem with the dtd line could be possible - when checking my corrupted file with XML::Validate it complained about a http IO error until I removed the dtd line.
As I wan't sure if it's a problem with XML::Validate, I just removed the line - maybe I should have taken a closer look.

<!-- gh-comment-id:417562092 --> @anmith commented on GitHub (Aug 31, 2018): Hi, a problem with the dtd line could be possible - when checking my corrupted file with XML::Validate it complained about a http IO error until I removed the dtd line. As I wan't sure if it's a problem with XML::Validate, I just removed the line - maybe I should have taken a closer look.
Author
Owner

@marcelklehr commented on GitHub (Aug 31, 2018):

@anmith I don't think the dtd line was responsible, though, as fixing the entities (&nbsp;) seems to have fixed things for you, is that correct?

<!-- gh-comment-id:417615575 --> @marcelklehr commented on GitHub (Aug 31, 2018): @anmith I don't think the dtd line was responsible, though, as fixing the entities (`&nbsp;`) seems to have fixed things for you, is that correct?
Author
Owner

@marcelklehr commented on GitHub (Aug 31, 2018):

@jd666 Could it be that you are getting this error now: https://github.com/marcelklehr/floccus/issues/160 That one should be fixed in v3.0.6 🙈

<!-- gh-comment-id:417615845 --> @marcelklehr commented on GitHub (Aug 31, 2018): @jd666 Could it be that you are getting this error now: https://github.com/marcelklehr/floccus/issues/160 That one should be fixed in v3.0.6 :see_no_evil:
Author
Owner

@anmith commented on GitHub (Aug 31, 2018):

@marcelklehr: the entity coding works now

<title>Postbank Banking &amp; Brokerage</title>

but I still get the "xbelObj is undefined" error after the initial sync, even after updating to 3.0.6.

<!-- gh-comment-id:417621810 --> @anmith commented on GitHub (Aug 31, 2018): @marcelklehr: the entity coding works now `<title>Postbank Banking &amp; Brokerage</title>` but I still get the "xbelObj is undefined" error after the initial sync, even after updating to 3.0.6.
Author
Owner

@marcelklehr commented on GitHub (Aug 31, 2018):

@anmith What does your dtd look like and what does the validator say before and after removing the dtd?

<!-- gh-comment-id:417676955 --> @marcelklehr commented on GitHub (Aug 31, 2018): @anmith What does your dtd look like and what does the validator say before and after removing the dtd?
Author
Owner

@marcelklehr commented on GitHub (Aug 31, 2018):

The entities might still be the problem, as the xbel data is parsed as XML but serialized as HTML. XML doesn't have the named entities that html has (like the non-breaking space &nbsp;, etc.).

<!-- gh-comment-id:417681971 --> @marcelklehr commented on GitHub (Aug 31, 2018): The entities might still be the problem, as the xbel data is parsed as XML but serialized as HTML. XML doesn't have the named entities that html has (like the non-breaking space `&nbsp;`, etc.).
Author
Owner

@marcelklehr commented on GitHub (Aug 31, 2018):

This only happens in firefox, correct?

<!-- gh-comment-id:417682050 --> @marcelklehr commented on GitHub (Aug 31, 2018): This only happens in firefox, correct?
Author
Owner

@anmith commented on GitHub (Aug 31, 2018):

Hi,
it's in Firefox. Can't check Chrome as I uninstalled it some time ago.

When using XML::Validate to check the xbel-File, the first error reported is "Error: http error : Unknown IO error" which is gone in the moment I remove the line.

<!DOCTYPE xbel PUBLIC "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML" "http://www.python.org/topics/xml/dtds/xbel-1.0.dtd">

When opening the URL http://www.python.org/topics/xml/dtds/xbel-1.0.dtd in the Browser I get redirected to http://pyxml.sourceforge.net/topics/ with a 301 Moved permanently.

Following some links on the document, the right URL for the dtd seems to be http://pyxml.sourceforge.net/topics/dtds/xbel-1.0.dtd

After adding this URL, XML::Validate doesn't complain anymore about an "Error: http error : Unknown IO error", but starts complaining about the entities:

Error: :394: parser error : Entity 'nbsp' not defined

So it seems there's still a problem with the encoding.

<!-- gh-comment-id:417696953 --> @anmith commented on GitHub (Aug 31, 2018): Hi, it's in Firefox. Can't check Chrome as I uninstalled it some time ago. When using XML::Validate to check the xbel-File, the first error reported is "Error: http error : Unknown IO error" which is gone in the moment I remove the line. `<!DOCTYPE xbel PUBLIC "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML" "http://www.python.org/topics/xml/dtds/xbel-1.0.dtd">` When opening the URL http://www.python.org/topics/xml/dtds/xbel-1.0.dtd in the Browser I get redirected to http://pyxml.sourceforge.net/topics/ with a 301 Moved permanently. Following some links on the document, the right URL for the dtd seems to be http://pyxml.sourceforge.net/topics/dtds/xbel-1.0.dtd After adding this URL, XML::Validate doesn't complain anymore about an "Error: http error : Unknown IO error", but starts complaining about the entities: `Error: :394: parser error : Entity 'nbsp' not defined` So it seems there's still a problem with the encoding.
Author
Owner

@anmith commented on GitHub (Aug 31, 2018):

I tried to create a shortened example:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xbel PUBLIC "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML" "http://www.python.org/topics/xml/dtds/xbel-1.0.dtd">
<xbel version="1.0">
<folder id="1">
    <title>Other Bookmarks</title>
    <bookmark href="https://meine.postbank.de/#/login" id="191">
    <title>Postbank Banking &amp; Brokerage</title>
    </bookmark>
</folder>
</xbel>
<!-- gh-comment-id:417699170 --> @anmith commented on GitHub (Aug 31, 2018): I tried to create a shortened example: ``` <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xbel PUBLIC "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML" "http://www.python.org/topics/xml/dtds/xbel-1.0.dtd"> <xbel version="1.0"> <folder id="1"> <title>Other Bookmarks</title> <bookmark href="https://meine.postbank.de/#/login" id="191"> <title>Postbank Banking &amp; Brokerage</title> </bookmark> </folder> </xbel> ```
Author
Owner

@jlbprof commented on GitHub (Aug 31, 2018):

If that makes yours fail, we can probably track this down. I am work so
can't do much.

I did run it against this validator.

https://codebeautify.org/xmlvalidator

And it passes, so perhaps Firefox does not have a good validator.

On Fri, Aug 31, 2018 at 10:24 AM anmith notifications@github.com wrote:

I tried to create a shortened example:


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/marcelklehr/floccus/issues/157#issuecomment-417699170,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJS39XKQKWYGlyvSoNKuEIvZSHFCCisAks5uWVVBgaJpZM4WN1xK
.

<!-- gh-comment-id:417708379 --> @jlbprof commented on GitHub (Aug 31, 2018): If that makes yours fail, we can probably track this down. I am work so can't do much. I did run it against this validator. https://codebeautify.org/xmlvalidator And it passes, so perhaps Firefox does not have a good validator. On Fri, Aug 31, 2018 at 10:24 AM anmith <notifications@github.com> wrote: > I tried to create a shortened example: > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE xbel PUBLIC "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML" "http://www.python.org/topics/xml/dtds/xbel-1.0.dtd"> > <xbel version="1.0"> > <folder id="1"> > <title>Other Bookmarks</title> > <bookmark href="https://meine.postbank.de/#/login" id="191"> > <title>Postbank Banking &amp; Brokerage</title> > </bookmark> > </folder> > </xbel> > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <https://github.com/marcelklehr/floccus/issues/157#issuecomment-417699170>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AJS39XKQKWYGlyvSoNKuEIvZSHFCCisAks5uWVVBgaJpZM4WN1xK> > . >
Author
Owner

@anmith commented on GitHub (Aug 31, 2018):

I think it's the contrary: simple XML validators may just check if all open tags are closed, all attribute values are enclosed in quotes etc while better ones check agains the given dtd.

When running the XML above through https://xmlvalidation.com I get

  | 3: | 21 | Element type "xbel" must be declared.
  | 4: | 16 | Element type "folder" must be declared.
  | 5: | 12 | Element type "title" must be declared.
  | 6: | 65 | Element type "bookmark" must be declared.
  | 7: | 12 | Element type "title" must be declared.

as result which is something I expect as the URL to the dtd is invalid so the declaration is missing.

When replacing the URL in the DOCTYPE tag with the correct URL

<!DOCTYPE xbel PUBLIC "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML" "http://pyxml.sourceforge.net/topics/dtds/xbel-1.0.dtd">

I get different errors:

  | 4: | 16 | Attribute value "1" of type ID must be an NCName when namespaces are enabled.
  | 6: | 65 | Attribute value "191" of type ID must be an NCName when namespaces are enabled.

so the error "xbelObj is undefined" points to the right direction IMHO: Firefox not being able to get the dtd because of the invalid URL and so not being able to parse the XML.

<!-- gh-comment-id:417752433 --> @anmith commented on GitHub (Aug 31, 2018): I think it's the contrary: simple XML validators may just check if all open tags are closed, all attribute values are enclosed in quotes etc while better ones check agains the given dtd. When running the XML above through https://xmlvalidation.com I get ```   | 3: | 21 | Element type "xbel" must be declared.   | 4: | 16 | Element type "folder" must be declared.   | 5: | 12 | Element type "title" must be declared.   | 6: | 65 | Element type "bookmark" must be declared.   | 7: | 12 | Element type "title" must be declared. ``` as result which is something I expect as the URL to the dtd is invalid so the declaration is missing. When replacing the URL in the DOCTYPE tag with the correct URL ``` <!DOCTYPE xbel PUBLIC "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML" "http://pyxml.sourceforge.net/topics/dtds/xbel-1.0.dtd"> ``` I get different errors: ```   | 4: | 16 | Attribute value "1" of type ID must be an NCName when namespaces are enabled.   | 6: | 65 | Attribute value "191" of type ID must be an NCName when namespaces are enabled. ``` so the error "xbelObj is undefined" points to the right direction IMHO: Firefox not being able to get the dtd because of the invalid URL and so not being able to parse the XML.
Author
Owner

@marcelklehr commented on GitHub (Aug 31, 2018):

Aha. The latter error may be even more significant: https://stackoverflow.com/questions/25256989/attribute-value-001-of-type-id-must-be-an-ncname-when-namespaces-are-enabled#25258374

<!-- gh-comment-id:417780005 --> @marcelklehr commented on GitHub (Aug 31, 2018): Aha. The latter error may be even more significant: https://stackoverflow.com/questions/25256989/attribute-value-001-of-type-id-must-be-an-ncname-when-namespaces-are-enabled#25258374
Author
Owner

@marcelklehr commented on GitHub (Aug 31, 2018):

I still cannot reproduce this, though, which bugs me, as you'd think when the XML is invalid, firefox would reject it right from the start, but it didn't as you describe. So, even though the validation errors should be fixed, I doubt those are actually the problem.

@anmith Could you send the redacted debug log of a recent failed sync with floccus v3.0.6? I've since fixed logging in the webdav adapter to also write to the generated log file.

<!-- gh-comment-id:417791310 --> @marcelklehr commented on GitHub (Aug 31, 2018): I still cannot reproduce this, though, which bugs me, as you'd think when the XML is invalid, firefox would reject it right from the start, but it didn't as you describe. So, even though the validation errors should be fixed, I doubt those are actually the problem. @anmith Could you send the redacted debug log of a recent failed sync with floccus v3.0.6? I've since fixed logging in the webdav adapter to also write to the generated log file.
Author
Owner

@jlbprof commented on GitHub (Aug 31, 2018):

A one line change can fix the DTD problem, we just need to find out what
the current DTD is after all the redirects.

On Fri, Aug 31, 2018 at 4:16 PM Marcel Klehr notifications@github.com
wrote:

I still cannot reproduce this, though, which bugs me, as you'd think when
the XML is invalid, firefox would reject it right from the start, but it
didn't as you describe. So, even though the validation errors should be
fixed, I doubt those are actually the problem.

@anmith https://github.com/anmith Could you send the redacted debug log
of a recent failed sync with floccus v3.0.6? I've since fixed logging in
the webdav adapter to also write to the generated log file.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/marcelklehr/floccus/issues/157#issuecomment-417791310,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJS39c6sMR3AZcUuzQhYlDEbvyDMigBSks5uWaelgaJpZM4WN1xK
.

<!-- gh-comment-id:417799136 --> @jlbprof commented on GitHub (Aug 31, 2018): A one line change can fix the DTD problem, we just need to find out what the current DTD is after all the redirects. On Fri, Aug 31, 2018 at 4:16 PM Marcel Klehr <notifications@github.com> wrote: > I still cannot reproduce this, though, which bugs me, as you'd think when > the XML is invalid, firefox would reject it right from the start, but it > didn't as you describe. So, even though the validation errors should be > fixed, I doubt those are actually the problem. > > @anmith <https://github.com/anmith> Could you send the redacted debug log > of a recent failed sync with floccus v3.0.6? I've since fixed logging in > the webdav adapter to also write to the generated log file. > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <https://github.com/marcelklehr/floccus/issues/157#issuecomment-417791310>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AJS39c6sMR3AZcUuzQhYlDEbvyDMigBSks5uWaelgaJpZM4WN1xK> > . >
Author
Owner

@jlbprof commented on GitHub (Aug 31, 2018):

http://pyxml.sourceforge.net/topics/dtds/xbel.dtd

I found that on the pyxml site, does that seem correct? It internally
refers to itself as xbel-1.0 so that is probably right.

Julian

On Fri, Aug 31, 2018 at 4:55 PM Julian Brown julian@jlbprof.com wrote:

A one line change can fix the DTD problem, we just need to find out what
the current DTD is after all the redirects.

On Fri, Aug 31, 2018 at 4:16 PM Marcel Klehr notifications@github.com
wrote:

I still cannot reproduce this, though, which bugs me, as you'd think when
the XML is invalid, firefox would reject it right from the start, but it
didn't as you describe. So, even though the validation errors should be
fixed, I doubt those are actually the problem.

@anmith https://github.com/anmith Could you send the redacted debug
log of a recent failed sync with floccus v3.0.6? I've since fixed logging
in the webdav adapter to also write to the generated log file.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/marcelklehr/floccus/issues/157#issuecomment-417791310,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJS39c6sMR3AZcUuzQhYlDEbvyDMigBSks5uWaelgaJpZM4WN1xK
.

<!-- gh-comment-id:417800391 --> @jlbprof commented on GitHub (Aug 31, 2018): http://pyxml.sourceforge.net/topics/dtds/xbel.dtd I found that on the pyxml site, does that seem correct? It internally refers to itself as xbel-1.0 so that is probably right. Julian On Fri, Aug 31, 2018 at 4:55 PM Julian Brown <julian@jlbprof.com> wrote: > A one line change can fix the DTD problem, we just need to find out what > the current DTD is after all the redirects. > > On Fri, Aug 31, 2018 at 4:16 PM Marcel Klehr <notifications@github.com> > wrote: > >> I still cannot reproduce this, though, which bugs me, as you'd think when >> the XML is invalid, firefox would reject it right from the start, but it >> didn't as you describe. So, even though the validation errors should be >> fixed, I doubt those are actually the problem. >> >> @anmith <https://github.com/anmith> Could you send the redacted debug >> log of a recent failed sync with floccus v3.0.6? I've since fixed logging >> in the webdav adapter to also write to the generated log file. >> >> — >> You are receiving this because you commented. >> Reply to this email directly, view it on GitHub >> <https://github.com/marcelklehr/floccus/issues/157#issuecomment-417791310>, >> or mute the thread >> <https://github.com/notifications/unsubscribe-auth/AJS39c6sMR3AZcUuzQhYlDEbvyDMigBSks5uWaelgaJpZM4WN1xK> >> . >> >
Author
Owner

@anmith commented on GitHub (Sep 1, 2018):

@jlbprof this was also the URL I found, see comment https://github.com/marcelklehr/floccus/issues/157#issuecomment-417696953

<!-- gh-comment-id:417839014 --> @anmith commented on GitHub (Sep 1, 2018): @jlbprof this was also the URL I found, see comment https://github.com/marcelklehr/floccus/issues/157#issuecomment-417696953
Author
Owner

@anmith commented on GitHub (Sep 1, 2018):

@marcelklehr the log doesn't show much information, just 4 lines are added for every failed sync:

Starting sync process for account myaccount@https://mydomain/remote.php/webdav/
onSyncStart: begin
https://mydomain/remote.php/webdav/Bookmarks/filename.xbel.lock
https://mydomain/remote.php/webdav/Bookmarks/filename.xbel.lock
onSyncFail
<!-- gh-comment-id:417839168 --> @anmith commented on GitHub (Sep 1, 2018): @marcelklehr the log doesn't show much information, just 4 lines are added for every failed sync: ``` Starting sync process for account myaccount@https://mydomain/remote.php/webdav/ onSyncStart: begin https://mydomain/remote.php/webdav/Bookmarks/filename.xbel.lock https://mydomain/remote.php/webdav/Bookmarks/filename.xbel.lock onSyncFail ```
Author
Owner

@anmith commented on GitHub (Sep 1, 2018):

@jlbprof , @marcelklehr I tried to replace the URL in the DOCTYPE-definition on the server and then sync again, but still got the same error.

<!-- gh-comment-id:417839305 --> @anmith commented on GitHub (Sep 1, 2018): @jlbprof , @marcelklehr I tried to replace the URL in the DOCTYPE-definition on the server and then sync again, but still got the same error.
Author
Owner

@anmith commented on GitHub (Sep 1, 2018):

@jlbprof , @marcelklehr As it seems it wasn't the URL causing the problems, my plan for the next steps is:

  1. Export the bookmarks from Firefox (backup)
  2. Delete all bookmarks containing HTML entities within Firefox
  3. Delete the bookmarks file on the Nextcloud server
  4. Trigger an initial Floccus sync
  5. Add a bookmark without HTML entity
  6. See what happens when syncing
  7. Add a bookmark with HTML entity
  8. See what happens when syncing

Good idea?

<!-- gh-comment-id:417840251 --> @anmith commented on GitHub (Sep 1, 2018): @jlbprof , @marcelklehr As it seems it wasn't the URL causing the problems, my plan for the next steps is: 1) Export the bookmarks from Firefox (backup) 2) Delete all bookmarks containing HTML entities within Firefox 3) Delete the bookmarks file on the Nextcloud server 4) Trigger an initial Floccus sync 5) Add a bookmark without HTML entity 6) See what happens when syncing 7) Add a bookmark with HTML entity 8) See what happens when syncing Good idea?
Author
Owner

@marcelklehr commented on GitHub (Sep 1, 2018):

@anmith That would be awesome. Thank you!

Can you also try syncing with the following build? https://klehranlage.net/index.php/s/2fNbPdr9nfMiKZQ
It should report a potential parse error in the user interface.

<!-- gh-comment-id:417849957 --> @marcelklehr commented on GitHub (Sep 1, 2018): @anmith That would be awesome. Thank you! Can you also try syncing with the following build? https://klehranlage.net/index.php/s/2fNbPdr9nfMiKZQ It should report a potential parse error in the user interface.
Author
Owner

@anmith commented on GitHub (Sep 1, 2018):

Hi,
here's what I tried with 3.0.6 (read the message about the special built too late):

As I wasn't able to find all bookmarks causing problems, I tried a slightly different approach:

  1. Backup all bookmarks
  2. Delete all bookmarks in Firefox
  3. Delete bookmarks file on Nextcloud
  4. Start a sync with option "clear cache" => all good
  5. Add a bookmark for https://www.heise.de/
  6. Start a sync => all good
  7. Add a bookmark for https://www.debian.org/
  8. Start a sync => all good
  9. Add a bookmark for https://meine.postbank.de/#/login
  10. Start a sync => all good
  11. Add a bookmark for a random Amazon product
  12. Start a sync => all good
  13. Restore bookmars from backup
  14. Start a sync => all good
  15. Start a sync => Error: xbelObj is undefined

So it seems it's one of my bookmarks causing the problem(s). I'll continue investigating.

<!-- gh-comment-id:417853332 --> @anmith commented on GitHub (Sep 1, 2018): Hi, here's what I tried with 3.0.6 (read the message about the special built too late): As I wasn't able to find all bookmarks causing problems, I tried a slightly different approach: 01) Backup all bookmarks 02) Delete all bookmarks in Firefox 03) Delete bookmarks file on Nextcloud 04) Start a sync with option "clear cache" => all good 05) Add a bookmark for <https://www.heise.de/> 06) Start a sync => all good 07) Add a bookmark for <https://www.debian.org/> 08) Start a sync => all good 09) Add a bookmark for <https://meine.postbank.de/#/login> 10) Start a sync => all good 11) Add a bookmark for a random Amazon product 12) Start a sync => all good 13) Restore bookmars from backup 14) Start a sync => all good 14) Start a sync => Error: xbelObj is undefined So it seems it's one of my bookmarks causing the problem(s). I'll continue investigating.
Author
Owner

@marcelklehr commented on GitHub (Sep 1, 2018):

The special build should tell you exactly where in the XML file the error happens, so you don't need to try it with different bookmarks, just install the build temporarily via about:debugging and sync as you would normally to get the xbel error.

<!-- gh-comment-id:417855305 --> @marcelklehr commented on GitHub (Sep 1, 2018): The special build should tell you exactly where in the XML file the error happens, so you don't need to try it with different bookmarks, just install the build temporarily via `about:debugging` and sync as you would normally to get the xbel error.
Author
Owner

@anmith commented on GitHub (Sep 2, 2018):

Hi,
it did indeed: there was an entry for my old Synology NAS which caused the error, here's the error report:

Syncing failed with Parse Error: <?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="chrome://global/locale/intl.css" type="text/css"?>
<parsererror xmlns="http://www.mozilla.org/newlayout/xml/parsererror.xml">XML-Verarbeitungsfehler: Nicht definierte Entität
Adresse: moz-extension://bda247ff-e16f-4b1c-868c-39b6f53a3b06/dist/html/background.html
Zeile Nr. 394, Spalte 20:<sourcetext>        &lt;title&gt;fitz&amp;nbsp;-&amp;nbsp;Synology&amp;nbsp;DiskStation&lt;/title&gt;
-------------------^</sourcetext></parsererror>

Here's what the corresponding part of the xbel-file looks like:

        <bookmark href="http://fitz:5000/" id="127">
        <title>fitz&nbsp;-&nbsp;Synology&nbsp;DiskStation</title>
        </bookmark>

The bookmark itself is shown as

fitz - Synology DiskStation

in the browser

<!-- gh-comment-id:417914239 --> @anmith commented on GitHub (Sep 2, 2018): Hi, it did indeed: there was an entry for my old Synology NAS which caused the error, here's the error report: ``` Syncing failed with Parse Error: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="chrome://global/locale/intl.css" type="text/css"?> <parsererror xmlns="http://www.mozilla.org/newlayout/xml/parsererror.xml">XML-Verarbeitungsfehler: Nicht definierte Entität Adresse: moz-extension://bda247ff-e16f-4b1c-868c-39b6f53a3b06/dist/html/background.html Zeile Nr. 394, Spalte 20:<sourcetext> &lt;title&gt;fitz&amp;nbsp;-&amp;nbsp;Synology&amp;nbsp;DiskStation&lt;/title&gt; -------------------^</sourcetext></parsererror> ``` Here's what the corresponding part of the xbel-file looks like: ``` <bookmark href="http://fitz:5000/" id="127"> <title>fitz&nbsp;-&nbsp;Synology&nbsp;DiskStation</title> </bookmark> ``` The bookmark itself is shown as `fitz - Synology DiskStation` in the browser
Author
Owner

@jlbprof commented on GitHub (Sep 2, 2018):

A non breaking space, breaks xml, that doesn't make sense. Wierd.

On Sun, Sep 2, 2018 at 3:38 AM anmith notifications@github.com wrote:

Hi,
it did indeed: there was an entry for my old Synology NAS which caused the
entry, here's the error report:

Syncing failed with Parse Error:

XML-Verarbeitungsfehler: Nicht definierte Entität
Adresse: moz-extension://bda247ff-e16f-4b1c-868c-39b6f53a3b06/dist/html/background.html
Zeile Nr. 394, Spalte 20: <title>fitz&nbsp;-&nbsp;Synology&nbsp;DiskStation</title>
-------------------^

Here's what the corresponding part of the xbel-file looks like:

    <bookmark href="http://fitz:5000/" id="127">
    <title>fitz&nbsp;-&nbsp;Synology&nbsp;DiskStation</title>
    </bookmark>

The bookmark itself is shown as

fitz - Synology DiskStation

in the browser


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/marcelklehr/floccus/issues/157#issuecomment-417914239,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJS39dyW3txb6mQCN1n-qjy6O0Hg3nUSks5uW5kZgaJpZM4WN1xK
.

<!-- gh-comment-id:417927473 --> @jlbprof commented on GitHub (Sep 2, 2018): A non breaking space, breaks xml, that doesn't make sense. Wierd. On Sun, Sep 2, 2018 at 3:38 AM anmith <notifications@github.com> wrote: > Hi, > it did indeed: there was an entry for my old Synology NAS which caused the > entry, here's the error report: > > Syncing failed with Parse Error: <?xml version="1.0" encoding="UTF-8"?> > <?xml-stylesheet href="chrome://global/locale/intl.css" type="text/css"?> > <parsererror xmlns="http://www.mozilla.org/newlayout/xml/parsererror.xml">XML-Verarbeitungsfehler: Nicht definierte Entität > Adresse: moz-extension://bda247ff-e16f-4b1c-868c-39b6f53a3b06/dist/html/background.html > Zeile Nr. 394, Spalte 20:<sourcetext> &lt;title&gt;fitz&amp;nbsp;-&amp;nbsp;Synology&amp;nbsp;DiskStation&lt;/title&gt; > -------------------^</sourcetext></parsererror> > > Here's what the corresponding part of the xbel-file looks like: > > <bookmark href="http://fitz:5000/" id="127"> > <title>fitz&nbsp;-&nbsp;Synology&nbsp;DiskStation</title> > </bookmark> > > The bookmark itself is shown as > > fitz - Synology DiskStation > > in the browser > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/marcelklehr/floccus/issues/157#issuecomment-417914239>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AJS39dyW3txb6mQCN1n-qjy6O0Hg3nUSks5uW5kZgaJpZM4WN1xK> > . >
Author
Owner

@marcelklehr commented on GitHub (Sep 2, 2018):

🎉 that's progress! As I said,

The entities might still be the problem, as the xbel data is parsed as XML but serialized as HTML. XML (by default) doesn't have the named entities that html has (like the non-breaking space &nbsp;, etc.).

@anmith

The bookmark itself is shown as fitz - Synology DiskStation

That's a good sign. Still, this should be fixed in v3.0.6 :/ What happens if you fix the entities in the XBEL file?

<!-- gh-comment-id:417928297 --> @marcelklehr commented on GitHub (Sep 2, 2018): :tada: that's progress! As I said, > The entities might still be the problem, as the xbel data is parsed as XML but serialized as HTML. XML (by default) doesn't have the named entities that html has (like the non-breaking space `&nbsp;`, etc.). @anmith > The bookmark itself is shown as `fitz - Synology DiskStation` That's a good sign. Still, this should be fixed in v3.0.6 :/ What happens if you fix the entities in the XBEL file?
Author
Owner

@t3mujin commented on GitHub (Sep 2, 2018):

I'm having a lot of error like these due to the bookmarklets I have in my bookmarks. All of them have to do with the javascript breaking the xml, but all it takes is properly replacing the " by ' to have it working.

<!-- gh-comment-id:417928387 --> @t3mujin commented on GitHub (Sep 2, 2018): I'm having a lot of error like these due to the bookmarklets I have in my bookmarks. All of them have to do with the javascript breaking the xml, but all it takes is properly replacing the " by ' to have it working.
Author
Owner

@anmith commented on GitHub (Sep 2, 2018):

@marcelklehr
I don't think the entry in the xbel-File is wrong:

<title>fitz&nbsp;-&nbsp;Synology&nbsp;DiskStation</title>

However, according to the debug-output, something terrible seems to be happening while accessing:

<sourcetext>        &lt;title&gt;fitz&amp;nbsp;-&amp;nbsp;Synology&amp;nbsp;DiskStation&lt;/title&gt;
-------------------^</sourcetext>

For me it looks like the entities are encoded again, changing "<" to "<" and the first "&nbsp;" to "&amp;nbsp"

@t3mujin please don't mix things up, this has nothing to do with bookmarklets or javascript within bookmarks. Thanks!

<!-- gh-comment-id:417931070 --> @anmith commented on GitHub (Sep 2, 2018): @marcelklehr I don't think the entry in the xbel-File is wrong: `<title>fitz&nbsp;-&nbsp;Synology&nbsp;DiskStation</title>` However, according to the debug-output, something terrible seems to be happening while accessing: ``` <sourcetext> &lt;title&gt;fitz&amp;nbsp;-&amp;nbsp;Synology&amp;nbsp;DiskStation&lt;/title&gt; -------------------^</sourcetext> ``` For me it looks like the entities are encoded again, changing "<" to "&lt;" and the first "`&nbsp;`" to "`&amp;nbsp`" @t3mujin please don't mix things up, this has nothing to do with bookmarklets or javascript within bookmarks. Thanks!
Author
Owner

@marcelklehr commented on GitHub (Sep 2, 2018):

Actually, @t3mujin has a good point. If there's a " in the bookmark URL (like when you have a javascript bookmarklet) this breaks the XML as well.

@anmith Ah, I think you're reading more into this than there is. The debug output is itself in XML, which is why entities are encoded again (whoever thought this was a good idea in the W3C.. 🙈 . XML all the way, baby!) So, as I see it, the problem is that floccus used to use HTML entities to encode special characters. However, there's a difference between entities recognized by HTML and those recognized by XML. HTML defines a superset of entities of XML. E.g. &nbsp; is only defined in HTML, not in XML. Floccus v3.0.6 should now use XML entities. Thus, could you try removing your xbel file ono the server again, tick reset cache in your floccus account options and trigger an initial sync to recreate it, then trigger another sync to see if parsing works?

EDIT: Wait, you did that already with v3.0.6 :/
EDIT: Ah, v3.0.6 still uses HTML encoding. My bad. I'll release v3.0.7 shortly.

<!-- gh-comment-id:417931578 --> @marcelklehr commented on GitHub (Sep 2, 2018): Actually, @t3mujin has a good point. If there's a " in the bookmark URL (like when you have a javascript bookmarklet) this breaks the XML as well. @anmith Ah, I think you're reading more into this than there is. The debug output is itself in XML, which is why entities are encoded again (whoever thought this was a good idea in the W3C.. :see_no_evil: . XML all the way, baby!) So, as I see it, the problem is that floccus used to use HTML entities to encode special characters. However, [there's a difference between entities recognized by HTML and those recognized by XML](https://stackoverflow.com/questions/7787567/xml-parsing-with-amp-reg-but-still-getting-errors#7787602). HTML defines a superset of entities of XML. E.g. `&nbsp;` is only defined in HTML, not in XML. Floccus v3.0.6 should now use XML entities. Thus, could you try removing your xbel file ono the server again, tick `reset cache` in your floccus account options and trigger an initial sync to recreate it, then trigger another sync to see if parsing works? EDIT: Wait, you did that already with v3.0.6 :/ EDIT: Ah, v3.0.6 still uses HTML encoding. My bad. I'll release v3.0.7 shortly.
Author
Owner

@marcelklehr commented on GitHub (Sep 2, 2018):

v3.0.7 should finally fix this. Please test by removing xbel file on the server again, clearing cache and triggering a sync twice in sequence :)

<!-- gh-comment-id:417938570 --> @marcelklehr commented on GitHub (Sep 2, 2018): v3.0.7 should finally fix this. Please test by removing xbel file on the server again, clearing cache and triggering a sync twice in sequence :)
Author
Owner

@anmith commented on GitHub (Sep 2, 2018):

@marcelklehr updated to 3.0.7 and tried, but all I get is a "myFolder.children.map is not a function" error during the initial sync. :-(

<!-- gh-comment-id:417943931 --> @anmith commented on GitHub (Sep 2, 2018): @marcelklehr updated to 3.0.7 and tried, but all I get is a "myFolder.children.map is not a function" error during the initial sync. :-(
Author
Owner

@marcelklehr commented on GitHub (Sep 2, 2018):

sigh. My bad. It seems my testing infrastructure is not mature enough, yet, to rely on it blindly... v3.0.8 it is, then.

<!-- gh-comment-id:417945283 --> @marcelklehr commented on GitHub (Sep 2, 2018): *sigh*. My bad. It seems my testing infrastructure is not mature enough, yet, to rely on it blindly... v3.0.8 it is, then.
Author
Owner

@jlbprof commented on GitHub (Sep 2, 2018):

Marcel

I filed an issue about 3.0.7 as well, XBEL has an error creating new
Folder. See my issue.

Thanx

Julian

On Sun, Sep 2, 2018 at 12:14 PM Marcel Klehr notifications@github.com
wrote:

sigh. My bad. It seems my testing infrastructure is not mature enough,
yet, to rely on it blindly... v3.0.8 it is, then.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/marcelklehr/floccus/issues/157#issuecomment-417945283,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJS39Wdqv_jTUdHAD5foncqIibYpuzxxks5uXBHwgaJpZM4WN1xK
.

<!-- gh-comment-id:417946673 --> @jlbprof commented on GitHub (Sep 2, 2018): Marcel I filed an issue about 3.0.7 as well, XBEL has an error creating new Folder. See my issue. Thanx Julian On Sun, Sep 2, 2018 at 12:14 PM Marcel Klehr <notifications@github.com> wrote: > *sigh*. My bad. It seems my testing infrastructure is not mature enough, > yet, to rely on it blindly... v3.0.8 it is, then. > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/marcelklehr/floccus/issues/157#issuecomment-417945283>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AJS39Wdqv_jTUdHAD5foncqIibYpuzxxks5uXBHwgaJpZM4WN1xK> > . >
Author
Owner

@anmith commented on GitHub (Sep 2, 2018):

Good news. Updated to 3.0.8, deleted the file on the server and started a new sync. Everytime I click on "sync now" afterwards, the result is always "all good".

@marcelklehr Thanks a lot for all the time and energy you put into this project!

<!-- gh-comment-id:417947521 --> @anmith commented on GitHub (Sep 2, 2018): Good news. Updated to 3.0.8, deleted the file on the server and started a new sync. Everytime I click on "sync now" afterwards, the result is always "all good". @marcelklehr Thanks a lot for all the time and energy you put into this project!
Author
Owner

@marcelklehr commented on GitHub (Sep 2, 2018):

Awesome! :)

@t3mujin Your issues with bookmarklets should also be fixed in the latest version ;)

<!-- gh-comment-id:417948768 --> @marcelklehr commented on GitHub (Sep 2, 2018): Awesome! :) @t3mujin Your issues with bookmarklets should also be fixed in the latest version ;)
Author
Owner

@jd666 commented on GitHub (Sep 2, 2018):

3.0.8 fixed the issues I had. Thank you.

<!-- gh-comment-id:417955809 --> @jd666 commented on GitHub (Sep 2, 2018): 3.0.8 fixed the issues I had. Thank you.
Author
Owner

@t3mujin commented on GitHub (Sep 4, 2018):

Works perfect, thanks!

On Sun, Sep 2, 2018 at 8:57 PM jd666 notifications@github.com wrote:

3.0.8 fixed the issues I had. Thank you.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/marcelklehr/floccus/issues/157#issuecomment-417955809,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAUP9ydHlZYreB-pX1uUgug3VnQ4pXsWks5uXDgqgaJpZM4WN1xK
.

--

João Almeida

about.me/joaoalmeida

joaoalmeidaphotography.com

<!-- gh-comment-id:418325766 --> @t3mujin commented on GitHub (Sep 4, 2018): Works perfect, thanks! On Sun, Sep 2, 2018 at 8:57 PM jd666 <notifications@github.com> wrote: > 3.0.8 fixed the issues I had. Thank you. > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/marcelklehr/floccus/issues/157#issuecomment-417955809>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AAUP9ydHlZYreB-pX1uUgug3VnQ4pXsWks5uXDgqgaJpZM4WN1xK> > . > -- *João Almeida* about.me/joaoalmeida joaoalmeidaphotography.com
Author
Owner

@github-actions[bot] commented on GitHub (Mar 21, 2023):

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:1477738978 --> @github-actions[bot] commented on GitHub (Mar 21, 2023): This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/floccus#148
No description provided.