mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[GH-ISSUE #3425] Vaultwarden wont import cvs file #1565
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#1565
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wioo on GitHub (Apr 6, 2023).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/3425
Subject of the issue
Vaultwarden wont import basic Bitwarden cvs file.
Deployment environment
Steps to reproduce
Didnt change anything. When vaulwarden was updated to 1.28.0 import stopped working.
Expected behaviour
Sucessfully Imported passwords.
Actual behaviour
Nothing happens when import button is clicked.
Troubleshooting data
Firefox console errors when I open vaultwarden login page
Content Security Policy: The page’s settings blocked the loading of a resource at eval (“script-src”)
Source: HTMLElement.prototype.focus = ((realFocu….
TypeError: can't convert undefined to object
When try to import this error is presented
TypeError: can't convert undefined to object
TypeError: t is undefined consoleLog.service.ts:51:16
processFolder base-importer.ts:416
parse bitwarden-csv-importer.ts:48
parse bitwarden-csv-importer.ts:24
import import.service.ts:109
mt 297.eab0517393b948250535.js:1
t zone.js:1351
mt 297.eab0517393b948250535.js:1
import 297.eab0517393b948250535.js:1
submit import.component.ts:117
o 297.eab0517393b948250535.js:1
invoke zone.js:409
onInvoke ng_zone.ts:418
invoke zone.js:408
run zone.js:169
C zone.js:1326
invokeTask zone.js:443
onInvokeTask ng_zone.ts:403
invokeTask zone.js:442
runTask zone.js:214
b zone.js:632
promise callback*y zone.js:608
m zone.js:619
scheduleTask zone.js:433
onScheduleTask zone.js:320
scheduleTask zone.js:423
scheduleTask zone.js:257
scheduleMicroTask zone.js:277
C zone.js:1316
P zone.js:1253
O zone.js:1169
A zone.js:1185
onload import.component.ts:233
invoke zone.js:409
onInvoke ng_zone.ts:418
invoke zone.js:408
runGuarded zone.js:180
s zone.js:163
set zone.js:980
getFileContents import.component.ts:220
t zone.js:1351
getFileContents import.component.ts:217
submit import.component.ts:97
E 297.eab0517393b948250535.js:1
t zone.js:1351
E 297.eab0517393b948250535.js:1
submit 297.eab0517393b948250535.js:1
template import.component.html:7
jc listener.ts:225
r listener.ts:263
next Subscriber.ts:161
_next Subscriber.ts:119
next Subscriber.ts:75
next Subject.ts:68
r errorContext.ts:29
next Subject.ts:61
emit event_emitter.ts:114
onSubmit ng_form.ts:300
hostBindings ng_form.ts:136
jc listener.ts:225
r listener.ts:263
_ dom_renderer.ts:67
invokeTask zone.js:443
onInvokeTask ng_zone.ts:403
invokeTask zone.js:442
runTask zone.js:214
Same with qutebrowser on linux and firefox & chrome on windows.
@BlackDex commented on GitHub (Apr 6, 2023):
Looks like a client side error.
Either the csv is invalid, or something else is wrong.
What happens in an other browser?
Does the developer console show errors during the initial load during login/page load. Like not being able to access the site?
@wioo commented on GitHub (Apr 6, 2023):
qutebrowser
on login page
The source list for Content Security Policy directive 'script-src' contains an invalid source: ''wasm-unsafe-eval''. It will be ignored.
when importing
TypeError: Cannot read property 'replace' of undefined
at C.processFolder (base-importer.ts:416)
at bitwarden-csv-importer.ts:48
at Array.forEach ()
at C.parse (bitwarden-csv-importer.ts:24)
at ft. (import.service.ts:109)
at Generator.next ()
at 297.eab0517….js:1
at new t (zone.js:1351)
at mt (297.eab0517….js:1)
at ft.import (297.eab0517….js:1)
write @ consoleLog.service.ts:51
...
firefox on win (v 111.0.1)
no errors on login page
So just
TypeError: t is undefined consoleLog.service.ts:51:16
...
when importing (same as linux)
Chrome on win
on login page
Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
Error with Permissions-Policy header: Unrecognized feature: 'battery'.
Error with Permissions-Policy header: Unrecognized feature: 'document-domain'.
Error with Permissions-Policy header: Unrecognized feature: 'execution-while-not-rendered'.
Error with Permissions-Policy header: Unrecognized feature: 'execution-while-out-of-viewport'.
when importing
consoleLog.service.ts:51 TypeError: Cannot read properties of undefined (reading 'replace')
at C.processFolder (base-importer.ts:416:29)
at bitwarden-csv-importer.ts:48:14
at Array.forEach ()
at C.parse (bitwarden-csv-importer.ts:24:13)
at ft. (import.service.ts:109:41)
at Generator.next ()
at 297.eab0517393b948250535.js:1:160136
at new t (zone.js:1351:25)
at mt (297.eab0517393b948250535.js:1:159881)
at ft.import (297.eab0517393b948250535.js:1:160483)
...
Version 1.27.0
qutebrowser without errors.
firefox (linux) the same error at login page but import works.
@BlackDex commented on GitHub (Apr 6, 2023):
Looks like maybe some reverse proxy issue. Caching, ModSecurity, other headers which might get replaced.
Or browser extensions which block or modify something.
But if it does work in an other browser it tells me it works.
Also, it's not a server side issue, and it also not looks like a client issue. But if it is an issue, then it's not something we can fix.