Skip to content

[Bug] XML subscription import does not work correctly for non-admin users #9551

Closed

Description

@Evilmass

Describe the bug

I encountered an issue in FreshRSS with categories whose names contain only digits.

Manually creating a category with a numeric-only name (e.g. 90) works fine. However, when importing subscriptions from XML, the behavior is incorrect:

  1. The category is not created.
  2. If I manually create the category first and then import, the category list is empty.

To Reproduce

  1. Log in as a normal non-admin user(test_import_90).
  2. Import subscriptions from an XML file.
  3. Observe that the import does not behave correctly for this user.
  4. Use an XML file that references a category/tag with a numeric-only name, e.g. 90.
  5. Observe that the category/tag is not created.
  6. Observe that the category list is empty after the import.
  7. Repeat the same import as an admin user.
  8. The import works correctly for the admin user.

user: test_import_90
xml: feeds_2026-11-10.opml.xml

<?xml version="1.0" encoding="UTF-8"?>
<opml xmlns:frss="https://freshrss.org/opml" version="2.0">
  <head>
    <title>FreshRSS</title>
    <dateCreated>Tue, 10 Nov 2026 14:38:40 +0800</dateCreated>
  </head>
  <body>
    <outline text="90">
      <outline text="Release notes from RSSHub" type="rss" xmlUrl="https://github.com/Diygod/Rsshub/releases.atom" htmlUrl="https://github.com/DIYgod/RSSHub/releases"/>
    </outline>
  </body>
  <body>
    <outline text="Github">
      <outline text="FreshRSS Release" type="rss" xmlUrl="https://github.com/FreshRSS/FreshRSS/releases.atom" htmlUrl="https://github.com/FreshRSS/FreshRSS/releases"/>
    </outline>
  </body>
</opml>

Expected behavior

Both import correctly

FreshRSS version

1.30.4

System information

  • Installation type: [e.g. Docker Compose]
  • OS: [e.g. Win10]
  • Browser: [e.g. Chrome]

Additional context

Screenshots

Image Image Image

Activity

  1. added theissue type on Nov 10, 2026
  2. added
    Bug (unconfirmed)
    on Nov 10, 2026
  3. added this to the 1.31.0 milestone on Nov 10, 2026
  4. added
    Bug (confirmed) 🐞
    and removed
    Bug (unconfirmed)
    on Nov 10, 2026
  5. Alkarex commented on Nov 10, 2026

    @Alkarex
    Member

    Thanks for the bug report.
    Would you be able to test #9552 ?

  6. Evilmass commented on Nov 11, 2026

    @Evilmass
    Author

    Thanks for the bug report. Would you be able to test #9552 ?

    Not fix yet

    Testd on Vmware Ubuntu24.04

    Step:

    # requirements
    sudo apt update
    
    sudo apt install -y \
      apache2 \
      libapache2-mod-php \
      php-curl \
      php-gmp \
      php-intl \
      php-mbstring \
      php-sqlite3 \
      php-xml \
      php-zip \
      rsync
    
    # src
    cd /home/mo/Desktop
    git clone https://github.com/FreshRSS/FreshRSS.git freshrss-pr9552
    cd freshrss-pr9552
    git fetch origin pull/9552/head
    git checkout --detach 73c38ddad8dece1e3adcba7e4da07af2e25e7f55
    git log -1 --oneline
    
    # web
    sudo mkdir -p /var/www/freshrss-pr9552
    sudo rsync -a --delete \
      --exclude='.git/' \
      /home/mo/Desktop/freshrss-pr9552/ \
      /var/www/freshrss-pr9552/
    sudo chown -R mo:www-data /var/www/freshrss-pr9552
    cd /var/www/freshrss-pr9552
    sudo ./cli/access-permissions.sh
    sudo -u www-data php ./cli/prepare.php
    sudo ./cli/access-permissions.sh
    
    # apache2 conf
    echo 'Listen 8088' | \
      sudo tee /etc/apache2/conf-available/freshrss-pr9552-port.conf
    sudo a2enconf freshrss-pr9552-port
    sudo nano /etc/apache2/sites-available/freshrss-pr9552.conf

    freshrss-pr9552.conf:

    <VirtualHost *:8088>
        ServerName localhost
    
        DocumentRoot /var/www/freshrss-pr9552/p
    
        <Directory /var/www/freshrss-pr9552/p>
            Options FollowSymLinks
            AllowOverride All
            Require all granted
            DirectoryIndex index.php
        </Directory>
    
        AllowEncodedSlashes On
    
        ErrorLog ${APACHE_LOG_DIR}/freshrss-pr9552-error.log
        CustomLog ${APACHE_LOG_DIR}/freshrss-pr9552-access.log combined
    </VirtualHost>
    # startup
    sudo systemctl restart apache2

    Screenshots:
    Snipaste_2026-11-11_16-56-15
    Snipaste_2026-11-11_16-59-17
    Snipaste_2026-11-11_16-59-51
    Snipaste_2026-11-11_17-00-08
    Snipaste_2026-11-11_17-00-19


    I also tested newest docker images: freshrsss/freshrss:edge, result as above :(

  7. Alkarex commented on Nov 11, 2026

    @Alkarex
    Member

    Your OPML had errors. Here is a fix:

    <?xml version="1.0" encoding="UTF-8"?>
    <opml xmlns:frss="https://freshrss.org/opml" version="2.0">
    	<head>
    		<title>FreshRSS</title>
    		<dateCreated>Tue, 10 Nov 2026 14:38:40 +0800</dateCreated>
    	</head>
    	<body>
    		<outline text="90">
    			<outline text="Release notes from RSSHub" type="rss" xmlUrl="https://github.com/Diygod/Rsshub/releases.atom" htmlUrl="https://github.com/DIYgod/RSSHub/releases"/>
    		</outline>
    		<outline text="Github">
    			<outline text="FreshRSS Release" type="rss" xmlUrl="https://github.com/FreshRSS/FreshRSS/releases.atom" htmlUrl="https://github.com/FreshRSS/FreshRSS/releases"/>
    		</outline>
    	</body>
    </opml>
  8. Evilmass commented on Nov 12, 2026

    @Evilmass
    Author

    Your OPML had errors. Here is a fix:

    <title>FreshRSS</title> Tue, 10 Nov 2026 14:38:40 +0800

    The reproduction steps are the same as above.

    mo@osboxes:~/freshrss-edge$ cat docker-compose.yml
    services:
      freshrss:
        image: freshrss/freshrss:edge
        container_name: freshrss-edge
        restart: unless-stopped
        logging:
          options:
            max-size: 10m
        environment:
          TZ: Asia/Shanghai
          CRON_MIN: 1,31
        volumes:
          - ./data:/var/www/FreshRSS/data
          - ./extensions:/var/www/FreshRSS/extensions
        ports:
          - 18778:80
    mo@osboxes:~/freshrss-edge$ docker images
    IMAGE                    ID             DISK USAGE   CONTENT SIZE   EXTRA
    freshrss/freshrss:edge   f841775b1609        373MB         92.4MB

    Only the Github category was imported; the purely numeric "90" category still doesn't work.

    feeds_2026-11-12.opml.xml

    image Snipaste_2026-11-12_10-35-17 Snipaste_2026-11-12_10-37-32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug (confirmed) 🐞

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions