OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Since BCF 2.1 use file suffix .bcf instead of .bcfzip
Wieland Lindenthal67c3bc7f4110
diff --git a/modules/bim/config/locales/en.seeders.bim.yml b/modules/bim/config/locales/en.seeders.bim.ymlindex 691a4129cc7..cd8ac9dad7f 100644--- a/modules/bim/config/locales/en.seeders.bim.yml+++ b/modules/bim/config/locales/en.seeders.bim.yml@@ -1101,7 +1101,7 @@ en:boards:bcf:name: "BCF issues"- bcf_xml_file: "seed.bcfzip"+ bcf_xml_file: "seed.bcf"work_packages:- :start: 77:bcf_issue_uuid: fbbf9ecf-5721-4bf1-a08c-aed50dc19353diff --git a/modules/bim/files/seed.bcfzip b/modules/bim/files/seed.bcfsimilarity index 100%rename from modules/bim/files/seed.bcfziprename to modules/bim/files/seed.bcfdiff --git a/modules/bim/lib/open_project/bim/bcf_xml/exporter.rb b/modules/bim/lib/open_project/bim/bcf_xml/exporter.rbindex dac1cc47057..1894f5e01b9 100644--- a/modules/bim/lib/open_project/bim/bcf_xml/exporter.rb+++ b/modules/bim/lib/open_project/bim/bcf_xml/exporter.rb@@ -48,12 +48,12 @@ module OpenProject::Bim::BcfXml# We often have an internal query name that is not meant# for public use or was given by a user.if query.name.present? && query.name != '_'- return sane_filename("#{query.name}.bcfzip")+ return sane_filename("#{query.name}.bcf")endsane_filename("#{Setting.app_title} #{I18n.t(:label_work_package_plural)} \- #{format_time_as_date(Time.now, '%Y-%m-%d')}.bcfzip"+ #{format_time_as_date(Time.now, '%Y-%m-%d')}.bcf")enddiff --git a/modules/bim/spec/requests/api/bcf_xml/v1/bcf_xml_api_spec.rb b/modules/bim/spec/requests/api/bcf_xml/v1/bcf_xml_api_spec.rbindex 7e25e9584be..98e35edda8c 100644--- a/modules/bim/spec/requests/api/bcf_xml/v1/bcf_xml_api_spec.rb+++ b/modules/bim/spec/requests/api/bcf_xml/v1/bcf_xml_api_spec.rb@@ -81,10 +81,10 @@ describe 'BCF XML API v1 bcf_xml resource', type: :request doit 'responds with correct Content-Disposition' doexpect(subject.header["Content-Disposition"])- .to match(/attachment; filename="OpenProject_Work_packages_\d\d\d\d-\d\d-\d\d.bcfzip"/)+ .to match(/attachment; filename="OpenProject_Work_packages_\d\d\d\d-\d\d-\d\d.bcf"/)end- it 'responds with a correct .bcfzip file in the body ' do+ it 'responds with a correct .bcf file in the body ' doexpect(zip_has_file?(subject.body, 'bcf.version')).to be_truthyexpect(zip_has_file?(subject.body, "#{bcf_issue.uuid}/markup.bcf")).to be_truthyend@@ -112,7 +112,7 @@ describe 'BCF XML API v1 bcf_xml resource', type: :request doget pathend- it 'excludes the work package from the .bcfzip file' do+ it 'excludes the work package from the .bcf file' doexpect(zip_has_file?(subject.body, "#{bcf_issue.uuid}/markup.bcf")).to be_falseyendend