[GH-ISSUE #160] WebDav error line 175 WebDav.js #152

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

Originally created by @jlbprof on GitHub (Aug 30, 2018).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/160

Software versions

  • Browser: Chrome 68.0.3440.106 (Official Build) (64-bit)
  • Nextcloud: 13.0.5
  • Nextcloud Bookmarks app: 0.12.1
  • Floccus: 3.0.5

Using WebDav on Nextcloud

Steps to reproduce

  1. Run sync
  2. Failed immediately

Expected outcome

https://plex.jlbprof.com:8008/nextcloud/remote.php/webdav/bookmarks.xbel.lock
Account.js:170 ReferenceError: html is not defined
at WebDavAdapter.htmlDecode (WebDav.js:175)
at WebDav.js:309
at Array.forEach ()
at WebDavAdapter._parseFolder (WebDav.js:308)
at WebDavAdapter._parseXbelDoc (WebDav.js:328)
at WebDavAdapter._callee8$ (WebDav.js:373)
at tryCatch (polyfill.js:6900)
at Generator.invoke [as _invoke] (polyfill.js:7138)
at Generator.prototype.(anonymous function) [as next] (chrome-extension://fnaicdffflnofjppbagibeoednhnbjhg/dist/js/polyfill.js:6952:21)
at step (background-script.js:27190)

I looked at WebDav.js

htmlDecode(content) {
let a = document.createElement('a')
a.innerHTML = html
return a.textContent
}

Line 175 is the a.innerHTML line, html is truly not defined.

Did you recently refactor that code? If not I can look into it.

Thanx

Julian

Originally created by @jlbprof on GitHub (Aug 30, 2018). Original GitHub issue: https://github.com/floccusaddon/floccus/issues/160 ### Software versions <!-- Please provide the versions of the following software products in your set up --> * Browser: Chrome 68.0.3440.106 (Official Build) (64-bit) * Nextcloud: 13.0.5 * Nextcloud Bookmarks app: 0.12.1 * Floccus: 3.0.5 Using WebDav on Nextcloud ### Steps to reproduce <!-- What did you do? Be as specific as possible --> 1. Run sync 2. Failed immediately ### Expected outcome <!-- What did you think was going to happen or what do you think should have happened? --> https://plex.jlbprof.com:8008/nextcloud/remote.php/webdav/bookmarks.xbel.lock Account.js:170 ReferenceError: html is not defined at WebDavAdapter.htmlDecode (WebDav.js:175) at WebDav.js:309 at Array.forEach (<anonymous>) at WebDavAdapter._parseFolder (WebDav.js:308) at WebDavAdapter._parseXbelDoc (WebDav.js:328) at WebDavAdapter._callee8$ (WebDav.js:373) at tryCatch (polyfill.js:6900) at Generator.invoke [as _invoke] (polyfill.js:7138) at Generator.prototype.(anonymous function) [as next] (chrome-extension://fnaicdffflnofjppbagibeoednhnbjhg/dist/js/polyfill.js:6952:21) at step (background-script.js:27190) I looked at WebDav.js htmlDecode(content) { let a = document.createElement('a') a.innerHTML = html return a.textContent } Line 175 is the a.innerHTML line, html is truly not defined. Did you recently refactor that code? If not I can look into it. Thanx Julian <!-- Thanks! Now, hit Submit and wait for a reply :) -->
kerem closed this issue 2026-02-25 22:36:18 +03:00
Author
Owner

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

I just released a fix for this with 3.0.6

<!-- gh-comment-id:417596577 --> @marcelklehr commented on GitHub (Aug 31, 2018): I just released a fix for this with 3.0.6
Author
Owner

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

Thank you Marcel

Julian

On Fri, Aug 31, 2018 at 3:44 AM Marcel Klehr notifications@github.com
wrote:

I just released a fix for this with 3.0.6


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/marcelklehr/floccus/issues/160#issuecomment-417596577,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJS39QU79YCnn-KhpgQ_N0SFJ39r92b1ks5uWPdogaJpZM4WUTV9
.

<!-- gh-comment-id:417644375 --> @jlbprof commented on GitHub (Aug 31, 2018): Thank you Marcel Julian On Fri, Aug 31, 2018 at 3:44 AM Marcel Klehr <notifications@github.com> wrote: > I just released a fix for this with 3.0.6 > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/marcelklehr/floccus/issues/160#issuecomment-417596577>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AJS39QU79YCnn-KhpgQ_N0SFJ39r92b1ks5uWPdogaJpZM4WUTV9> > . >
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:1477739211 --> @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#152
No description provided.