# Bug BIM-13 - Viewpoint files in exported BCF XML artifact must end with .bcfv

Project: Stream BIM
Status: closed
URL: https://community.openproject.org/work_packages/BIM-13

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.0.0 |
| Observed in versions |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### **Environment**:

Your OpenProject Version: 11.3.3

### **Logs**

An exported BCF XML artifact currently contains a `markup.bcf` per topic, that lists all viewpoints contained in the topic. The directory looks like:

```text
fed253fa-3d7f-4a6e-aad8-873d1cbec710.png
fed253fa-3d7f-4a6e-aad8-873d1cbec710.xml
markup.bcf
```

and the `markup.bcf` looks like:

```xml
<?xml version="1.0"?>
<!-- Created by OpenProject 11.4.0.a402377e4 at 2021-07-12 17:15:47 +0200 -->
<Markup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <Topic Guid="db647012-14cb-4e91-9d01-51d5027c9494" TopicType="Task" TopicStatus="New">
   <ReferenceLink>http://192.168.178.155:3000/work_packages/77</ReferenceLink>
   <Title>Viewpoints with clipping planes</Title>
   <Priority>Low</Priority>
   <CreationDate>2021-06-28T12:07:49Z</CreationDate>
   <CreationAuthor>admin@example.net</CreationAuthor>
   <ModifiedDate>2021-06-28T12:28:01Z</ModifiedDate>
   <ModifiedAuthor>admin@example.net</ModifiedAuthor>
   <Description/>
 </Topic>
 <Viewpoints Guid="fed253fa-3d7f-4a6e-aad8-873d1cbec710">
   <Viewpoint>fed253fa-3d7f-4a6e-aad8-873d1cbec710.xml</Viewpoint>
   <Snapshot>fed253fa-3d7f-4a6e-aad8-873d1cbec710.png</Snapshot>
 </Viewpoints>
</Markup>
```

### **Steps to reproduce:**

1.  Go to any BCF project with contained topics which contain viewpoints.
2.  Click on `Export`
3.  Check exported `.bcf` file

### **Actual Behavior**

The artifact has the falsy structure described above.

### **Expected Behavior**

The viewpoint xml files should end with `.bcfv`, as well as their reference in the `markup.bcf`.
