停用Artifactory密钥加密时出现Artifactory javax.crypto.BadPaddingException错误

时间:2018-08-10 15:27:58

标签: artifactory

我正在尝试停用Artifactory密钥加密(如upgrading to 5.9时的建议)。

我使用documented REST api

import React, { Component } from "react";
import axios from "axios";
import { Upvote } from "react-upvote";
import { arrowUp } from "react-icons-kit/fa/arrowUp";
import { Icon } from "react-icons-kit";
import app from "../config/dev";
import { Link } from "react-router-dom";
import { ChampsRef, CommentsRef, timeRef } from "./reference";
import { connect } from "react-redux";
import { getsinglechamp } from "../actions/champs";
class Specials extends Component {
  state = {
    comments: [],

    champ_id: "",
    loading: true,
    email: ""
  };
  upvotePost(id) {
    CommentsRef.child(id).transaction(function(Comments) {
      if (Comments) {
        Comments.vote++;
      }
      alert(Comments.vote);
      return Comments;
    });
  }

  componentWillMount() {
    const { dispatch, match } = this.props;
    dispatch(getsinglechamp(this.props.id));
    console.log(this.props);
  }

  componentDidMount() {
    const champ_id = this.props.id;
    CommentsRef.orderByChild("champ_id")
      .equalTo(`${champ_id}`)
      .on("value", snap => {
        const tasks = [];
        let comments = [];
        snap.forEach(child => {
          comments.push({ ...child.val(), key: child.key });
        });
        this.setState({ comments: comments, Loading: false });
      });
  }

  render() {
    const { dispatch, loading } = this.props;
    const { comments, ChampsLoading } = this.state;
    const orderedchamps = comments;

    let commentList;

    if (ChampsLoading) {
      commentList = <div className="TaskList-empty">Loading...</div>;
    } else if (comments.length) {
      commentList = (
        <ul className="TaskList">
          {comments.map(comment => (
            <div className="row">
              <div className="col-lg-6">
                <br /> <br /> <br />
                <div className="cs-counter-tips-list">
                  <div className="cs-counter-tip">
                    <span onClick={() => this.upvotePost(comment.champ_id)}>
                      {" "}
                      <Icon icon={arrowUp} />{" "}
                    </span>

                    <div>
                      <p className="cs-counter-tip-text">{comment.text} </p>{" "}
                    </div>
                  </div>
                </div>{" "}
              </div>
            </div>
          ))}
        </ul>
      );
    }
    return (
      <div className="container">
        <h1>Counter Tips</h1>

        <div className="brace"> </div>

        <p> {commentList} </p>
      </div>
    );
  }
}

const mapStateToProps = state => {
  console.log("champs", state.champs);
  console.log(state.loading);
  return {
    champ: state.champs.champ,
    loading: state.loading
  };
};

export default connect(
  mapStateToProps,
  null
)(Specials);

但出现以下错误:

curl -X POST "http://artifactory-qa/artifactory/api/system/decrypt" -u ***:***

我想知道数据库的一部分是否已损坏。我有什么办法可以擦除数据以便继续升级吗?

我使用的是人工版本5.8.10,但是我已经尝试使用4.16.0之前的版本,结果相同。

0 个答案:

没有答案