POST
|
I discovered that if I put the IP address of portal, like: https://100.100.100.1/portal02 the invite is generated, but then, on portal02, if I choose the previous generated invite, a message says that the invite was generated for another portal
... View more
05-23-2017
04:36 AM
|
0
|
1
|
855
|
POST
|
Looking at the logs, the portal receive the following error (I replaced the domain with *****) com.esri.gw.GWException: Invalid invitation recipient. Guest URL is 'https://******/portal01/'. at com.esri.gw.collaboration.CollaborationManager.createInvitation(CollaborationManager.java:1471) at com.esri.gw.collaboration.CollaborationRequestHandler.b(CollaborationRequestHandler.java:694) at com.esri.gw.collaboration.CollaborationRequestHandler.service(CollaborationRequestHandler.java:211) at com.esri.gw.account.AccountsRequestHandler.service(AccountsRequestHandler.java:864) at com.esri.gw.DispatchServlet.service(DispatchServlet.java:233) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.esri.gw.filters.PortalFilter.doFilter(PortalFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176) at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145) at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.esri.gw.filters.JSONFilter.doFilter(JSONFilter.java:57) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.esri.gw.filters.GZipFilter.doFilter(GZipFilter.java:44) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.esri.gw.filters.SecurityFilter.doFilter(SecurityFilter.java:77) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.esri.gw.filters.ErrorFilter.doFilter(ErrorFilter.java:47) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.esri.gw.filters.TraceFilter.doFilter(TraceFilter.java:103) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.esri.gw.filters.ProxyRequestCaptureFilter.doFilter(ProxyRequestCaptureFilter.java:111) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.esri.gw.filters.CharEncodingFilter.doFilter(CharEncodingFilter.java:33) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at com.esri.arcgis.portal.util.TomcatValve.invoke(TomcatValve.java:43) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:442) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1082) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:623) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745)
... View more
05-18-2017
09:04 AM
|
0
|
0
|
855
|
POST
|
I'm trying to create a collaboration between two portals (different machines, with different maps). portal01: Type: Host URL: https://my_host_name/portal01 portal02: Type: Guest URL: https://my_host_name/portal02 Currently, on both machines, I'm running Portal for ArcGIS 10.5, and I see that the Collaboration it's a new feature released with vertsion 10.5. Looking at the documentation provided here: Create a collaboration—Portal for ArcGIS (10.5) | ArcGIS Enterprise , I tried to create a collaboration. Everything seems working good according with the documentation, until I invite the guest portal to the collaboration. - Logged on host portal with admin, browse to My Organization > Edit Settings > Collaborations; - Clicked on collaboration workspace created earlier; - Clicked on "Invite Guest" - On "Guest Organization URL", I entered the same URL that I use to access the portal (https://my_host_name/portal02), and in Access to Workspaces, set with 'Send Content' option. When I click on "Save Invitation", I receive the following error: Invalid invitation recipient. Guest URL is 'https://my_host_name/portal02'. Error: 400 Edit: I already configured the certificates on both portals, with procedures from this document: Configuring the portal to trust certificates from your certifying authority—Portal for ArcGIS (10.5) | ArcGIS Enterpri…
... View more
05-18-2017
07:18 AM
|
0
|
6
|
1723
|
POST
|
This seens be a bit stranger, but I have changed the web.config to original version (the same on github) and included the following line in my code: esriConfig.defaults.io.corsEnabledServers.push('server.virtual.private'); Everything worked without the changes on web.config! Then, I removed the line corsEnabledServer, and code was still working! The problem was resolved, but I really do not know how! Edit: the "error" occur again! instead of modify all the web.config file again, the esriConfig.defaults.io.corsEnabledServer.push function resolved the problem this time! This function was not on main documentation about CORS. I found this function looking at the API Reference, and on some sample codes.
... View more
04-28-2016
07:22 AM
|
1
|
4
|
4038
|
POST
|
I "resolved" the problem, with the following content on Web.config file of DotNet Proxy (lines 07 to 15 from previous version): <system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="Authorization, Origin, X-Requested-With, Content-Type, Accept, User-Agent" />
<add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" />
</customHeaders>
</httpProtocol>
</system.webServer> But this don't seems to be the correct method! In any part of documentations of DotNet Proxy, Javascript API or Server REST API have any information that I must modify the Web.config file for this version. Any ideas?
... View more
04-28-2016
06:03 AM
|
1
|
2
|
4038
|
POST
|
Hi, I'm having problems to set the proxy for my application! My current setup: - ArcGIS Server 10.4 on 'server.virtual.private' or '192.168.210.100' - Proxy .NET running with IIS 8.5 on 'server.virtual.private' (same machine than ArcGIS Server 10.4) - Application with Javascript API 3.16 on 'host-vm' or '192.168.210.1' (with browsersync.io) Installed the proxy from GitHub Put the .NET version on a inetpub\wwwroot subfolder, created a app, etc... Then, I tested the proxy (according with the README.md): "Test that the proxy is installed and available": http://server.virtual.private/DotNet/proxy.ashx?ping! Got a valid response: { "Proxy Version": "1.1.0", "Configuration File": "OK", "Log File": "Not Exist/Readable"} "Test that the proxy is able to forward requests directly in the browser using": http://server.virtual.private/esri_proxy/proxy.ashx?http://server.virtual.private/arcgis/rest/services/teste/TEST_SERVICE/FeatureServer?f=json Got a valid response: {
"currentVersion":10.4,
"serviceDescription":"TEST_SERVICE",
"hasVersionedData":false,
"supportsDisconnectedEditing":false,
"syncEnabled":false,
"supportedQueryFormats":"JSON, AMF",
"maxRecordCount":1000,
"capabilities":"Create,Delete,Query,Update,Uploads,Editing",
"description":"",
"copyrightText":"",
"spatialReference":{
"wkid":102100,
"latestWkid":3857
},
"initialExtent":{
"xmin":-5373925.95008382,
"ymin":-1779327.897638279,
"xmax":-5367538.895643042,
"ymax":-1776174.0579972658,
"spatialReference":{
"wkid":102100,
"latestWkid":3857
}
},
"fullExtent":{
"xmin":-5371483.1645,
"ymin":-1779695.3658000007,
"xmax":-5368931.5394,
"ymax":-1776737.2322000004,
"spatialReference":{
"wkid":102100,
"latestWkid":3857
}
},
"allowGeometryUpdates":true,
"supportsApplyEditsWithGlobalIds":false,
"units":"esriMeters",
"documentInfo":{
"Title":"",
"Author":"",
"Comments":"",
"Subject":"",
"Category":"",
"Keywords":"TEST_SERVICE"
},
"layers":[
{
"id":0,
"name":"TEST_SERVICE"
}
],
"tables":[
],
"enableZDefaults":false
} So, the proxy appear to be OK! Then, I edited the proxy.config file, with this content (this is for test development): <?xml version="1.0" encoding="utf-8" ?>
<ProxyConfig allowedReferers="*" mustMatch="false">
<serverUrls>
<serverUrl url="http://server.virtual.private" matchAll="true" username="siteadmin" password="secret" />
</serverUrls>
</ProxyConfig> Then, according with README.md, and document on Using the proxy | Guide | ArcGIS API for JavaScript I must put the URL of the proxy on my javascript application. I put the following lines on top of main file of application: esriConfig.defaults.io.proxyUrl = 'http://server.virtual.private/DotNet/proxy.ashx';
esriConfig.defaults.io.alwaysUseProxy = false; Tested my application and got a 500 response when asked for a Feature Layer. "XMLHttpRequest cannot load http://server.virtual.private/DotNetProxy/proxy.ashx?http://server.virtual.private/arcgis/rest/services/teste/TEST_SERVICE/FeatureServer?f=json. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested source. Origin 'http://192.168.210.1:8080' is therefore not allowed access.". So, I got a CORS! but according with the documentation on Using the proxy | Guide | ArcGIS API for JavaScript: "ArcGIS Server 10.1 supports CORS out of the box." OK, I have some problems now!! In same documentation: "For earlier versions, an administrator can add CORS support. Visit enable-cors.org for detailed instructions" Let's try anyway! Modified the web.config file on proxy application on IIS (from lines 07 to 15). <?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="false" targetFramework="4.0"/>
</system.web>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="*" />
<add name="Access-Control-Allow-Methods" value="*" />
</customHeaders>
</httpProtocol>
</system.webServer>
<system.diagnostics>
<switches>
<add name="TraceLevelSwitch" value="Info" />
</switches>
<trace autoflush="true" indentsize="4">
<listeners>
<add name="agsProxyLogListener" type="System.Diagnostics.TextWriterTraceListener"
initializeData="C:\Temp\Shared\proxy_logs\auth_proxy.log" />
<remove name="Default" />
</listeners>
</trace>
</system.diagnostics>
</configuration> Now, I get a new error! "XMLHttpRequest cannot load http://server.virtual.private/DotNetProxy/proxy.ashx?http://server.virtual.private/arcgis/rest/services/teste/TEST_SERVICE/FeatureServer?f=json. Request header field X-Requested-With is not allowed by Access-Control-Allow-Headers in preflight response.". So, what's the correct way to configure the proxy? Because I do everything that was on documents, and got errors.
... View more
04-28-2016
05:30 AM
|
1
|
8
|
13493
|
POST
|
Thanks Ken Buja I have made the following code if anybody need (can be optimized): // Geometry Service
var gs = new GeometryService("https://server/arcgis/rest/services/Utilities/Geometry/GeometryServer");
// wkid of map and feature layer
var map_wkid = map.extent.spatialReference.wkid;
var feature_wkid = featureLayer.fullExtent.spatialReference.wkid;
// if wkid of map and feature layer is different, project
if (map_wkid != feature_wkid) {
// get the map spatialReference
var sr = new SpatialReference(map_wkid);
// project
var project = gs.project([featureLayer.fullExtent], sr);
// anonymous functions (success and error)
// success
project.then(function(result) {
// if a map exist, destroy first
if (map) {
map.destroy();
// create a new map with extent of feature layer
map = new Map("map-view", {
extent: result[0],
basemap: "topo",
});
// add the feature layer
map.addLayers([featureLayer]);
}
// error
}, function(err) {
console.log('error');
console.log(err);
});
}
... View more
04-15-2016
05:30 AM
|
1
|
0
|
920
|
POST
|
Trying to set the initial extent of map with same extent of a existing Feature Layer. Code: var featureLayer = new FeatureLayer("http://server/arcgis/rest/services/MyService/0", {
mode: FeatureLayer.MODE_ONDEMAND,
outFields: ["*"]
});
featureLayer.on("load", function(e) {
var initialExtent = featureLayer.fullExtent;
map = new Map('map-view', {
basemap: "streets",
extent: initialExtent
});
} This don't work, and I have the following error on console: Map: Geometry (wkid: 31982) cannot be converted to spatial reference of the map (wkid: 102100) The Feature Layer was using the Spatial Reference wkid 31982. Why the map have the Spatial Reference wkid 102100? This is the only feature layer existing on code, and I "loaded" the Feature Layer before initialize the map, so, until I initialize the map, map = null What I need to do for the map start up with the same extent of the feature layer?
... View more
04-14-2016
06:39 AM
|
0
|
2
|
3875
|
POST
|
I founded (I think): This information was not on 'error' property, but in 'info' property! featureLayer.on("update-end", function(e) {
if (e != undefined && e.info != undefined && e.info.queryLimitExceeded) {
console.log("Layer did not draw completely");
}
}); In FeatureLayer | API Reference | ArcGIS API for JavaScript, on update-end event, the Event Object has a 'error' property and a 'info' property, and looking at documentation, the info property has the following information: Optional object that may have a boolean queryLimitExceeded property. queryLimitExceeded will be true if the feature layer could not draw all features due to a maxRecordCount limitation on the query operation. As of v2.8
... View more
04-14-2016
04:45 AM
|
1
|
0
|
505
|
POST
|
I have a feature layer with many features, and when I load on map viewer (Portal for Arcgis), I receive a message that 'Layer did not draw completely'. This is ok, because this layer don't have any visible range configured and have many features. But, when I try to use this feature layer on ArcGIS API for Javascript, the layer don't draw completely too, but I don't know how detect if this layer was draw completely or not (to show a message for the user). I already tried the 'update-end' event of feature layer, but this event don't show any error, even when the layer was not draw completely. Code: var featureLayer = new FeatureLayer("http://server/acgis/rest/services/ServiceTest/FeatureServer/0", {
mode: FeatureLayer.MODE_ONDEMAND,
outFields: ["*"]
});
featureLayer.on("update-end", function(e) {
console.log(e);
});
map.addLayer(featureLayer);
... View more
04-13-2016
12:34 PM
|
0
|
1
|
2463
|
POST
|
Already made changes for this and working... now only need a solution for a valid SSL!
... View more
04-07-2016
01:01 PM
|
0
|
0
|
1659
|
POST
|
Looking in document - must include oauth2endpoint in the serverurl when using OAUTH2 for WAB · Issue #307 · Esri/resource-proxy · G… I included the oauth2Endpoint="https://server.virtual.private/arcgis/sharing/oauth2" on proxy.config (DotNet app). Now, the page was blank, and I see a error 500 on Chrome Dev Tools when the page try to access the following url: http://host-vm/DotNet/proxy.ashx?http://server.virtual.private/arcgis/sharing/rest/portals/self?f=json&dojo.preventCache=1460057371274&callback=dojo.io.script.jsonp_dojoIoScript1._jsonpCallback But first, I will try the URLs of Robert Scheitlin: 1. http://host-vm/DotNet/proxy.ashx?ping: { "Proxy Version": "1.1.1-beta", "Configuration File": "OK", "Log File": "Not Exist/Readable"} 2. http://host-vm/DotNet/proxy.ashx?http://server.virtual.private/arcgis/rest/services: ERROR: The remote certificate is invalid according to the validation procedure. 3. http://host-vm/DotNet/proxy.ashx?https://server.virtual.private/arcgis/rest/services: {"error": {"code": 403,"message":"Proxy has not been set up for this URL. Make sure there is a serverUrl in the configuration file that matches: https://server.virtual.private/arcgis/rest/services https://server.virtual.private/arcgis/rest/services"}} 4. http://host-vm/DotNet/proxy.ashx?http://server.virtual.private/arcgis/sharing/rest/portals/self?f=json&dojo.preventCache… (The URL that got error after put oauth2Endpoint): ERROR: The remote certificate is invalid according to the validation procedure. Now I have two problems... 1: I need a valid certificate? this is just for internal developments! The app will not be published until finished! 2: proxy not working for address beginning with 'https' (see URL 3)
... View more
04-07-2016
12:40 PM
|
1
|
2
|
1659
|
POST
|
Hello, I'm trying to develop with Web AppBuilder for Developers. Having a hard time with proxy configuration. Used the following tutorial, but with no success: Setting up a Proxy | Support Services Blog Setting up a proxy with Web AppBuilder Developer Edition | Support Services Blog My Scenario: - ArcGIS Server on: https://server.virtual.private:6443/arcgis/manager/ - Portal for ArcGIS on: https://server.virtual.private:7443/arcgis/home/ ArcGIS for Server and Portal for ArcGIS was installed with WebAdaptor, checked the following urls, and everything is working: http://server.virtual.private/arcgis/rest/services http(s)://server.virtual.private/arcgis/home/ (working on both protocols) Services used on app: http://server.virtual.private/arcgis/rest/services/SampleWorldCities/MapServer Create a app with default options (default 2d), with map that used the SampleWorldCities service. Registered the Web App on Portal for ArcGIS and get a App ID and App Secret. (PS: I not using ArcGIS Online). I'm using Windows 7 with IIS 7 on my local machine to develop... installed the proxy on IIS from the following address: GitHub - Esri/resource-proxy: Proxy files for DotNet, Java and PHP. Used the DotNet version, converted to Application, set the pool to use .NET 4.0, and tested entering using the url: http://mymachineip/DotNet/proxy.ashx and got a {"error": {"code": 400,"message":"This proxy does not support empty parameters."}} I think this is a OK response Ok. Following tutorial, registered App on Portal for ArcGIS using the App ID, downloaded the app, put on IIS. Then, when I try to access, I received a message asking my login and password, because I don't have permission (I don't have configured proxy yet)! If I enter the username and password of a user of Portal for ArcGIS, everything was working correctly.... so, time to configure the proxy. Looking at tutorial, I modified proxy.config (from DotNet application) with the following information: <?xml version="1.0" encoding="utf-8" ?>
<ProxyConfig allowedReferers="*" mustMatch="true">
<serverUrls>
<serverUrl url="http://services.arcgisonline.com" matchAll="true" />
<serverUrl url="http://server.virtual.private/arcgis/sharing/rest"
clientId="wWUNYgmDOth4p4Qx"
clientSecret="79818e1d6f2a4a5ba6b94a7d2bf85fb0"
matchAll="true" />
<serverUrl url="http://server.virtual.private/arcgis/rest/services"
username="siteadmin"
password="secret"
matchAll="true" />
</serverUrls>
</ProxyConfig> I really don't know what put on the url, clientID and clientSecret (on clientID and clientSecret I have put the same information that was on Portal for ArcGIS - App ID and App Secret - all the documentation I read were not clear to tell me what should I put). In config.json (of web app), I have put the following information: "httpProxy": {
"useProxy": true,
"alwaysUseProxy": false,
"url": "",
"rules": [
{
"urlPrefix": "http://server.virtual.private/arcgis/sharing/rest",
"proxyUrl": "http://host-vm/DotNet/proxy.ashx"
},
{
"urlPrefix": "http://server.virtual.private/arcgis/rest/services",
"proxyUrl": "http://host-vm/DotNet/proxy.ashx"
}
]
} Tried again access the app (on IIS with proxy), but still asking for username and password. Looking at chome dev tools, there's a warning message with following content: Error: You do not have permissions to access this resource or perform this operation.(…) Object {server: "http://server.virtual.private/arcgis", tokenServiceUrl: "https://server.virtual.private/arcgis/sharing/generateToken", hasPortal: true} Any helps?
... View more
04-07-2016
11:23 AM
|
0
|
5
|
8377
|
POST
|
Forget, it's more simple than I thought. Only think that I want is add the topology in the current document, and this is how I made:
// current document
IMap map = ArcMap.Document.ActiveView.FocusMap;
// create a topologyLayer
ITopologyLayer topologyLayer = new TopologyLayerClass();
topologyLayer.Topology = topology;
// create a layer from topology
ILayer tpErrors = topologyLayer as ILayer;
tpErrors.Name = "Errors";
// finally, add the layer
map.AddLayer(tpErrors);
... View more
03-20-2012
11:55 AM
|
0
|
0
|
126
|
Title | Kudos | Posted |
---|---|---|
1 | 04-07-2016 12:40 PM | |
1 | 04-14-2016 04:45 AM | |
1 | 04-28-2016 06:03 AM | |
1 | 04-28-2016 07:22 AM | |
1 | 04-15-2016 05:30 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|