Project

General

Profile

Revision 85c7f77c

ID85c7f77ccece25ac2606db2dc1c29a2c2a98cd86
Parent a59c4b04
Child b81fb3cb

Added by Katja Luther over 1 year ago

ref #7993: show better dialog when access denied and adapt RemoteCdmSource.toString

View differences:

eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/ApplicationWorkbenchAdvisor.java
121 121
		    	previousT = t;
122 122

  
123 123
                if (t != null && (t.getCause() instanceof RemoteAccessException || t instanceof NoHttpResponseException || t.getCause() instanceof CdmAuthenticationException || t.getMessage().contains("status code = 403"))){
124
                    MessagingUtils.errorDialog("Access denied",
125
                            null,
126
                            MessagingUtils.ACCESS_DENIED,
127
                            statusAdapter.getStatus().getPlugin(),
128
                            t.getCause(),
129
                            false);
124
                    MessagingUtils.informationDialog("Access denied", MessagingUtils.ACCESS_DENIED);
130 125

  
131 126
                }else
132 127

  
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/source/CdmRemoteSourceBase.java
134 134

  
135 135
	@Override
136 136
	public String toString() {
137
		String result = CdmUtils.concat("/", baseUrl, contextPath);
137
		String result = CdmUtils.concat("/", getName(),contextPath);
138 138
		if (StringUtils.isBlank(result)){
139 139
			return super.toString();
140 140
		}else{
141
			return result;
141
			return result.replace("cdmserver/", "");
142 142
		}
143 143
	}
144 144
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)