• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wooga / atlas-github / 1
99%
master: 39%

Build:
Build:
LAST BUILD BRANCH: PR-122
DEFAULT BRANCH: master
Ran 05 Feb 2019 02:02PM UTC
Jobs 2
Files 9
Run time 29s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1

push

jenkins

Fix release asset upload with special characters in filename

Description
===========

The API `GHAsset uploadAsset(File file, String contentType)` in
`GHRelease` is does no `URLEncode` for the given file name. The filename
is used in the github API call as is:

```java
    String url = format("https://uploads.github.com%s/releases/%d/assets?name=%s",
                     owner.getApiTailUrl(""), getId(), filename);
```

This leads to upload errors when trying to publish files with special
characters. This patch circumvents this issue by calling the second API
`GHAsset uploadAsset(String filename, InputStream stream, String contentType)` with a URL encoded filename.

Note
----

Github renames release assets with special characters.

Changes
=======

![FIX] release asset upload with special characters in filename

306 of 308 relevant lines covered (99.35%)

1.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1.1 05 Feb 2019 02:02PM UTC 0
99.35
2 1.2 05 Feb 2019 02:03PM UTC 0
99.35
Source Files on build 1
Detailed source file information is not available for this build.
  • Back to Repo
  • Jenkins Build #1
  • 130b7d7f on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc