Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge back Release 0.15.4 #658

Merged
merged 35 commits into from
Jul 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
6ccad6c
prepare release 0.15.3
jnweiger Jun 14, 2021
ffddf01
Updated changelog
jnweiger Jun 14, 2021
2781b9e
Fixes
hurradieweltgehtunter Jul 1, 2021
06595d8
Fixes #644
hurradieweltgehtunter Jul 1, 2021
b82671d
hide save indicator initially
hurradieweltgehtunter Jul 1, 2021
b571ecd
manual merge https://github.com/owncloud/user_ldap/pull/589
jnweiger Jul 1, 2021
92e2587
merge min-version correctly
jnweiger Jul 1, 2021
c660ee6
Update host indicator when config is loaded not on tab change
hurradieweltgehtunter Jul 1, 2021
0538738
Merge branch 'release-0.15.3' of github.com:owncloud/user_ldap into r…
hurradieweltgehtunter Jul 1, 2021
04b38a7
improve host/port indicator update
hurradieweltgehtunter Jul 1, 2021
62bae0d
fixes #656
hurradieweltgehtunter Jul 7, 2021
ce5e3a2
fixes #653
hurradieweltgehtunter Jul 7, 2021
5f34bfd
cherry pick https://github.com/owncloud/user_ldap/pull/654
jnweiger Jul 7, 2021
b6d16dd
prepare merge back to master
jnweiger Jul 7, 2021
43e77fa
fix display errors in combination with other apps
hurradieweltgehtunter Jul 7, 2021
c9ae271
Merge pull request #660 from owncloud/20210707-facelift-fix
jnweiger Jul 7, 2021
b17da69
Fix display errors in combination with other apps
jnweiger Jul 7, 2021
36dbc2c
bump version to 0.15.4
jnweiger Jul 7, 2021
5505c71
fix state indicator
hurradieweltgehtunter Jul 8, 2021
67dabb6
update changelog
jnweiger Jul 13, 2021
259b742
update changelog
jnweiger Jul 13, 2021
86942f3
Just strip "low" chars, but don't do anything else
jvillafanez Jul 14, 2021
3bef0cb
Merge pull request #663 from owncloud/fix_password_strip
jnweiger Jul 15, 2021
0e5b79c
prepare release 0.15.4-rc3
jnweiger Jul 15, 2021
47f986e
prepare merge back of branch release-0.15.3 after 0.15.4 was released…
jnweiger Jul 20, 2021
f37b04b
update php-cs-fixer to the latest version
dpakach Jun 15, 2021
aa28dc6
Update .drone.star file to latest version from activity app
dpakach Jun 15, 2021
521735c
[CI] Update drone.star file to the latest version from activity app
dpakach Jul 5, 2021
d10d436
write comments.file to /var/www/owncloud in drone
phil-davis Jul 5, 2021
7c9a697
reduce numberOfParts for test pipelines
phil-davis Jul 5, 2021
df0cd8e
Adjust acceptance test steps that changed in core PR 39027
phil-davis Jul 21, 2021
453e3b2
set csrf.disabled when running federated tests
phil-davis Jul 21, 2021
481b4ff
Merge pull request #664 from owncloud/backports-for-0.15.3-branch
phil-davis Jul 21, 2021
56bb30c
only set USER_PREFKEY_FIRSTLOGIN to '1' on first login
Jul 6, 2021
43e16fa
Merge pull request #666 from owncloud/backport-pr-652
phil-davis Jul 21, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
344 changes: 232 additions & 112 deletions .drone.star

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/node_modules/
/build/
.php_cs.cache
.php-cs-fixer.cache
/tests/output/

# Composer
Expand Down
File renamed without changes.
34 changes: 31 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,32 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)

## [Unreleased]
.
## [Unreleased] - XXXX-XX-XX


## [0.15.4] - 2021-07-13

### Fixed
- user_ldap 0.15.3 double quote in passwords does not work [#662](https://github.com/owncloud/user_ldap/issues/662)
- Fix display errors in combination with other apps [#660](https://github.com/owncloud/user_ldap/issues/660)
- [QA] Frontend breaks with other auser auth apps [#659](https://github.com/owncloud/user_ldap/issues/659)
- [QA] tab break into new line hides content [#656](https://github.com/owncloud/user_ldap/issues/656)
- [QA] Login Attributes: LDAP Filter misagligned output [#653](https://github.com/owncloud/user_ldap/issues/653)

## [0.15.3] - 2021-06-14

### Fixed
- Fix display errors in combination with other apps [#660](https://github.com/owncloud/user_ldap/issues/660)
- Fixed read LDAP attribute value 0 returned as null [#599](https://github.com/owncloud/user_ldap/issues/599)
- Security: filter special characters from password field [#636](https://github.com/owncloud/user_ldap/issues/636)
- LDAP multiple base dns break pagination [#307](https://github.com/owncloud/user_ldap/issues/307)

### Changed
- Add warning for disabling email login regarding strict login check [#581](https://github.com/owncloud/user_ldap/issues/581) (Requires 10.5.0)
- Facelift [#597](https://github.com/owncloud/user_ldap/issues/597)
- Bump libraries



## [0.15.2] - 2020-06-16

Expand All @@ -30,6 +54,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
### Changed

- Drop PHP 7.0 - [#474](https://github.com/owncloud/user_ldap/issues/474)
- Requires ownCloud min-version 10.4

## [0.14.0] - 2019-11-11

Expand Down Expand Up @@ -128,7 +153,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
- Add hint for max search term length - [#105](https://github.com/owncloud/user_ldap/issues/105)
- Allow proxy to check next server - [#101](https://github.com/owncloud/user_ldap/issues/101)

[Unreleased]: https://github.com/owncloud/user_ldap/compare/v0.15.2...master

[Unreleased]: https://github.com/owncloud/user_ldap/compare/v0.15.4...master
[0.15.4]: https://github.com/owncloud/user_ldap/compare/v0.15.3...v0.15.4
[0.15.3]: https://github.com/owncloud/user_ldap/compare/v0.15.2...v0.15.3
[0.15.2]: https://github.com/owncloud/user_ldap/compare/v0.15.1...v0.15.2
[0.15.1]: https://github.com/owncloud/user_ldap/compare/v0.15.0...v0.15.1
[0.15.0]: https://github.com/owncloud/user_ldap/compare/v0.14.0...v0.15.0
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ test-php-phpstan: vendor-bin/phpstan/vendor
.PHONY: test-php-style
test-php-style: ## Run php-cs-fixer and check owncloud code-style
test-php-style: vendor-bin/owncloud-codestyle/vendor vendor-bin/php_codesniffer/vendor
$(PHP_CS_FIXER) fix -v --diff --diff-format udiff --dry-run --allow-risky yes
$(PHP_CS_FIXER) fix -v --diff --dry-run --allow-risky yes
$(PHP_CODESNIFFER) --runtime-set ignore_warnings_on_exit --standard=phpcs.xml tests/acceptance

.PHONY: test-php-style-fix
test-php-style-fix: ## Run php-cs-fixer and fix code-style issues
test-php-style-fix: vendor-bin/owncloud-codestyle/vendor
$(PHP_CS_FIXER) fix -v --diff --diff-format udiff --allow-risky yes
$(PHP_CS_FIXER) fix -v --diff --allow-risky yes

.PHONY: test-php-unit
test-php-unit: ## Run php unit tests
Expand Down
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ More information is available in the [LDAP User and Group Backend documentation]
</description>
<licence>AGPL</licence>
<author>Jörn Friedrich Dreyer, Tom Needham, Juan Pablo Villafañez Ramos, Dominik Schmidt and Arthur Schiwon</author>
<version>0.15.2</version>
<version>0.15.4</version>
<types>
<authentication/>
</types>
Expand Down
92 changes: 72 additions & 20 deletions css/settings.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
#ldap section {
margin-bottom: 2rem;
width: 100% !important;
#ldap {
width: calc(100% - 40px);
}

@media all and (min-width: 768px) {
@media all and (min-width: 1200px) {
#ldap section {
width: 60% !important;
width: 65% !important;
}
}

#ldap section {
margin-bottom: 2rem;
}

#ldap section h3 {
border-bottom: 1px solid #efefef;
margin-left: -41px;
Expand Down Expand Up @@ -75,6 +78,23 @@
#ldap .tablerow .hint {
clear: both;
font-size: .8em;
position: relative;
padding-left: 1rem;
}

#ldap .tablerow .hint:before {
background: url('/core/img/actions/info.svg');
background-size: contain;
background-position: 50% 100%;
background-repeat: no-repeat;
display: inline-block;
height: 1.3em;
width: 1.3em;
margin-right: 0rem;
content: ' ';
position: absolute;
margin-left: -1rem;
top: 3px;
}

#ldap .tablerow .hint img {
Expand All @@ -95,7 +115,13 @@


.ldapWizardControls {
text-align: right;
display: flex;
flex-direction: row;
justify-content: end;
}

.ldapWizardControls > div {
margin-right: 1rem;
}

.ldapWizardInfo {
Expand Down Expand Up @@ -215,14 +241,6 @@ select[multiple=multiple] + button {
cursor: wait;
}

#ldap .ldap_saving {
margin-right: 15px;
color: orange;
font-weight: bold;
}

#ldap .ldap_saving img { height: 15px; }

#ldap .app-name .ldap_config_state_indicator_container {
display: inline-block;
margin-left: 2em;
Expand Down Expand Up @@ -267,17 +285,17 @@ select[multiple=multiple] + button {
}

#ldap .header {
position: fixed;
background: #fff;
width: inherit;
top: 5.5em;
padding-top: 1.7em;
z-index: 1;
width: calc(100% - 40px);
}

@media all and (min-width: 768px) {
#ldap .header {
top: 3.5em;
width: calc(750% - 40px);
}
}

Expand Down Expand Up @@ -312,22 +330,56 @@ select[multiple=multiple] + button {
left: 1.3em;
}

#ldap .ui-tabs .ui-tabs-nav li.stateIndicator {
#ldap .ui-tabs .ui-tabs-nav li.stateIndicator,
#ldap .ui-tabs .ui-tabs-nav li.ldap_saving_wrapper {
color: #333333;
border: none;
background: transparent;
padding: 0.7em 1.3em;
padding: 0.2rem 1.3rem;
display: none;
}

#ldap .ui-tabs .ui-tabs-nav li.ldap_saving_wrapper {
padding: 0.5rem 1.3rem;
display: block;
}

#ldap .ui-tabs .ui-tabs-nav li.ldap_saving_wrapper .ldap_saving {
margin-right: 15px;
color: orange;
font-weight: bold;
}

#ldap .ui-tabs .ui-tabs-nav li.ldap_saving_wrapper .ldap_saving .done {
display: none;
color: #128c12;
}

#ldap .ui-tabs .ui-tabs-nav li.ldap_saving_wrapper .ldap_saving.done img {
display: none;
}

#ldap .ui-tabs .ui-tabs-nav li.ldap_saving_wrapper .ldap_saving.done .done {
display: inline;
}

#ldap .ui-tabs .ui-tabs-nav li.ldap_saving_wrapper .ldap_saving.done .working {
display: none;
}

#ldap .ldap_config_state_indicator_subline {
font-weight: 100;
font-size: 75%;
}

@media all and (min-width: 768px) {
#ldap .ui-tabs .ui-tabs-nav li.stateIndicator {
display: block;
}
}

.ui-tabs .ui-tabs-panel {
margin-top: 5.3em;
margin-top: 1rem;
}

#ldap button {
Expand Down Expand Up @@ -357,4 +409,4 @@ select[multiple=multiple] + button {

#ldap p {
margin-bottom: 1em;
}
}
3 changes: 3 additions & 0 deletions js/wizard/configModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,9 @@ OCA = OCA || {};
configPrefix: configID,
errorMessage: _.isUndefined(result['message']) ? '' : result['message']
};

$('.ldap_config_state_indicator_subline').html('')

model._broadcast('deleteConfiguration', payload);
}
};
Expand Down
32 changes: 21 additions & 11 deletions js/wizard/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ OCA = OCA || {};
});

$('.ldap_action_test_connection').click(this.onTestButtonClick);

$('#ldap_host').on('input', function () {
$('.ldap_config_state_indicator_subline').html($('#ldap_host').val() + ':' + $('#ldap_port').val())
})

$('#ldap_port').on('input', function () {
$('.ldap_config_state_indicator_subline').html($('#ldap_host').val() + ':' + $('#ldap_port').val())
})
},

/**
Expand Down Expand Up @@ -215,6 +223,9 @@ OCA = OCA || {};
view._updateStatusIndicator(view.STATUS_UNTESTED);
view.basicStatusCheck(view);
view.functionalityCheck();
if (view['configModel']['configuration']['ldap_host'] !== '')
$('.ldap_config_state_indicator_subline').html(view['configModel']['configuration']['ldap_host'] + ':' + view['configModel']['configuration']['ldap_port'])

},

/**
Expand Down Expand Up @@ -329,16 +340,22 @@ OCA = OCA || {};
* shows a save spinner
*/
showSaveSpinner: function() {
this.$saveSpinners.removeClass('hidden');
this.$saveSpinners.show()
$('#ldap *').addClass('save-cursor');
},

/**
* hides the save spinner
*/
hideSaveSpinner: function() {
this.$saveSpinners.addClass('hidden');
$('#ldap *').removeClass('save-cursor');
this.$saveSpinners.addClass('done')
setTimeout(function() {
$('#ldap .ldap_saving').fadeOut(1000, function () {
$('#ldap .ldap_saving').removeClass('done')
});
$('#ldap *').removeClass('save-cursor');

}, 1000)
},

/**
Expand Down Expand Up @@ -468,11 +485,4 @@ OCA = OCA || {};
};

OCA.LDAP.Wizard.WizardView = WizardView;
})();

$(document).ready(function () {
$('.ui-tabs .ui-tabs-panel').css('margin-top', $('#ldap .header').outerHeight())
$(window).on('resize', function(){
$('.ui-tabs .ui-tabs-panel').css('margin-top', $('#ldap .header').outerHeight())
});
});
})();
Loading