wallabag: Can't import over the web interface with PHP 8.1
Environment
- Version: 6f5298a2f5642d445e7e92e651d464c8fc9f2a38
- Installation: git clone
- PHP version: 8.1.3
- OS: Linux
- Database: MariaDB 10.3.22
- Parameters:
My app/config/parameters.yml is:
parameters:
database_driver: pdo_mysql
database_host: 127.0.0.1
database_port: null
database_name: REDACTED_wallabag
database_user: REDACTED
database_password: REDACTED
database_path: null
database_table_prefix: wallabag_
database_socket: null
database_charset: utf8mb4
domain_name: REDACTED
server_name: REDACTED
mailer_transport: smtp
mailer_user: wallabag
mailer_password: REDACTED
mailer_host: 127.0.0.1
mailer_port: 587
mailer_encryption: null
mailer_auth_mode: null
locale: de
secret: REDACTED
twofactor_auth: false
twofactor_sender: no-reply@wallabag.org
fosuser_registration: false
fosuser_confirmation: true
fos_oauth_server_access_token_lifetime: 3600
fos_oauth_server_refresh_token_lifetime: 1209600
from_email: no-reply@wallabag.org
rss_limit: 200
rabbitmq_host: localhost
rabbitmq_port: 5672
rabbitmq_user: guest
rabbitmq_password: guest
rabbitmq_prefetch_count: 10
redis_scheme: tcp
redis_host: localhost
redis_port: 6379
redis_path: null
redis_password: null
sentry_dsn: null
What steps will reproduce the bug?
- Create a CSV file from Instapaper.
- Try to import that CSV file.
Expected behavior:
Import works.
Actual outcome:
Symfony throws an error:
This form should not contain extra fields.
This happens with both a modified Vivaldi and a clean Firefox installation. Importing per bin/console works, so the file is not the issue.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 3
- Comments: 16 (14 by maintainers)
Ok I am able to reproduce with PHP 8.1, it does not occur on PHP 8.0 and 7.4.
2.6.0 has been updated to Symfony 4, the bug should now be fixed, see https://github.com/wallabag/wallabag/issues/5631#issuecomment-1047262694
@dertuxmalwieder That might be the best solution to backport that fix.
@Kdecherf I checked the
Symfony\Component\HttpFoundation\Request(where theFileBagis used) and I think it’s barely impossible to fix it on our own… Or we need to fork the 3.4 version to manually apply the fix 😬Thanks, will try to take time this evening to investigate