diff --git a/CHANGELOG.md b/CHANGELOG.md
index f304aea..260484f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,10 +1,10 @@
 Changelog for EGCG-Core
 ===========================
 
-0.8 (unreleased)
+0.7.4 (unreleased)
 ----------------
 
-- Nothing changed yet.
+- Bugfix in archive management.
 
 
 0.7.3 (2017-09-01)
diff --git a/egcg_core/archive_management.py b/egcg_core/archive_management.py
index 58c5eb9..c5f5f2c 100644
--- a/egcg_core/archive_management.py
+++ b/egcg_core/archive_management.py
@@ -95,7 +95,7 @@ def register_for_archiving(file_path, strict=False):
             raise ArchivingError('Registering %s for archiving to tape failed' % file_path)
         # Registering for archive can sometime take time so give it a second
         sleep(1)
-        return register_for_archiving(filter, strict=True)
+        return register_for_archiving(file_path, strict=True)
 
     return True
 

Broken recursion in archive_management
In archive_management.register_for_archiving, the recursion is called with the built-in function `filter`, which can only be a typo.
diff --git a/tests/test_archive_management.py b/tests/test_archive_management.py
index 5d45646..0506957 100644
--- a/tests/test_archive_management.py
+++ b/tests/test_archive_management.py
@@ -80,6 +80,16 @@ class TestArchiveManagement(TestEGCG):
             assert get_stdout.call_count == 3
             assert get_stdout.call_args_list[1][0] == ('lfs hsm_archive testfile',)
 
+        with patch('egcg_core.archive_management._get_stdout',
+                   side_effect=[
+                       'testfile: (0x00000001)', '', 'testfile: (0x00000001)',
+                       'testfile: (0x00000001)', '', 'testfile: (0x00000001)',
+                   ]) as get_stdout:
+            self.assertRaises(ArchivingError, register_for_archiving, 'testfile', False)
+            assert get_stdout.call_count == 6
+            assert get_stdout.call_args_list[1][0] == ('lfs hsm_archive testfile',)
+            assert get_stdout.call_args_list[4][0] == ('lfs hsm_archive testfile',)
+
     def test_recall_from_tape(self):
         with patch('egcg_core.archive_management._get_stdout',
                    side_effect=[

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest pytest-cov
apt-get update apt-get install -y gcc
3.6
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
asana==0.6.5
attrs==22.2.0
cached-property==1.5.2
certifi==2021.5.30
coverage==6.2
-e git+https://github.com/EdinburghGenomics/EGCG-Core.git@5be3adbce57f2efd3afc6d15f59bb288ce0c1b50#egg=EGCG_Core
importlib-metadata==4.8.3
iniconfig==1.1.1
Jinja2==2.8
MarkupSafe==2.0.1
oauthlib==3.2.2
packaging==21.3
pluggy==1.0.0
py==1.11.0
pyclarity-lims==0.4.8
pyparsing==3.1.4
pytest==7.0.1
pytest-cov==4.0.0
PyYAML==6.0.1
requests==2.14.2
requests-oauthlib==0.6.2
six==1.10.0
tomli==1.2.3
typing_extensions==4.1.1
zipp==3.6.0

name: EGCG-Core
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - asana==0.6.5
      - attrs==22.2.0
      - cached-property==1.5.2
      - coverage==6.2
      - importlib-metadata==4.8.3
      - iniconfig==1.1.1
      - jinja2==2.8
      - markupsafe==2.0.1
      - oauthlib==3.2.2
      - packaging==21.3
      - pluggy==1.0.0
      - py==1.11.0
      - pyclarity-lims==0.4.8
      - pyparsing==3.1.4
      - pytest==7.0.1
      - pytest-cov==4.0.0
      - pyyaml==6.0.1
      - requests==2.14.2
      - requests-oauthlib==0.6.2
      - six==1.10.0
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - zipp==3.6.0
prefix: /opt/conda/envs/EGCG-Core

tests/test_archive_management.py::TestArchiveManagement::test_register_for_archiving
tests/test_archive_management.py::TestArchiveManagement::test_archive_directory tests/test_archive_management.py::TestArchiveManagement::test_archive_states tests/test_archive_management.py::TestArchiveManagement::test_recall_from_tape tests/test_archive_management.py::TestArchiveManagement::test_release_file_from_lustre
egcg_core/archive_management.py CHANGELOG.md
egcg_core/archive_management.py CHANGELOG.md