Skip to content

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

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.yml
index 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-aed50dc19353
diff --git a/modules/bim/files/seed.bcfzip b/modules/bim/files/seed.bcf
similarity index 100%
rename from modules/bim/files/seed.bcfzip
rename to modules/bim/files/seed.bcf
diff --git a/modules/bim/lib/open_project/bim/bcf_xml/exporter.rb b/modules/bim/lib/open_project/bim/bcf_xml/exporter.rb
index 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")
end
sane_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"
)
end
diff --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.rb
index 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 do
it 'responds with correct Content-Disposition' do
expect(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 ' do
expect(zip_has_file?(subject.body, 'bcf.version')).to be_truthy
expect(zip_has_file?(subject.body, "#{bcf_issue.uuid}/markup.bcf")).to be_truthy
end
@@ -112,7 +112,7 @@ describe 'BCF XML API v1 bcf_xml resource', type: :request do
get path
end
- it 'excludes the work package from the .bcfzip file' do
+ it 'excludes the work package from the .bcf file' do
expect(zip_has_file?(subject.body, "#{bcf_issue.uuid}/markup.bcf")).to be_falsey
end
end