Skip to content

Commit 343bd16

Browse files
authored
Merge pull request #32 from NetSPI/2.0.2
2.0.2 - Improving "Status" display
2 parents dd6c604 + 868ecf4 commit 343bd16

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group "com.netspi.awssigner"
2-
version "2.0.1"
2+
version "2.0.2"
33

44
apply plugin: "java"
55

src/main/java/com/netspi/awssigner/controller/AWSSignerController.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,7 @@ private void initListeners() {
294294
Profile newProfile = newProfileOptional.get();
295295
if (profile.getName().equals(newProfile.getName())) {
296296
//Showing the same profile. we can update UI fields.
297-
view.profileStatusTextLabel.putClientProperty("html.disable", null);
298-
view.profileStatusTextLabel.setText("<html><font color='darkgreen'>Success</font></html>");
297+
view.profileStatusTextLabel.setText("Success");
299298
if (profile instanceof CommandProfile) {
300299
view.commandExtractedAccessKeyTextField.setText(creds.getAccessKey());
301300
view.commandExtractedSecretKeyTextField.setText(creds.getSecretKey());
@@ -311,7 +310,8 @@ private void initListeners() {
311310
//Quick check to see if we need to report the cause at one level deeper
312311
Throwable cause = ex.getCause() == null ? ex : ex.getCause();
313312
logError("Cause: " + cause.getMessage());
314-
view.profileStatusTextLabel.setText("Error testing profile: " + cause.getMessage());
313+
view.profileStatusTextLabel.putClientProperty("html.disable", null);
314+
view.profileStatusTextLabel.setText("<html><b>Error testing profile:</b> " + cause.getMessage() + "</html>");
315315
}
316316
}).start();
317317

@@ -374,7 +374,8 @@ private void initListeners() {
374374
logError("Unable to parse session policy into JSON object and pretty print. Current value: " + sessionPolicy);
375375
//Quick check to see if we need to report the cause at one level deeper
376376
Throwable cause = ex.getCause() == null ? ex : ex.getCause();
377-
view.profileStatusTextLabel.setText("Session policy error: " + cause.getMessage());
377+
view.profileStatusTextLabel.putClientProperty("html.disable", null);
378+
view.profileStatusTextLabel.setText("<html><b>Session policy error:</b> " + cause.getMessage() + "</html>");
378379
}
379380
} else {
380381
logDebug("There's no current session policy. Nothing to set.");

src/main/java/com/netspi/awssigner/view/BurpTabPanel.form

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -421,11 +421,11 @@
421421
<Group type="103" groupAlignment="0" attributes="0">
422422
<Group type="102" alignment="0" attributes="0">
423423
<EmptySpace min="10" pref="10" max="-2" attributes="0"/>
424-
<Group type="103" groupAlignment="0" attributes="0">
424+
<Group type="103" groupAlignment="0" max="-2" attributes="0">
425425
<Group type="102" attributes="0">
426426
<Component id="profileStatusLabel" min="-2" max="-2" attributes="0"/>
427427
<EmptySpace max="-2" attributes="0"/>
428-
<Component id="profileStatusTextLabel" min="-2" max="-2" attributes="0"/>
428+
<Component id="profileStatusTextLabel" pref="637" max="32767" attributes="0"/>
429429
</Group>
430430
<Group type="102" alignment="0" attributes="0">
431431
<Group type="103" groupAlignment="0" attributes="0">
@@ -468,9 +468,9 @@
468468
<Component id="profileNameLabel" alignment="3" min="-2" pref="30" max="-2" attributes="0"/>
469469
</Group>
470470
<EmptySpace max="-2" attributes="0"/>
471-
<Group type="103" groupAlignment="3" attributes="0">
472-
<Component id="profileStatusLabel" alignment="3" min="-2" max="-2" attributes="0"/>
473-
<Component id="profileStatusTextLabel" alignment="3" min="-2" max="-2" attributes="0"/>
471+
<Group type="103" groupAlignment="0" attributes="0">
472+
<Component id="profileStatusLabel" min="-2" max="-2" attributes="0"/>
473+
<Component id="profileStatusTextLabel" max="-2" attributes="0"/>
474474
</Group>
475475
<EmptySpace type="unrelated" max="-2" attributes="0"/>
476476
<Group type="103" groupAlignment="3" attributes="0">

src/main/java/com/netspi/awssigner/view/BurpTabPanel.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -643,11 +643,11 @@ public void mouseClicked(java.awt.event.MouseEvent evt) {
643643
.addGroup(profileConfigurationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
644644
.addGroup(profileConfigurationPanelLayout.createSequentialGroup()
645645
.addGap(10, 10, 10)
646-
.addGroup(profileConfigurationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
646+
.addGroup(profileConfigurationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
647647
.addGroup(profileConfigurationPanelLayout.createSequentialGroup()
648648
.addComponent(profileStatusLabel)
649649
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
650-
.addComponent(profileStatusTextLabel))
650+
.addComponent(profileStatusTextLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 637, Short.MAX_VALUE))
651651
.addGroup(profileConfigurationPanelLayout.createSequentialGroup()
652652
.addGroup(profileConfigurationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
653653
.addComponent(profileServiceLabel)
@@ -678,7 +678,7 @@ public void mouseClicked(java.awt.event.MouseEvent evt) {
678678
.addComponent(profileConfigurationLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
679679
.addComponent(profileNameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
680680
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
681-
.addGroup(profileConfigurationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
681+
.addGroup(profileConfigurationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
682682
.addComponent(profileStatusLabel)
683683
.addComponent(profileStatusTextLabel))
684684
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)

0 commit comments

Comments
 (0)