View Issue Details

IDProjectCategoryView StatusLast Update
0015558mantisbtbugtrackerpublic2014-09-23 18:05
Reporterdregad Assigned Todregad  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.14 
Target Version1.2.15Fixed in Version1.2.15 
Summary0015558: url_get() does not fall back to other methods when no data is retrieved
Description

Currently, the only error checking in this API function is based on the existence of the underlying PHP function/module. If the function call itself fails, the function silently fails and returns an empty string, without trying to use another method of retrieving the URL's contents.

Additional Information

This is causing issues for example when using the Github Source Integration plugin from behind a proxy (with openssh module installed) or retrieving an https URL without having an https wrapper: the file_get_contents() function exists, but does not return anything so url_get() returns blank with no errors due to use of '@'

In that case it would be useful to try with another method.

TagsNo tags attached.

Relationships

related to 0015721 closedgrangeway Functionality to consider porting to master-2.0.x 

Activities

grangeway

grangeway

2013-04-05 17:56

reporter   ~0036086

Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch

Related Changesets

MantisBT: master-1.2.x 3fb561f3

2013-03-02 03:30

dregad


Details Diff
Fix 0015558: url_get() fallback to next method in case of error Affected Issues
0015558
mod - core/url_api.php Diff File

MantisBT: master 910546df

2013-03-02 03:30

dregad


Details Diff
Fix 0015558: url_get() fallback to next method in case of error Affected Issues
0015558
mod - core/url_api.php Diff File