Bug 37114 - "The "CollectBundleResources" task failed unexpectedly" if any BundleResource file name contains the "+" plus character
Summary: "The "CollectBundleResources" task failed unexpectedly" if any BundleResource...
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.0.0 (C6)
Hardware: PC Windows
: --- normal
Target Milestone: 4.1.0 (C7)
Assignee: Bugzilla
URL:
: 38685 ()
Depends on:
Blocks:
 
Reported: 2015-12-17 02:00 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2016-05-19 13:10 UTC (History)
7 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Test case (14.21 KB, application/zip)
2015-12-17 02:00 UTC, Brendan Zagaeski (Xamarin Team, assistant)
Details
Log files and version info (39.39 KB, application/zip)
2015-12-17 02:01 UTC, Brendan Zagaeski (Xamarin Team, assistant)
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Brendan Zagaeski (Xamarin Team, assistant) 2015-12-17 02:00:54 UTC
Created attachment 14332 [details]
Test case

"The "CollectBundleResources" task failed unexpectedly" if any BundleResource file name contains the "+" plus character




## Regression status: not an immediate regression

BAD: XamarinVS 4.0.1.37    (019d80f) + Xamarin.iOS 9.4.1.0 (dab1554)
BAD: XamarinVS 3.11.1594.0 (a06d6d5) + Xamarin.iOS 9.1.0.27(1f068b4)

(XVS 3.11 ("Cycle 5 – Service Release 5") hits essentially the same problem, though the exact wording of the error is a bit different.)




## Steps to replicate

Attempt to build the attached test case from Visual Studio.


(The test case is just a new single view template iOS app with a BundleResource file named "Info8+.plist" added to the "Resources" folder.)




## Results

### Top of the error message as copied from "View -> Error List"

> The "CollectBundleResources" task failed unexpectedly.
> Xamarin.Messaging.Exceptions.MessagingException: An error occured on client build2480Windo while executing a post for topic xvs/Build/4.0.1.37/copy-item/UnifiedSingleViewIphone1/4137fa7/Info8+.plist ---> Xamarin.Messaging.Exceptions.MessagingException: There was an error while trying to subscribe to response topic xvs/Build/4.0.1.37/copy-item/UnifiedSingleViewIphone1/4137fa7/Info8+.plist ---> System.Net.Mqtt.Client.ClientException: An error occurred while trying to subscribe the client  to topic build2480Windo/+/xvs/Build/4.0.1.37/copy-item/UnifiedSingleViewIphone1/4137fa7/Info8+.plist ---> System.Net.Mqtt.Exceptions.MqttException: Topic filter build2480Windo/+/xvs/Build/4.0.1.37/copy-item/UnifiedSingleViewIphone1/4137fa7/Info8+.plist is invalid. See protocol specification for more details on Topic Filter rules: http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718106
>    at System.Net.Mqtt.Formatters.SubscribeFormatter.GetPayload(Subscribe packet) in c:\GitHub\hermes\src\Core\Formatters\SubscribeFormatter.cs:line 88
>    at System.Net.Mqtt.Formatters.SubscribeFormatter.Write(Subscribe packet) in c:\GitHub\hermes\src\Core\Formatters\SubscribeFormatter.cs:line 40
>    at System.Net.Mqtt.Formatters.Formatter`1.<>c__DisplayClass9.<FormatAsync>b__8() in c:\GitHub\hermes\src\Core\Formatters\Formatter.cs:line 46
>    at System.Threading.Tasks.Task`1.InnerInvoke()
>    at System.Threading.Tasks.Task.Execute()




## Results in Xamarin Studio on Mac

The project builds and runs without error.
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2015-12-17 02:01:28 UTC
Created attachment 14333 [details]
Log files and version info
Comment 3 Adrian Alonso 2016-02-22 18:57:27 UTC
*** Bug 38685 has been marked as a duplicate of this bug. ***
Comment 5 Rajneesh Kumar 2016-05-19 13:10:40 UTC
I have checked this issue with the Cycle 7 build:

Xamarin.VisualStudio_4.1.0.503_d6e750ab4dc11c09c582fe53ca94618f97e88594

I observed that I am successfully able to build attached test sample provided in bug description. 

Screencast: http://www.screencast.com/t/aElMUd6U2

This issue has been fixed, hence I am closing this issue.

Thanks..!